mirror of https://github.com/morpheus65535/bazarr
Merge pull request #877 from josdion/development
opensubtitles - show uploader as anonymous when UserNickName is empty
This commit is contained in:
commit
a36e54c7c7
|
@ -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…
Reference in New Issue