Commit 522795f304
Unsigned
Layout: unified · split
curd.py +2 −1
| @@ -1517,7 +1517,8 @@ while True: # loop for each episode | |||
| 1517 | if get_userconfig_value(user_config, "skip_ed") == True: | 1517 | if get_userconfig_value(user_config, "skip_ed") == True: |
| 1518 | if round(int(playback_time)) > round(int(skip_intervals['ed']['start_time'])) and round(int(playback_time)) < round(int(skip_intervals['ed']['start_time']))+10: | 1518 | if round(int(playback_time)) > round(int(skip_intervals['ed']['start_time'])) and round(int(playback_time)) < round(int(skip_intervals['ed']['start_time']))+10: |
| 1519 | print("skipped ending") | 1519 | print("skipped ending") |
| 1520 | seek_mpv(mpv_socket_path, int(skip_intervals['ed']['end_time'])) | 1520 | seek_mpv(mpv_socket_path, int(skip_intervals['ed']['end_time'])) |
| 1521 | watched_percentage = get_percentage_watched(mpv_socket_path) | ||
| 1521 | 1522 | ||
| 1522 | update_anime(get_userconfig_value(user_config, 'history_file'), str(media_id), str(get_contents_of("id")), str(watching_ep), str(playback_time), str(duration), str(title)) | 1523 | update_anime(get_userconfig_value(user_config, 'history_file'), str(media_id), str(get_contents_of("id")), str(watching_ep), str(playback_time), str(duration), str(title)) |
| 1523 | # print("Playback time:", playback_time) | 1524 | # print("Playback time:", playback_time) |