From 08aa8cae0a816e90b3f9e2aa2296c7917b59f958 Mon Sep 17 00:00:00 2001 From: Mr-Quin Date: Sat, 23 May 2020 13:32:47 -0700 Subject: [PATCH] change isascii to isalnum --- libs/subliminal_patch/providers/assrt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/subliminal_patch/providers/assrt.py b/libs/subliminal_patch/providers/assrt.py index eab6bfc04..10ad2609a 100644 --- a/libs/subliminal_patch/providers/assrt.py +++ b/libs/subliminal_patch/providers/assrt.py @@ -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))