Commit 2ccc8b057f
Unsigned
Layout: unified · split
curd.py +6
| @@ -1128,6 +1128,7 @@ parser.add_argument("-sub", action='store_true', help="Anime audio type (optiona | ||
| 1128 | 1128 | parser.add_argument("-dub", action='store_true', help="Anime audio type (optional)") |
| 1129 | 1129 | parser.add_argument("-c", action='store_true', help="Continue last watching anime (optional)") |
| 1130 | 1130 | parser.add_argument("-u", action='store_true', help="Update script (optional)") |
| 1131 | parser.add_argument("-e", action='store_true', help="Edit config (optional)") | |
| 1131 | 1132 | args = parser.parse_args() |
| 1132 | 1133 | |
| 1133 | 1134 | if args.u: |
| @@ -1139,6 +1140,11 @@ history_file_path_ = os.path.expandvars(get_userconfig_value(user_config, "histo | ||
| 1139 | 1140 | history_file_path_ = os.path.dirname(history_file_path_) |
| 1140 | 1141 | access_token_path = os.path.join(history_file_path_, "token") |
| 1141 | 1142 | |
| 1143 | if args.e: | |
| 1144 | os.system("vim "+get_userconfig_value(user_config, "history_file")) | |
| 1145 | print("updated config.") | |
| 1146 | exit(0) | |
| 1147 | ||
| 1142 | 1148 | create_anime_list() |
| 1143 | 1149 | create_episode_list() |
| 1144 | 1150 | create_episode_url() |