Commit Graph
100 Commits
Author SHA1 Message Date
tcely 041e088cdf Add the rename_media task 2025-02-15 21:47:39 -05:00
tcely ba612237f2 Schedule a rename task per media item instead 2025-02-15 21:33:44 -05:00
tcely 785ba9eb05 Only return True when instance.skip was changed 2025-02-15 16:02:33 -05:00
tcely 5b28acbd33 Allow unskipping based on dates 2025-02-15 15:28:03 -05:00
tcely 366e6fd864 Replace FALLBACK_FAIL
Remove `FALLBACK_FAIL`, `FALLBACK_NEXT_BEST`, and `FALLBACK_NEXT_BEST_HD`
2025-02-14 22:23:13 -05:00
tcely 9626701486 fixup: simplify the if condition 2025-02-14 19:43:41 -05:00
tcely dc9e641a7f Do not log when skipped media is set to skip 2025-02-14 19:34:49 -05: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 13bbeef5bf Add a comment about disallowing True => False 2025-02-14 18:56:44 -05:00
tcely e5f76efebf Do not unset Media.media_file
This could be a temporary condition, and keeping the old path in the database is not harmful for the software.
2025-02-14 18:53:03 -05:00
tcely afcefc04c1 Do not change the Media instance 2025-02-14 18:48:32 -05:00
tcely 986fda59ce Do not unset Media.downloaded when the file is not found 2025-02-14 18:44:15 -05:00
tcely 806dde6cac Do not allow filtering to turn off Media.skip 2025-02-14 15:01:55 -05:00
tcely ab0cc1c5ee Don't turn Media.skip off when starting 2025-02-14 14:50:40 -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
tcely c09f399fb6 fixup: remove an extra comma 2025-02-14 14:00:26 -05:00
tcely 271ba49a68 Tweak the query by moving downloaded to the NOT grouping 2025-02-14 13:57:32 -05:00
tcely 72d0019493 Remove logging of the SQL
I've seen it, and the query looks fine.
2025-02-14 13:33:45 -05:00
tcely a9f9424dd5 Remove SOURCE_VCODEC_VP9 2025-02-13 21:46:14 -05:00
tcely bc6648b110 Remove SOURCE_ACODEC_OPUS 2025-02-13 21:41:33 -05:00
tcely 0d6498805f Remove SOURCE_ACODEC_CHOICES and SOURCE_VCODEC_CHOICES 2025-02-13 21:32:47 -05:00
tcely 465d584b8a Search and replace of V to Val
Fixes #722
2025-02-13 21:09:53 -05:00
tcely 7a39fcf21e Log the SQL being used 2025-02-13 18:51:46 -05:00
tcely 5534bb5cf5 Find only downloading media with the key 2025-02-13 18:45:09 -05:00
tcely 165fb8607f Display Media.download_date after check mark 2025-02-13 18:03:34 -05:00
tcely bc284568df Remove unused SOURCE_RESOLUTION* 2025-02-13 08:43:08 -05:00
tcely 8a044567a5 Remove SOURCE_TYPE_YOUTUBE_PLAYLIST 2025-02-13 08:23:06 -05:00
tcely 18ba5c4424 Show publication date and the not truncated title 2025-02-13 06:10:49 -05:00
tcely c702889653 Adjusted test data for the new filter_seconds_min choices 2025-02-13 05:31:06 -05:00
tcely 1ccdd2e58b Integer is a closer fit for bool 2025-02-13 02:26:56 -05:00
tcely 811bbdf57f fixup: missed one of the users of a removed attribute 2025-02-13 01:54:55 -05:00
tcely 6768fe4385 Use MediaState in models.py 2025-02-13 01:47:45 -05:00
tcely 11ee871006 Merge branch 'meeb:main' into patch-17 2025-02-12 23:55:04 -05:00
tcely f4b34bafd0 Use FilterSeconds in models.py 2025-02-12 23:52:35 -05:00
tcely edd320b786 Replace Source.SOURCE_TYPE_YOUTUBE_PLAYLIST 2025-02-12 23:26:14 -05:00
tcely 43e6598a31 Remove unused variables 2025-02-12 23:08:28 -05:00
tcely 312b9275c1 Use FileExtension for import-existing-media.py 2025-02-12 23:07:25 -05:00
tcely 58b98739ee Use V for models.py 2025-02-12 22:59:29 -05:00
tcely 7638500188 Use V for views.py 2025-02-12 20:30:32 -05:00
tcely 150bb9a5f8 Use V for tests.py 2025-02-12 19:40:55 -05:00
tcely a81d946980 Use V in matching.py 2025-02-12 18:09:51 -05:00
tcely fb1db9da59 Add V function to save myself some effort 2025-02-12 18:04:00 -05:00
tcely 10632b9e5d Use SourceResolution 2025-02-12 15:23:08 -05:00
tcely a33527a6cd Use SourceResolution 2025-02-12 13:49:19 -05:00
tcely 091c9fed7b Create 0028_alter_source_source_resolution.py 2025-02-12 13:37:51 -05:00
tcely 2e4ef80691 fixup: missed the list() 2025-02-12 13:25:40 -05:00
tcely 7bb29165e2 Correct the mapping keys 2025-02-12 13:15:56 -05:00
tcely 2195ac34b7 Remove RESOLUTION_MAP 2025-02-12 11:27:27 -05:00
tcely 3675496cfa Use SourceResolution 2025-02-12 11:21:29 -05:00
tcely 668a3c6604 Use Fallback 2025-02-12 09:49:18 -05:00
tcely 0fdef5948c Use Fallback 2025-02-12 07:32:23 -05:00
tcely 0f85803081 Use Fallback 2025-02-12 07:07:26 -05:00
tcely 4a1c0016fd Use MediaServerType 2025-02-12 06:34:29 -05:00
tcely f8229fff11 Use MediaServerType 2025-02-12 06:07:37 -05:00
tcely ab9a6e6c76 Remove SponsorBlock_Category from fields.py 2025-02-12 05:46:32 -05:00
tcely deefe060ed Use SponsorBlock_Category from choices.py 2025-02-12 05:44:33 -05:00
tcely 073e08e27c Actually return the updated dictionary 2025-02-12 05:29:10 -05:00
tcely 6b4adbd596 Add YouTube_SourceType._validation_urls class method 2025-02-12 05:03:48 -05:00
tcely aabe249598 Use youtube_help 2025-02-12 04:10:52 -05:00
tcely 09c9d93372 Remove unneeded test_source_types 2025-02-12 03:20:25 -05:00
tcely b45675b13a Use a class method to generate the mapping dictionary 2025-02-12 02:46:27 -05:00
tcely e79218c208 Use youtube_validation_urls 2025-02-12 01:33:11 -05:00
tcely b64ca284e7 fixup: the 'p' must still be removed 2025-02-12 01:22:11 -05:00
tcely 8bedd4f9ff Use a way that works for all versions 2025-02-12 01:18:45 -05:00
tcely 116b78db08 Make migrate happy again 2025-02-12 01:04:29 -05:00
tcely 3337dcae08 Fixes from testing 2025-02-12 00:59:38 -05:00
tcely 69095f9f92 Use a raw string
SyntaxWarning: invalid escape sequence '\/'
2025-02-12 00:43:44 -05:00
tcely d550812022 Use youtube_long_source_types 2025-02-12 00:06:46 -05:00
tcely c493e3c92a Use youtube_long_source_types 2025-02-12 00:02:39 -05:00
tcely 934cb2ed58 Use IndexSchedule from choices.py 2025-02-11 23:31:13 -05:00
tcely bb3d5fcdff Remove CapChoices and IndexSchedule 2025-02-11 23:24:21 -05:00
tcely 47f3341b00 Remoce Source.SOURCE_TYPES 2025-02-11 23:10:23 -05:00
tcely 44a6e0c69a Replace Source.SOURCE_TYPES 2025-02-11 23:08:02 -05:00
tcely e0c60365ca Start using YouTube_SourceType 2025-02-11 22:56:01 -05:00
tcely 50762d04f0 Merge pull request #286 from meeb/main
Update to upstream main
2025-02-11 22:33:56 -05:00
tcely 96737c4de3 Add choices from models.py 2025-02-11 22:32:43 -05:00
tcely c34700839b We can filter before metadata
After #704, the `duration`, `published`, and `title` are all available before `metadata` has been retrieved.
2025-02-11 20:53:20 -05:00
tcely 468c89f17c Adjust the comment explaining the situation 2025-02-11 18:50:23 -05:00
tcely 96f1618168 Check for the precise return value
`task.locked_by_pid_running()` returns:
- `True`: locked and PID exists
- `False`: locked and PID does not exist
- `None`: not locked_by, no PID to check
2025-02-11 18:39:51 -05:00
tcely a7f872e902 Merge branch 'main' into patch-3 2025-02-11 15:30:14 -05:00
tcely a7abb6e907 Merge branch 'main' into patch-10 2025-02-11 15:24:22 -05:00
tcely 57e52f4848 Remove the generated fields variant 2025-02-11 14:56:27 -05:00
tcely 749fb1308e Control writethumbnail with embed_thumbnail 2025-02-11 04:29:53 -05:00
tcely 0c282d4573 Use the .value strings 2025-02-11 02:51:23 -05:00
tcely 6f49474ade Create choices.py
This is a start to moving various choices and mappings out of other files.
2025-02-11 02:16:29 -05:00
tcely 00e89623be Sort the excluded set 2025-02-11 01:56:07 -05:00
tcely 09fab821e9 Deduplicated fields 2025-02-11 01:34:28 -05:00
tcely 0850470867 Rename the internal function
After removing the assert, the old name was a bit confusing.
2025-02-10 22:57:09 -05:00
tcely f963c55610 Limit the title string to fit in the database column 2025-02-10 08:52:09 -05:00
tcely 488294475a Limit the metadata_title string to fit in the title column 2025-02-10 08:48:16 -05:00
tcely b8f8d9d7fa Use Media.get_metadata_field 2025-02-10 08:27:10 -05:00
tcely b6334ce41c Add timestamp to mappings
Return `field` instead of '' so that a missing mapping returns itself.
2025-02-10 08:18:22 -05:00
tcely d7222e8fbb Be consistent with get_media_metadata_task 2025-02-10 07:23:50 -05:00
tcely 92130f3604 Do not schedule additional download_media tasks 2025-02-10 06:19:25 -05:00
tcely 33ad4179b8 Clean up previously prepended task_status 2025-02-10 05:27:45 -05:00
tcely b16fb062aa Avoid ImportError 2025-02-10 04:50:08 -05:00
tcely 332f34c78e Avoid ImportError 2025-02-10 04:46:35 -05:00
tcely 55637c2caf Add status text to the download task 2025-02-10 04:34:58 -05:00