mirror of https://github.com/morpheus65535/bazarr
Blocking Bazarr update for users that don't use Python 3.x yet.
This commit is contained in:
parent
cc61d0188f
commit
96e210cae1
|
@ -22,6 +22,7 @@ import pytz
|
||||||
from tzlocal import get_localzone
|
from tzlocal import get_localzone
|
||||||
from calendar import day_name
|
from calendar import day_name
|
||||||
import pretty
|
import pretty
|
||||||
|
from six import PY2
|
||||||
|
|
||||||
|
|
||||||
class Scheduler:
|
class Scheduler:
|
||||||
|
@ -188,7 +189,9 @@ class Scheduler:
|
||||||
id='update_all_movies', name='Update all Movie Subtitles from disk', replace_existing=True)
|
id='update_all_movies', name='Update all Movie Subtitles from disk', replace_existing=True)
|
||||||
|
|
||||||
def __update_bazarr_task(self):
|
def __update_bazarr_task(self):
|
||||||
if not args.no_update:
|
if PY2:
|
||||||
|
pass
|
||||||
|
elif not args.no_update:
|
||||||
task_name = 'Update Bazarr from source on Github'
|
task_name = 'Update Bazarr from source on Github'
|
||||||
if args.release_update:
|
if args.release_update:
|
||||||
task_name = 'Update Bazarr from release on Github'
|
task_name = 'Update Bazarr from release on Github'
|
||||||
|
|
|
@ -237,7 +237,7 @@
|
||||||
<i class="python icon"></i>
|
<i class="python icon"></i>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="header">Python deprecation warning</div>
|
<div class="header">Python deprecation warning</div>
|
||||||
Bazarr is now compatible with Python 3.6 and newer. You must upgrade Python as we don't support Python 2.x anymore.
|
<p><b><u>Bazarr won't update anymore until you upgrade Python!</u></b></p>Bazarr is now compatible with Python 3.6 and newer. You must upgrade Python as we don't support Python 2.x anymore.
|
||||||
<div class="ui bulleted list">
|
<div class="ui bulleted list">
|
||||||
% if os.name == 'posix':
|
% if os.name == 'posix':
|
||||||
<div class="item">If you are running under Docker, don't worry, we'll take care of this for you. Just pull the new image.</div>
|
<div class="item">If you are running under Docker, don't worry, we'll take care of this for you. Just pull the new image.</div>
|
||||||
|
|
Loading…
Reference in New Issue