handle special characters in show name

This commit is contained in:
karl.hudgell 2022-06-21 12:22:59 +01:00
parent 7c4a569678
commit ee82a26e76

View File

@ -233,8 +233,9 @@ class gogoanime:
else: else:
fullRow = fullRow.replace("Status ", "") fullRow = fullRow.replace("Status ", "")
splitRow = fullRow.split("Latest") splitRow = fullRow.split("Latest")
animeName = splitRow[0].strip() animeName = splitRow[0].strip().encode("ascii", "ignore").decode()
animeDownloadName = animeName.replace(":", "").replace(" ", "-").lower() animeName = re.sub("[^A-Za-z0-9 ]+", "", animeName)
animeDownloadName = animeName.replace(" ", "-").lower()
episodeNum = splitRow[-1].split()[-1] episodeNum = splitRow[-1].split()[-1]
bookmarkList.append( bookmarkList.append(
{ {