Commit 2ccc8b057f

2ccc8b057f03f474f3337dc34c33d7ab39837327

parent: 983c270e6f

Unsigned

Wraient <wraient.911@gmail.com> · 2024-10-09 10:16 UTC

new option added

Layout: unified · split

curd.py +6
@@ -1128,6 +1128,7 @@ parser.add_argument("-sub", action='store_true', help="Anime audio type (optiona
11281128parser.add_argument("-dub", action='store_true', help="Anime audio type (optional)")
11291129parser.add_argument("-c", action='store_true', help="Continue last watching anime (optional)")
11301130parser.add_argument("-u", action='store_true', help="Update script (optional)")
1131parser.add_argument("-e", action='store_true', help="Edit config (optional)")
11311132args = parser.parse_args()
11321133
11331134if args.u:
@@ -1139,6 +1140,11 @@ history_file_path_ = os.path.expandvars(get_userconfig_value(user_config, "histo
11391140history_file_path_ = os.path.dirname(history_file_path_)
11401141access_token_path = os.path.join(history_file_path_, "token")
11411142
1143if args.e:
1144 os.system("vim "+get_userconfig_value(user_config, "history_file"))
1145 print("updated config.")
1146 exit(0)
1147
11421148create_anime_list()
11431149create_episode_list()
11441150create_episode_url()