From 4f0b0a655ac4b1e86b1d5af1b361cc170ddd8f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=88=9A=28noham=29=C2=B2?= <100566912+NohamR@users.noreply.github.com> Date: Sat, 20 Dec 2025 13:01:30 +0100 Subject: [PATCH] Update comments, logging, and fix tick diff calculation --- README.md | 4 ++-- download/.gitkeep | 0 main.py | 2 +- utils/times.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 download/.gitkeep diff --git a/README.md b/README.md index 8b766e8..7c43f53 100644 --- a/README.md +++ b/README.md @@ -123,8 +123,8 @@ In order to decrypt DRM content, you will need to have a dumped CDM, after that - [x] CLI arguments implementation + documentation - [x] French/English full translation - [ ] Better output system -- [ ] Add more comments in the code -- [ ] Logging system +- [x] Add more comments in the code +- [x] Logging system - [ ] Live direct restream support diff --git a/download/.gitkeep b/download/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/main.py b/main.py index 6059295..382df73 100644 --- a/main.py +++ b/main.py @@ -339,7 +339,7 @@ if __name__ == "__main__": track_id_audio = audio_data["track_id"] start_tick_video = video_data["start_tick"] start_tick_audio = audio_data["start_tick"] - diff_start = start_tick_video - start_tick_audio + diff_start = start_tick_audio - start_tick_video diff_start_sec = convert_ticks_to_sec(diff_start, TIMESCALE) # ffmpeg -i "concat:init.mp4|merged_dec.m4s" -c copy output.mp4 diff --git a/utils/times.py b/utils/times.py index 746698a..a70cdf0 100644 --- a/utils/times.py +++ b/utils/times.py @@ -57,7 +57,7 @@ async def bruteforce(track_id, date): total_requests = 288000 batch_size = 20000 - logger.debug("Starting bruteforce for %s", track_id) + logger.debug("Starting bruteforce for %s near %s", track_id, date) start_time = time.time()