Skip to content

Commit

Permalink
improved the regex in animtime
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjixWasTaken committed Aug 18, 2021
1 parent cced96f commit 7b6d9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anime_downloader/sites/animtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_title_dict(script):
title_function = re.search("tm=.*?}", script_text).group()
titles_dict = {
x[0]: format_title_case(x[1].replace('-', ' '))
for x in re.findall(r"qd\[tm\.(.*?)\]=.*?\".*?/animtime/(.*?)/", script_text)
for x in re.findall(r"\[tm\.([a-zA-Z0-9]+?)\]=function\(\w\)\{return\"[a-zA-Z0-9\.\:/-]+?\/animtime\/([a-zA-Z-]+?)\/", script_text)
}
id_dict = {
x[0]: x[1]
Expand Down

0 comments on commit 7b6d9e7

Please sign in to comment.