Merge pull request #877 from josdion/development

opensubtitles - show uploader as anonymous when UserNickName is empty
pull/888/head
morpheus65535 5 years ago committed by GitHub
commit a36e54c7c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save