From 687d2b96abe2016a910d04decb4934ba8150b940 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 9 Nov 2014 13:44:47 +0800 Subject: [PATCH] Fix post processing when using tvrage indexer and mediabrowser metadata generation --- CHANGES.md | 1 + sickbeard/metadata/mediabrowser.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 99762a26..836bdb30 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -49,6 +49,7 @@ * Add image to be used when Trakt posters are void on Add Show/Add Trending Show page * Fix growl registration not sending sickrage update notification registration. * Fix missing url for kickasstorrents in config_providers +* Fix post processing when using tvrage indexer and mediabrowser metadata generation [develop changelog] * Change improve display of progress bars in the Downloads columns of the show list page diff --git a/sickbeard/metadata/mediabrowser.py b/sickbeard/metadata/mediabrowser.py index caeb3f3b..5f303fed 100644 --- a/sickbeard/metadata/mediabrowser.py +++ b/sickbeard/metadata/mediabrowser.py @@ -498,7 +498,10 @@ class MediaBrowserMetadata(generic.GenericMetadata): Persons = etree.SubElement(episode, "Persons") Language = etree.SubElement(episode, "Language") - Language.text = myEp['language'] + try: + Language.text = myEp['language'] + except: + Language.text = 'en' # tvrage api doesn't provide language so we must assume a value here thumb = etree.SubElement(episode, "filename") # TODO: See what this is needed for.. if its still needed