mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-24 08:43:01 +00:00
Merge branch 'development' into Flask
This commit is contained in:
commit
97770462bd
2 changed files with 2 additions and 2 deletions
|
@ -84,7 +84,7 @@ def update_series():
|
|||
# Add shows in Sonarr to current shows list
|
||||
current_shows_sonarr.append(show['id'])
|
||||
|
||||
if show['tvdbId'] in current_shows_db_list:
|
||||
if show['id'] in current_shows_db_list:
|
||||
series_to_update.append({'title': six.text_type(show["title"]),
|
||||
'path': six.text_type(show["path"]),
|
||||
'tvdbId': int(show["tvdbId"]),
|
||||
|
|
|
@ -138,7 +138,7 @@ def _get_localzone(_root='/'):
|
|||
if os.path.exists(tzpath) and os.path.islink(tzpath):
|
||||
tzpath = os.path.realpath(tzpath)
|
||||
start = tzpath.find("/")+1
|
||||
while start is not 0:
|
||||
while start != 0:
|
||||
tzpath = tzpath[start:]
|
||||
try:
|
||||
return pytz.timezone(tzpath)
|
||||
|
|
Loading…
Reference in a new issue