Pass prefer_video to interfaces

This commit is contained in:
Rafael Moraes
2026-03-03 14:50:58 -03:00
parent 5a456dda78
commit 8bce2cdb2b
2 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -73,7 +73,6 @@ async def main(config: CliConfig):
base_interface = SpotifyBaseInterface(
api=api,
cover_size=config.cover_size,
prefer_video=config.prefer_video,
no_drm=config.no_drm,
skip_stream_info=config.synced_lyrics_only,
wvd_path=wvd_path,
@@ -97,6 +96,7 @@ async def main(config: CliConfig):
episode=episode_interface,
music_video=music_video_interface,
episode_video=episode_video_interface,
prefer_video=config.prefer_video,
artist_media_option=config.artist_media_option,
)
+8 -8
View File
@@ -137,14 +137,6 @@ class CliConfig:
type=CoverSize,
),
]
prefer_video: Annotated[
bool,
option(
"--prefer-video",
help="Prefer video streams when available",
is_flag=True,
),
]
no_drm: Annotated[
bool,
option(
@@ -197,6 +189,14 @@ class CliConfig:
),
]
# Interface specific options
prefer_video: Annotated[
bool,
option(
"--prefer-video",
help="Prefer video streams when available",
is_flag=True,
),
]
artist_media_option: Annotated[
ArtistMediaOption,
option(