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
tcely
480d5dd891
Add wait_for_media_premiere
task
2025-02-02 11:38:32 -05:00
tcely
4a3572c175
Also check for media.media_file.name
...
I thought this commit was already merged, but git claimed this line wasn't.
I don't think it matters if the `media.media_file.name` is blank here.
I made this mostly for completeness.
2025-02-02 07:31:41 -05:00
tcely
583863cb7c
Do not delete tasks that are currently running
2025-01-29 22:51:53 -05:00
meeb
ee32f238c4
Merge pull request #586 from tcely/rename-files-with-source-format-issue-185
...
Rename files after a source format change
2025-01-29 16:42:33 +11:00
tcely
a44e856378
Merge branch 'main' into rename-files-with-source-format-issue-185
2025-01-26 10:17:12 -05:00
tcely
69e895818e
Drop the thumbnail task if media downloaded first
2025-01-25 19:46:58 -05:00
tcely
3b20f07450
Try to download thumbnail before copy
2025-01-25 19:12:36 -05:00
tcely
274f19fa15
Use the new copy argument to filter_response
2025-01-09 13:41:23 -05:00
tcely
29c39aab1f
Add SHRINK_NEW_MEDIA_METADATA setting
2025-01-09 13:20:22 -05:00
tcely
ca75398548
Merge branch 'meeb:main' into filter-metadata-response
2025-01-07 01:35:13 -05:00
tcely
63fa97cc58
More compact JSON
...
The software doesn't need an extra space per key.
2025-01-07 00:43:59 -05:00
tcely
215aa64f2d
Change to a logged warning for NFO permission problems
2025-01-06 10:35:37 -05:00
tcely
fbcd01fe6c
Merge branch 'main' into rename-files-with-source-format-issue-185
2024-12-26 01:08:23 -05:00
meeb
76ac432e53
Merge pull request #593 from RichardHyde/handle_member_only_videos
...
Handle download_media_metadata task failures
2024-12-26 12:40:45 +11:00
meeb
083467296e
Merge pull request #601 from tcely/patch-9
...
Only log new media
2024-12-26 12:29:26 +11:00
tcely
d74e6bf2ca
Avoid the unlikely possibility of None comparison
2024-12-25 20:16:07 -05:00
meeb
e38709809e
Merge pull request #606 from tcely/patch-15
...
Made messages more human friendly
2024-12-26 11:59:53 +11:00
meeb
37b303ecec
Merge pull request #605 from tcely/patch-14
...
Cleanup removed media that has not been downloaded too
2024-12-26 11:59:12 +11:00
tcely
0795eb951d
Consistency fixes
...
The `filepath` variable is defined before the `if` and used throughout the first block, so we should use it in the `else` block too.
Otherwise, a change to that variable would change the first block but not the second block.
2024-12-25 00:21:58 -05:00
tcely
6c4d31765a
Made messages more human friendly
2024-12-25 00:16:18 -05:00
tcely
01f0d82788
Cleanup removed media that has not been downloaded too
2024-12-25 00:07:57 -05:00
tcely
3b41c8df81
Remove duplicated ' to:'
2024-12-23 16:55:26 -05:00
tcely
2799d95119
Only log new media
...
Channels with thousands of videos, that won't be downloaded, create large blocks in the logs without this.
2024-12-23 10:17:58 -05:00
Richard Hyde
ca61df2e0b
don't add the sync.tasks.download_media_metadata task if the video is skipped or there's already a task running
2024-12-19 18:42:14 +00:00
Richard Hyde
435885ff61
added sync.tasks.download_media_metadata to the task map
2024-12-19 18:39:19 +00:00
tcely
daaebc9c63
Add 'rename_all_media_for_source' to TASK_MAP
2024-12-17 18:13:47 -05:00
tcely
10c5a989c0
Adjust to accurate function in logged error
2024-12-17 15:22:13 -05:00
tcely
11d9711907
Add rename_all_media_for_source function
2024-12-12 17:46:03 -05:00
meeb
69a824e334
increase cached title length to 200 chars, ensure title is never set over 200 chars, resolves #518 (related to #515 )
2024-07-18 01:37:27 +10:00
meeb
b6cec8ab11
move saving all media items linked to a source when the source is saved to recalculate media skip status to background task, resolves #94
2024-07-14 19:13:14 +10:00
Tim
575a6f0c6c
Reduce how often we filter the media, it happens at save time
2024-07-13 08:25:16 +08:00
Tim
9615aac8e9
Store title as column instead of just in metadata to speedup access
2024-07-12 16:12:32 +08:00
Tim
d1de11d647
Allow filtering on min/max length of media
2024-07-12 11:43:31 +08:00
Tim
96ba4d25ed
Unify filtering for metadata to use same filtering for downloading
2024-07-11 16:30:08 +08:00
meeb
af3cf7ba63
Merge branch 'main' into main-extractChannelThumbnail
2024-02-26 16:50:29 +11:00
meeb
1b865bbf4f
Merge pull request #293 from geoah/main
...
Skip metadata and thumbnails if they are past the cutoff date
2024-02-26 16:42:28 +11:00
administrator
32a884365b
Duplicate banner.jpg to background.jpg
2023-12-11 19:38:36 +01:00
administrator
0478cb399e
Clean code and rename thumbnail by images
...
It now exports banner as banner.jpg and avatar as poster.jpg and season-poster.jpg
2023-12-11 19:24:44 +01:00
administrator
8770c76d6b
Remove BeautifulSoup to only use YT-DLP
2023-12-11 18:50:31 +01:00
administrator
e9d0599569
Add option to export channel thumbnails for Jellyfin
2023-12-10 19:06:00 +01:00
meeb
e54a762a7b
rework skip logic check, prevent race condition between metadata downloading and upload date being checked, resolves #440 , #183 , related to #438
2023-11-30 18:52:32 +11:00
locke4
0523f481d2
Updated according to comments on PR
...
Fixed whitespace
Update tests.py
Ran makemigrations
Update models.py
Update tests.py
Update models.py
Update tests.py
Update models.py
Update models.py
Update tests.py
Update models.py
Update tests.py
Update tests.py
Update tests.py
Update models.py
Update models.py
Update tests.py
Update models.py
Update models.py
Update tests.py
Update tests.py
Update signals.py
Update tasks.py
Update signals.py
Update models.py
Update tasks.py
Update signals.py
Update tasks.py
Update models.py
2023-10-24 18:37:09 +01:00
locke4
0f65a4027a
Add support for regex filters on video names
...
Update views.py
Update tests.py
Update source.html
Update tasks.py
Update signals.py
Update 0001_initial.py
Update models.py
Update models.py
Update tests.py
2023-10-21 21:07:15 +01:00
cavanfarrell
0542c734e5
Adds workflow to delete local media that no longer exists in the source
2023-10-20 10:19:57 -05:00
Alexey Kryuchkov
612f78e7eb
in cleanup_old_media, filter in database rather than in Python
2023-05-27 01:28:15 +03:00
meeb
e75b446883
Merge pull request #334 from kuhnchris/skip-manual
...
Adding new "manual_skip" field; adapt UI
2023-02-18 12:18:00 +11:00
KuhnChris
f4e5b6e76c
del delete_index_source_task
calls - solves #333
2023-02-13 14:23:41 +01:00
KuhnChris
977f996d8e
Adding new "manual_skip" field; adapt UI
2023-02-13 07:46:16 +01:00
Laurent DEFERT
0e278bc8c4
fix relative media_file path
...
FileField should store a relative path, to make their "url" attribute work
2022-12-28 12:03:34 +01:00
George Antoniadis
fa5bc3ecab
skip metadata and thumbnails once they are past the cutoff date
2022-12-08 01:20:10 +00:00
meeb
0c347d523d
delete metadata when a media item is reset, related to #226
2022-03-28 19:14:14 +11:00
meeb
4eca23d88b
account for removed media having no published data in metadata, resolves #191
2021-12-10 14:57:50 +11:00
meeb
837b6c3107
switch to yt-dlp with required library updates, resolves #145
2021-09-20 16:49:03 +10:00
Micah Morrison
7d471056c1
Fix meeb/tubesync#90 : Match media on source and id
2021-03-11 20:37:44 -05:00
meeb
02a0f924b4
typo
2021-03-08 13:08:38 +11:00
meeb
38665eb00d
add a secondary check when download tasks are triggered for download caps, related to #77
2021-03-08 12:20:44 +11:00
meeb
bceefc8b01
skip media which has no publish date in locally stored metadata
2021-02-21 11:15:57 +11:00
meeb
2f324f28a9
add sync-missing-metadata command with docs, resolves #25
2021-02-18 17:24:14 +11:00
meeb
82fa0f6bce
add sync.Source.download_media master flag, add manual import existing media command with docs, resolves #24
2021-02-18 16:24:24 +11:00
meeb
749df3f7bb
switch to using flat indexing of media, only index metadata for media once, resolves #38 and dramatically reduces crawl requests to youtube
2021-02-02 17:24:19 +11:00
meeb
001554db1a
fix format container name, resolves #22
2020-12-20 13:01:14 +11:00
meeb
b45231f533
add secondary time based cap to allow sources to not download everything in a channel, resolves #15
2020-12-19 18:05:01 +11:00
meeb
410906ad8e
add XML NFO file writing support, rework media cleanup deletion, resolves #11
2020-12-19 16:00:37 +11:00
meeb
83b9c167a9
add option at source level to copy over thumbnails with media, resolves #8
2020-12-18 12:51:04 +11:00
meeb
4863ccc7ba
add log messages for updating media servers
2020-12-13 19:47:45 +11:00
meeb
35096f67e2
typo
2020-12-13 19:34:43 +11:00
meeb
23b3e7011c
change updating media servers to be a priority task
2020-12-13 19:33:21 +11:00
meeb
de0c59c7c2
container bugfixesd
2020-12-13 19:17:27 +11:00
meeb
39b56dba04
missing import
2020-12-13 18:30:46 +11:00