This commit is contained in:
2026-01-01 20:37:27 -08:00
parent f3c79609d8
commit deb05c0d44
35 changed files with 5030 additions and 4879 deletions

View File

@@ -30,15 +30,15 @@ PIPELINE_PRESETS: List[PipelinePreset] = [
PipelinePreset(
label="Download → Merge → Local",
description=
"Use download-media with playlist auto-selection, merge the pieces, tag, then import into local storage.",
"Use download-file with playlist auto-selection, merge the pieces, tag, then import into local storage.",
pipeline=
'download-media "<url>" | merge-file | add-tags -store local | add-file -storage local',
'download-file "<url>" | merge-file | add-tags -store local | add-file -storage local',
),
PipelinePreset(
label="Download → Hydrus",
description="Fetch media, auto-tag, and push directly into Hydrus.",
pipeline=
'download-media "<url>" | merge-file | add-tags -store hydrus | add-file -storage hydrus',
'download-file "<url>" | merge-file | add-tags -store hydrus | add-file -storage hydrus',
),
PipelinePreset(
label="Search Local Library",

View File

@@ -405,7 +405,7 @@ class DownloadModal(ModalScreen):
download_succeeded = False
download_stderr_text = "" # Store for merge stage
if download_enabled:
download_cmdlet_name = "download-media" if self.is_playlist else "download-file"
download_cmdlet_name = "download-file"
download_cmdlet = get_cmdlet(download_cmdlet_name)
if download_cmdlet:
logger.info(f"📥 Executing {download_cmdlet_name} stage")
@@ -416,9 +416,9 @@ class DownloadModal(ModalScreen):
if worker:
worker.log_step(f"Starting {download_cmdlet_name} stage...")
# Build arguments for download-media (yt-dlp) playlists; download-file takes no yt-dlp args.
# Build yt-dlp playlist arguments for download-file streaming (if applicable).
cmdlet_args = []
if download_cmdlet_name == "download-media" and self.is_playlist:
if self.is_playlist:
# Always use yt-dlp's native --playlist-items for playlists
if playlist_selection:
# User provided specific selection