From 03e0998d82cf3ec3341750b73ec2077c289891e3 Mon Sep 17 00:00:00 2001 From: josdion Date: Sun, 22 Mar 2020 14:33:02 +0200 Subject: [PATCH] opensubtitles - show uploader as anonymous when UserNickName is empty Show uploader as anonymous when UserNickName is empty as this is how the username is shown on opensubtitles.com --- libs/subliminal_patch/providers/opensubtitles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/subliminal_patch/providers/opensubtitles.py b/libs/subliminal_patch/providers/opensubtitles.py index 466b6199f..012fe6c13 100644 --- a/libs/subliminal_patch/providers/opensubtitles.py +++ b/libs/subliminal_patch/providers/opensubtitles.py @@ -327,7 +327,7 @@ class OpenSubtitlesProvider(ProviderRetryMixin, _OpenSubtitlesProvider): hash, movie_name, movie_release_name, movie_year, movie_imdb_id, series_season, series_episode, query_parameters, filename, encoding, movie_fps, skip_wrong_fps=self.skip_wrong_fps) - subtitle.uploader = _subtitle_item['UserNickName'] + subtitle.uploader = _subtitle_item['UserNickName'] if _subtitle_item['UserNickName'] else 'anonymous' logger.debug('Found subtitle %r by %s', subtitle, matched_by) subtitles.append(subtitle)