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
This commit is contained in:
josdion 2020-03-22 14:33:02 +02:00
parent e04364d17d
commit 03e0998d82
1 changed files with 1 additions and 1 deletions

View File

@ -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)