Skip to content
This repository was archived by the owner on May 2, 2026. It is now read-only.

Commit 12ef447

Browse files
committed
feat: add vlc player which i somehow forgot lol
1 parent 75b1b8f commit 12ef447

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

viu_media/core/config/descriptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
APP_FZF = "Settings for the FZF selector interface."
133133
APP_ROFI = "Settings for the Rofi selector interface."
134134
APP_MPV = "Configuration for the MPV media player."
135+
APP_VLC = "Configuration for the VLC media player."
135136
APP_MEDIA_REGISTRY = "Configuration for the media registry."
136137
APP_SESSIONS = "Configuration for sessions."
137138

viu_media/core/config/model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ class AppConfig(BaseModel):
534534
description=desc.APP_ROFI,
535535
)
536536
mpv: MpvConfig = Field(default_factory=MpvConfig, description=desc.APP_MPV)
537+
vlc: VlcConfig = Field(default_factory=VlcConfig, description=desc.APP_VLC)
537538
media_registry: MediaRegistryConfig = Field(
538539
default_factory=MediaRegistryConfig, description=desc.APP_MEDIA_REGISTRY
539540
)

viu_media/libs/player/player.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ def create(config: AppConfig) -> BasePlayer:
4141
from .mpv.player import MpvPlayer
4242

4343
return MpvPlayer(config.mpv)
44+
elif player_name == "vlc":
45+
from .vlc.player import VlcPlayer
46+
47+
return VlcPlayer(config.vlc)
4448
raise NotImplementedError(
4549
f"Configuration logic for player '{player_name}' not implemented in factory."
4650
)

0 commit comments

Comments
 (0)