Merge pull request #997 from Mr-Quin/development

change isascii to isalnum
pull/1247/head
morpheus65535 5 years ago committed by GitHub
commit cf651df6a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -126,13 +126,13 @@ class AssrtProvider(Provider):
keywords = []
if isinstance(video, Movie):
if video.title:
title = "".join(e for e in video.title if e.isascii())
title = "".join(e for e in video.title if e.isalnum())
keywords.append(title)
if video.year:
keywords.append(str(video.year))
elif isinstance(video, Episode):
if video.series:
series = "".join(e for e in video.series if e.isascii())
series = "".join(e for e in video.series if e.isalnum())
keywords.append(series)
if video.season and video.episode:
keywords.append('S%02dE%02d' % (video.season, video.episode))

Loading…
Cancel
Save