Commit d68427f98e
Unsigned
Layout: unified · split
curd.py +4 −4
| @@ -281,8 +281,8 @@ episode_completed = False | |||
| 281 | 281 | ||
| 282 | if anime_history: # if it exists in local history | 282 | if anime_history: # if it exists in local history |
| 283 | # print(f"came in history {str(progress)}") | 283 | # print(f"came in history {str(progress)}") |
| 284 | # print(anime_history['episode']) | ||
| 284 | if progress == last_episode or int(anime_history['episode']) == int(progress)+1: | 285 | if progress == last_episode or int(anime_history['episode']) == int(progress)+1: |
| 285 | # print(anime_history['episode']) | ||
| 286 | if progress == last_episode: | 286 | if progress == last_episode: |
| 287 | rewatching = True | 287 | rewatching = True |
| 288 | mpv_args.append(f"--start={anime_history['time']}") | 288 | mpv_args.append(f"--start={anime_history['time']}") |
| @@ -302,9 +302,9 @@ else: # if history does not exist | |||
| 302 | else: | 302 | else: |
| 303 | print("Starting last episode of anime") | 303 | print("Starting last episode of anime") |
| 304 | progress = last_episode - 1 | 304 | progress = last_episode - 1 |
| 305 | watching_ep = int(progress)+1 | 305 | watching_ep = int(progress)+1 |
| 306 | write_to_tmp("ep_no", str(watching_ep)) | 306 | write_to_tmp("ep_no", str(watching_ep)) |
| 307 | 307 | print(watching_ep) | |
| 308 | # os.system("{current_dir}/scripts/episode_url.sh") | 308 | # os.system("{current_dir}/scripts/episode_url.sh") |
| 309 | run_script("episode_url") | 309 | run_script("episode_url") |
| 310 | 310 | ||