Commit 94ccee2e5f

94ccee2e5ffb38f4c41c58cd3ab29c06bf3f584d

parent: 0521eb7f50

Unsigned

Wraient <wraient.911@gmail.com> · 2024-09-25 13:52 UTC

minor bug fix

Layout: unified · split

curd.py +5 −4
@@ -1077,15 +1077,12 @@ get_episode_url
10771077
10781078# ----------------------------------------------- Start of script ----------------------------------------
10791079
1080create_anime_list()
1081create_episode_list()
1082create_episode_url()
1083
10841080current_dir = Path(__file__).parent
10851081# current_dir = os.path.dirname(os.path.abspath(__file__))
10861082# print(current_dir)
10871083if not os.path.exists(f"/tmp/curd/"):
10881084 try:
1085 print("making tmp directory")
10891086 os.makedirs(os.path.dirname(f"/tmp/curd/"))
10901087 except:
10911088 pass
@@ -1104,6 +1101,10 @@ history_file_path_ = os.path.expandvars(get_userconfig_value(user_config, "histo
11041101history_file_path_ = os.path.dirname(history_file_path_)
11051102access_token_path = os.path.join(history_file_path_, "token")
11061103
1104create_anime_list()
1105create_episode_list()
1106create_episode_url()
1107
11071108if os.path.exists(access_token_path):
11081109 # Read and use the token
11091110 with open(access_token_path, "r") as token_file: