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