tcely
|
8eec7320db
|
Reschedule download tasks when metadata is not ready
|
2025-03-17 11:43:00 -04:00 |
|
tcely
|
deed3a3393
|
Reduce the amount of time the database is locked
|
2025-03-17 09:50:15 -04:00 |
|
tcely
|
51a6a08f9c
|
This task is being called from a transaction already
|
2025-03-14 15:42:03 -04:00 |
|
tcely
|
fc058a82f7
|
Map the new task
|
2025-03-14 13:52:04 -04:00 |
|
tcely
|
81ab9e3c92
|
Add and use delete_all_media_for_source task
|
2025-03-14 13:32:49 -04:00 |
|
tcely
|
af0e300ef1
|
Download metadata before indexing another source
|
2025-03-11 16:59:33 -04:00 |
|
tcely
|
79ed138aa1
|
fixup: typo
|
2025-03-09 22:45:49 -04:00 |
|
tcely
|
58472f7785
|
Add explicit transactions for certain tasks
|
2025-03-09 21:47:48 -04:00 |
|
tcely
|
5cd372c92d
|
Do not try to refresh formats when no metadata exists
|
2025-03-08 17:04:11 -05:00 |
|
tcely
|
e4a6c54764
|
Don't just log an unhandled exception
Raising these is important to trigger task failure and rescheduling.
|
2025-03-01 19:15:13 -05:00 |
|
meeb
|
aaaae354cb
|
Merge pull request #757 from tcely/patch-6
Add scheduling delays
|
2025-02-24 17:40:31 +11:00 |
|
tcely
|
e5d124e807
|
Update rename_all_media_for_source
Include the recent optimizations.
|
2025-02-22 08:04:44 -05:00 |
|
tcely
|
599d596368
|
Add scheduling delays
This is an attempt to stop duplicated tasks from running at the same time.
|
2025-02-22 06:53:28 -05:00 |
|
tcely
|
78977bbdec
|
Limit the try and log what happened for debugging
|
2025-02-20 23:24:10 -05:00 |
|
tcely
|
95774a0d2c
|
Do not let one private video hold up the rest
|
2025-02-20 23:16:13 -05:00 |
|
tcely
|
b01af70098
|
Try to refresh formats after download failed
|
2025-02-19 17:48:18 -05:00 |
|
tcely
|
ad8fa72123
|
Try to refresh formats while checking media
|
2025-02-19 17:34:20 -05:00 |
|
tcely
|
ed3136c7a8
|
Defer Media.metadata inside rename_media task
|
2025-02-18 21:12:40 -05:00 |
|
tcely
|
6aa392118d
|
Remove import for tz
|
2025-02-17 22:38:00 -05:00 |
|
tcely
|
226d886557
|
fixup: call the function
|
2025-02-17 08:35:56 -05:00 |
|
tcely
|
37b15ed625
|
Use Media.metadata_published for indexing also
|
2025-02-17 08:23:49 -05:00 |
|
tcely
|
0a1b08b654
|
Use Media.metadata_published
|
2025-02-17 08:13:20 -05:00 |
|
tcely
|
041e088cdf
|
Add the rename_media task
|
2025-02-15 21:47:39 -05:00 |
|
meeb
|
fed8d36ab9
|
Merge pull request #727 from tcely/patch-5
Do not turn `Media.skip` off for already skipped media
|
2025-02-16 11:56:16 +11:00 |
|
tcely
|
9045bed509
|
Check both possible paths for media files
|
2025-02-14 19:26:12 -05:00 |
|
tcely
|
844b4b0493
|
Download again for missing media files
|
2025-02-14 19:17:45 -05:00 |
|
tcely
|
1f3cf1c62e
|
Tweak for readability
Changing the default to `None` makes it clearer why the `or 0` is needed.
|
2025-02-14 14:38:05 -05:00 |
|
tcely
|
92c0ed20c7
|
Handle None in video["duration"]
Fixes #725
Translate `None` from `get` to `0` for `float`
|
2025-02-14 14:30:10 -05:00 |
|
meeb
|
b87c1253a0
|
Merge pull request #702 from tcely/patch-9
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
Remove unused `filter_media`
|
2025-02-12 05:57:57 +11:00 |
|
tcely
|
f963c55610
|
Limit the title string to fit in the database column
|
2025-02-10 08:52:09 -05:00 |
|
tcely
|
b8f8d9d7fa
|
Use Media.get_metadata_field
|
2025-02-10 08:27:10 -05:00 |
|
tcely
|
83dc375810
|
Save duration , timestamp , and title to Media instances
|
2025-02-09 19:32:13 -05:00 |
|
tcely
|
913514326a
|
Remove unused filter_media
|
2025-02-09 05:57:29 -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 |
|
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 |
|
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 |
|
tcely
|
b50477e536
|
Add minutes as a unit also
|
2025-02-03 10:22:38 -05:00 |
|
tcely
|
c0f52ae12e
|
We only need one waiting task per video
|
2025-02-03 00:09:59 -05:00 |
|
tcely
|
b05d3854a1
|
Use repeat_until in the call
|
2025-02-02 23:58:09 -05:00 |
|
tcely
|
a028b4ea26
|
Let the wait task go ahead first
|
2025-02-02 14:09:53 -05:00 |
|
tcely
|
89573e93f5
|
Add verbose_name for better display
Also, some code readability changes.
|
2025-02-02 13:49:25 -05:00 |
|
tcely
|
deeb2f61a9
|
background has less documentation than I wanted
|
2025-02-02 13:00:30 -05:00 |
|
tcely
|
9e46b9f6d5
|
A first attempt at waiting for future videos
|
2025-02-02 12:29:36 -05:00 |
|