Blocking Bazarr update for users that don't use Python 3.x yet.

pull/835/head
Louis Vézina 5 years ago
parent cc61d0188f
commit 96e210cae1

@ -22,6 +22,7 @@ import pytz
from tzlocal import get_localzone
from calendar import day_name
import pretty
from six import PY2
class Scheduler:
@ -188,7 +189,9 @@ class Scheduler:
id='update_all_movies', name='Update all Movie Subtitles from disk', replace_existing=True)
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'
if args.release_update:
task_name = 'Update Bazarr from release on Github'

@ -237,7 +237,7 @@
<i class="python icon"></i>
<div class="content">
<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">
% 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>

Loading…
Cancel
Save