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