Commit d68427f98e

d68427f98ee42742c782bcb87e7733016535c1da

parent: aba2e74c2f

Unsigned

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

fix bug

Layout: unified · split

curd.py +4 −4
@@ -281,8 +281,8 @@ episode_completed = False
281281
282282if anime_history: # if it exists in local history
283283 # print(f"came in history {str(progress)}")
284 # print(anime_history['episode'])
284285 if progress == last_episode or int(anime_history['episode']) == int(progress)+1:
285 # print(anime_history['episode'])
286286 if progress == last_episode:
287287 rewatching = True
288288 mpv_args.append(f"--start={anime_history['time']}")
@@ -302,9 +302,9 @@ else: # if history does not exist
302302 else:
303303 print("Starting last episode of anime")
304304 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))
307print(watching_ep)
308308# os.system("{current_dir}/scripts/episode_url.sh")
309309run_script("episode_url")
310310