mirror of https://github.com/morpheus65535/bazarr
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:
parent
e04364d17d
commit
03e0998d82
|
@ -327,7 +327,7 @@ class OpenSubtitlesProvider(ProviderRetryMixin, _OpenSubtitlesProvider):
|
||||||
hash, movie_name, movie_release_name, movie_year, movie_imdb_id,
|
hash, movie_name, movie_release_name, movie_year, movie_imdb_id,
|
||||||
series_season, series_episode, query_parameters, filename, encoding,
|
series_season, series_episode, query_parameters, filename, encoding,
|
||||||
movie_fps, skip_wrong_fps=self.skip_wrong_fps)
|
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)
|
logger.debug('Found subtitle %r by %s', subtitle, matched_by)
|
||||||
subtitles.append(subtitle)
|
subtitles.append(subtitle)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue