mirror of
https://github.com/glomatico/votify.git
synced 2026-10-07 16:32:13 +02:00
Pass prefer_video to interfaces
This commit is contained in:
+1
-1
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user