mirror of https://github.com/morpheus65535/bazarr
Fix for episode audio_language under Sonarr v2.
This commit is contained in:
parent
d15173c1ea
commit
35ee6fb6f6
|
@ -91,6 +91,10 @@ def sync_episodes():
|
||||||
if isinstance(item, dict):
|
if isinstance(item, dict):
|
||||||
if 'name' in item:
|
if 'name' in item:
|
||||||
audio_language = item['name']
|
audio_language = item['name']
|
||||||
|
else:
|
||||||
|
audio_language = database.execute("SELECT audio_language FROM table_shows WHERE "
|
||||||
|
"sonarrSeriesId=?", (episode['seriesId'],),
|
||||||
|
only_one=True)['audio_language']
|
||||||
|
|
||||||
# Add episodes in sonarr to current episode list
|
# Add episodes in sonarr to current episode list
|
||||||
current_episodes_sonarr.append(episode['id'])
|
current_episodes_sonarr.append(episode['id'])
|
||||||
|
|
Loading…
Reference in New Issue