Browse Source

Change add handling for when a dev db is based on an older production db.

Update UnRar for Windows 5.90 to 5.91 x64.
Fix saving Trakt notification under py3.
tags/release_0.21.38^2
Prinz23 5 years ago
committed by JackDandy
parent
commit
19b1aca5bd
  1. 9
      CHANGES.md
  2. BIN
      lib/rarfile/UnRAR.exe
  3. 4
      sickbeard/trakt_helpers.py
  4. 19
      sickgear.py

9
CHANGES.md

@ -1,4 +1,11 @@
### 0.21.37 (2020-05-30 12:00:00 UTC) ### 0.21.38 (2020-07-08 23:15:00 UTC)
* Change add handling for when a dev db is based on an older production db
* Update UnRar for Windows 5.90 to 5.91 x64
* Fix saving Trakt notification under py3
### 0.21.37 (2020-05-30 12:00:00 UTC)
* Fix Anime cards images * Fix Anime cards images
* Fix ETTV torrent provider * Fix ETTV torrent provider

BIN
lib/rarfile/UnRAR.exe

Binary file not shown.

4
sickbeard/trakt_helpers.py

@ -5,7 +5,7 @@ import re
import sickbeard import sickbeard
from .helpers import try_int from .helpers import try_int
from _23 import decode_str, list_items from _23 import decode_bytes, decode_str, list_items
from six import iteritems, text_type from six import iteritems, text_type
@ -37,7 +37,7 @@ def build_config(**kwargs):
continue continue
for cur_dir in root_dirs: for cur_dir in root_dirs:
account_id = try_int(account_id, None) account_id = try_int(account_id, None)
if account_id and decode_str(base64.urlsafe_b64encode(cur_dir)) == location: if account_id and decode_str(base64.urlsafe_b64encode(decode_bytes(cur_dir))) == location:
if isinstance(config.get(account_id), list): if isinstance(config.get(account_id), list):
config[account_id] += [cur_dir] config[account_id] += [cur_dir]
else: else:

19
sickgear.py

@ -91,7 +91,7 @@ from sickbeard.event_queue import Events
from sickbeard.tv import TVShow from sickbeard.tv import TVShow
from sickbeard.webserveInit import WebServer from sickbeard.webserveInit import WebServer
from six import moves, PY2 from six import integer_types, moves, PY2
throwaway = datetime.datetime.strptime('20110101', '%Y%m%d') throwaway = datetime.datetime.strptime('20110101', '%Y%m%d')
rollback_loaded = None rollback_loaded = None
@ -456,6 +456,21 @@ class SickGear(object):
print(u'Rollback to production of [%s] successful.' % d) print(u'Rollback to production of [%s] successful.' % d)
sickbeard.classes.loading_msg.set_msg_progress(load_msg, 'Finished') sickbeard.classes.loading_msg.set_msg_progress(load_msg, 'Finished')
# handling of production version higher then current base of test db
if isinstance(base_v, integer_types) and max_v >= 100000 > cur_db_version > base_v:
sickbeard.classes.loading_msg.set_msg_progress(load_msg, 'Rollback')
print('Your [%s] database version (%s) is a db version and doesn\'t match SickGear required '
'version (%s), downgrading to production base db' % (d, cur_db_version, max_v))
self.execute_rollback(mo, base_v, load_msg)
cur_db_version = db.DBConnection(d).checkDBVersion()
if 100000 <= cur_db_version:
print(u'Rollback to production base failed.')
sys.exit(u'If you have used other forks, your database may be unusable due to their changes')
if 100000 <= max_v and None is not base_v:
max_v = base_v # set max_v to the needed base production db for test_db
print(u'Rollback to production base of [%s] successful.' % d)
sickbeard.classes.loading_msg.set_msg_progress(load_msg, 'Finished')
# handling of production db versions # handling of production db versions
if 0 < cur_db_version < 100000: if 0 < cur_db_version < 100000:
if cur_db_version < min_v: if cur_db_version < min_v:
@ -547,7 +562,7 @@ class SickGear(object):
# # Launch browser # # Launch browser
# if sickbeard.LAUNCH_BROWSER and not self.no_launch: # if sickbeard.LAUNCH_BROWSER and not self.no_launch:
# sickbeard.launch_browser(self.start_port) # sickbeard.launch_browser(self.start_port)
# main loop # main loop
while True: while True:
time.sleep(1) time.sleep(1)

Loading…
Cancel
Save