Commit Graph

1210 Commits

Author SHA1 Message Date
tcely
d7d1f52ff3
Completed fragments or bytes can be zero 2025-02-07 15:59:44 -05:00
tcely
f64432f243
Adjust patch location 2025-02-07 15:45:09 -05:00
tcely
9ddc6194dd
Rename patches/models.py to patches/background_task/models.py 2025-02-07 15:44:00 -05:00
tcely
23abc545d2
Replace '100%' with the calculated percent 2025-02-07 15:34:24 -05:00
tcely
90b892fd85
Prefer fragment count calculation
When the first fragment is downloaded, the percent is calculated as `100`, because the bytes and total are from the fragment, which prevents additional logging.
2025-02-07 15:21:23 -05:00
tcely
7f64226369
Add more keys to filter
- `heatmap`: is a huge list of tiny "chapters" used to display popularity of sections of the video
- `requested_subtitles`: also has a URL that expires
2025-02-07 14:58:43 -05:00
tcely
ee9849a1aa
Calculate percent from number of fragments downloaded 2025-02-07 13:58:22 -05:00
tcely
074230b737
Switch from key to filename
When downloading subtitles, key isn't available.
2025-02-07 13:04:23 -05:00
tcely
034110e6fe
Log str output 2025-02-07 11:42:19 -05:00
tcely
f5c832e5ab
fixup: use repr to identify the class 2025-02-07 07:35:51 -05:00
tcely
c48ec594c3
Unlock task immediately if the locked_by PID isn't running 2025-02-07 06:26:24 -05:00
tcely
d6ed3388e2
Removing existing (unlocked) tasks is safe to use 2025-02-07 06:19:13 -05:00
tcely
71d84e1d74
Better output 2025-02-07 06:11:09 -05:00
tcely
6177ff4c59
Move get into BaseStatus 2025-02-07 05:42:34 -05:00
tcely
afa5ec8684
fixup: it is status not self needed here 2025-02-07 04:45:11 -05:00
tcely
09812019b5
Use next_progress to avoid logging in spurts 2025-02-07 04:28:52 -05:00
tcely
3c4849551b
Define then update *_hook dictionaries 2025-02-07 03:50:48 -05:00
tcely
75df4a57e3
Move common methods to a BaseStatus class 2025-02-07 03:44:12 -05:00
tcely
08842752d4
We can't use self without an instance 2025-02-07 03:06:21 -05:00
tcely
3b14e03842
Add & use functions from status classes 2025-02-07 01:50:23 -05:00
tcely
104bac30ba
Patch from within the repository 2025-02-06 23:05:58 -05:00
tcely
5dfe9ea4e9
Delete patches/.keep_dir 2025-02-06 23:02:58 -05:00
tcely
794bdf9293
Add patched models.py
From: https://github.com/tcely/django-background-tasks/raw/refs/heads/locked-logic-fix/background_task/models.py
2025-02-06 23:02:26 -05:00
tcely
f04f3a5003
Create .keep_dir 2025-02-06 23:01:27 -05:00
meeb
53e7cc2c87
Merge pull request #691 from tcely/patch-4
Some checks are pending
Run Django tests for TubeSync / test (3.10) (push) Waiting to run
Run Django tests for TubeSync / test (3.11) (push) Waiting to run
Run Django tests for TubeSync / test (3.12) (push) Waiting to run
Run Django tests for TubeSync / test (3.7) (push) Waiting to run
Run Django tests for TubeSync / test (3.8) (push) Waiting to run
Run Django tests for TubeSync / test (3.9) (push) Waiting to run
Run Django tests for TubeSync / containerise (push) Waiting to run
Rework download progress hook
2025-02-07 14:43:33 +11:00
tcely
194e84b074
Differentiate the unknown event logs 2025-02-06 22:36:56 -05:00
tcely
3ec1d2dc29
Initialization is done by the class now 2025-02-06 22:26:23 -05:00
tcely
c24178f7d6
Support multiple independent statuses 2025-02-06 22:24:43 -05:00
tcely
36a9902d26
Reset hook.download_progress before downloading 2025-02-06 20:31:32 -05:00
tcely
6d71c69878
Reset hook.download_progress so that it isn't above 100% 2025-02-06 20:02:14 -05:00
tcely
dfc63a2b94
Reworked download progress hook
Be more resilient about missing keys.
Log the downloading state the first time through.
2025-02-06 18:06:15 -05:00
tcely
8efc845228
Patch any python3 version 2025-02-05 22:57:33 -05:00
tcely
1530b6bee1
Patch the logic in locked() 2025-02-05 19:24:35 -05:00
tcely
bc58e85a89
Let Tasks expire correctly 2025-02-05 16:26:58 -05:00
tcely
5a477eb97e
Stop when the paths match 2025-02-05 03:56:48 -05:00
meeb
26940c86b4
Merge pull request #665 from tcely/patch-6
Do not delete tasks that are currently running
2025-02-05 18:22:34 +11:00
meeb
690cb42f96
Merge pull request #689 from tcely/patch-4
Bump `ffmpeg`
2025-02-05 14:11:15 +11:00
meeb
3ecf1e125d
Merge pull request #688 from tcely/patch-2
Remove code that didn't work
2025-02-05 14:11:00 +11:00
meeb
531be5f3ab
Merge pull request #686 from tcely/patch-3
Turn off the `text-transform` with a class
2025-02-05 14:10:33 +11:00
tcely
4ec407cf6f
Bump ffmpeg 2025-02-04 13:39:46 -05:00
tcely
459cb4b891
Remove the td function
It is no longer being used for a default argument value.
2025-02-04 11:21:24 -05:00
tcely
0b233be517
Use a single datetime for now 2025-02-04 11:16:17 -05:00
tcely
3b58d86cd3
Remove code that didn't work
This method of changing `verbose_name` didn't result in any visible changes.
2025-02-04 11:05:18 -05:00
meeb
4b08062761
Merge pull request #685 from tcely/patch-2
Wait for video premiere
2025-02-04 13:33:02 +11:00
tcely
5cf7f1574a
We don't need the extra run 2025-02-03 21:22:19 -05:00
meeb
9ece0c26e8
Merge pull request #687 from tcely/patch-4
Do not store duplicate categories
2025-02-04 13:17:46 +11:00
tcely
aba3b1f16d
Display the datetime without partial seconds 2025-02-03 18:32:41 -05:00
tcely
df5746dac4
Don't log the handled exception 2025-02-03 11:52:25 -05:00
tcely
a8e7299dbe
Log units and number within the try block 2025-02-03 11:44:02 -05:00
tcely
bf0dcc631a
Fixes from testing for wait_for_media_premiere 2025-02-03 11:33:56 -05:00