Media downloading indexing options (round 2) #14
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's new?
Adds a lot of new options to the
MediaProfile
model, one option to theSource
model, and some filepath trackers to theMediaItem
model. For each of these options, you can assume the appropriate option builder(s)/metadata parser/views have been updated accordingly:New fields on
MediaProfile
download_thumbnail
(boolean)embed_thumbnail
(boolean)download_metadata
(boolean)embed_metadata
(boolean)shorts_behaviour
(string enum)livestream_behaviour
(string enum)New field on
Source
download_media
(boolean)New fields on
MediaItem
thumbnail_filepath
(string)metadata_filepath
(string)Other additions:
IndexOptionBuilder
to work towards the aboveWhat's changed?
enqueue_pending_media_downloads
and the download worker now respect the source'sdownload_media
option, running a no-op if media shouldn't be downloadedget_video_ids
can now take asource
instead of just a URL. When given a source, options may be applied to theyt-dlp
call as appropriateWhat's fixed?
N/A
Any other comments?
N/A