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
1077 1077
1078# ----------------------------------------------- Start of script ---------------------------------------- 1078# ----------------------------------------------- Start of script ----------------------------------------
1079 1079
1080create_anime_list()
1081create_episode_list()
1082create_episode_url()
1083
1084current_dir = Path(__file__).parent 1080current_dir = Path(__file__).parent
1085# current_dir = os.path.dirname(os.path.abspath(__file__)) 1081# current_dir = os.path.dirname(os.path.abspath(__file__))
1086# print(current_dir) 1082# print(current_dir)
1087if not os.path.exists(f"/tmp/curd/"): 1083if not os.path.exists(f"/tmp/curd/"):
1088 try: 1084 try:
1085 print("making tmp directory")
1089 os.makedirs(os.path.dirname(f"/tmp/curd/")) 1086 os.makedirs(os.path.dirname(f"/tmp/curd/"))
1090 except: 1087 except:
1091 pass 1088 pass
@@ -1104,6 +1101,10 @@ history_file_path_ = os.path.expandvars(get_userconfig_value(user_config, "histo
1104history_file_path_ = os.path.dirname(history_file_path_) 1101history_file_path_ = os.path.dirname(history_file_path_)
1105access_token_path = os.path.join(history_file_path_, "token") 1102access_token_path = os.path.join(history_file_path_, "token")
1106 1103
1104create_anime_list()
1105create_episode_list()
1106create_episode_url()
1107
1107if os.path.exists(access_token_path): 1108if os.path.exists(access_token_path):
1108 # Read and use the token 1109 # Read and use the token
1109 with open(access_token_path, "r") as token_file: 1110 with open(access_token_path, "r") as token_file: