mirror of https://github.com/morpheus65535/bazarr
Merge branch 'master' into development
This commit is contained in:
commit
90c62dd37e
|
@ -38,7 +38,9 @@ def sync_episodes():
|
|||
url_sonarr_api_episode = url_sonarr + "/api/episode?seriesId=" + str(seriesId[0]) + "&apikey=" + apikey_sonarr
|
||||
r = requests.get(url_sonarr_api_episode)
|
||||
for episode in r.json():
|
||||
if episode['hasFile'] and episode['episodeFile']['size'] > 20480:
|
||||
if episode['hasFile'] is True:
|
||||
if 'episodeFile' in episode:
|
||||
if episode['episodeFile']['size'] > 20480:
|
||||
# Add shows in Sonarr to current shows list
|
||||
if 'sceneName' in episode['episodeFile']:
|
||||
sceneName = episode['episodeFile']['sceneName']
|
||||
|
|
Loading…
Reference in New Issue