diff --git a/source/keep_stream_by_language/changelog.md b/source/keep_stream_by_language/changelog.md index a2ccdc256..2e27e2da3 100644 --- a/source/keep_stream_by_language/changelog.md +++ b/source/keep_stream_by_language/changelog.md @@ -1,4 +1,7 @@ +**0.1.2** +- fix error in iso language check in stream_tag_language in test streams function (last line wasn't edited properly in cut/paste) + **0.1.1** - add test for None on iso639 Language.match - update version to 0.1.x series diff --git a/source/keep_stream_by_language/info.json b/source/keep_stream_by_language/info.json index 3b611b24a..09ce1c676 100644 --- a/source/keep_stream_by_language/info.json +++ b/source/keep_stream_by_language/info.json @@ -16,5 +16,5 @@ "on_worker_process": 1 }, "tags": "audio,subtitle, ffmpeg,library file test", - "version": "0.1.1" + "version": "0.1.2" } diff --git a/source/keep_stream_by_language/plugin.py b/source/keep_stream_by_language/plugin.py index 9c513396f..9c546bc4b 100644 --- a/source/keep_stream_by_language/plugin.py +++ b/source/keep_stream_by_language/plugin.py @@ -126,7 +126,7 @@ def test_tags_for_search_string(self, codec_type, stream_tags, stream_id): stream_tag_language = iso639.Language.match(stream_tags.get('language', '').lower()).part1 if iso639.Language.match(stream_tags.get('language', '').lower()).part1 is not None and stream_tags.get('language', '').lower() in iso639.Language.match(stream_tags.get('language', '').lower()).part1 else \ iso639.Language.match(stream_tags.get('language', '').lower()).part2b if iso639.Language.match(stream_tags.get('language', '').lower()).part2b is not None and stream_tags.get('language', '').lower() in iso639.Language.match(stream_tags.get('language', '').lower()).part2b else \ iso639.Language.match(stream_tags.get('language', '').lower()).part2t if iso639.Language.match(stream_tags.get('language', '').lower()).part2t is not None and stream_tags.get('language', '').lower() in iso639.Language.match(stream_tags.get('language', '').lower()).part2t else \ - iso639.Language.match(stream_tags.get('language', '').lower()).part2b if stream_tags.get('language', '').lower() in iso639.Language.match(stream_tags.get('language', '').lower()).part2b else "" + iso639.Language.match(stream_tags.get('language', '').lower()).part3 if iso639.Language.match(stream_tags.get('language', '').lower()).part3 is not None and stream_tags.get('language', '').lower() in iso639.Language.match(stream_tags.get('language', '').lower()).part3 else "" except iso639.language.LanguageNotFoundError: raise iso639.language.LanguageNotFoundError("stream tag language: ", stream_tags.get('language', '').lower()) if language and (language.lower() in stream_tag_language or language.lower() == '*'):