Skip to content

myin142/yt-player

Repository files navigation

Youtube Player

Desktop application that uses youtube-dl to download and play playlists/videos.

Using MPD you can also play the music with some basic control. It directly shows your MPD queue inside the application, so it can also be controlled outside of the application using the normal cli commands with mpc.

Features:

  • Download playlists from youtube
  • MPD Controls
    • Play playlists to MPD server
    • Toggle random
    • Show active playing music
    • Set volume
    • Play next queued music
    • Queue / Play a selected music
    • Play / Pause
    • Display duration/location of music
    • Toggle repeat
    • Seek
    • Create playlists

Install

Youtube-dl (now yt-dlp) is required for this application to work. (Might not work inside the EU, cookie required for consent?)

pip install yt-dlp

or

pacman -S yt-dlp

MPD server and MPC command is required to play the music.

  • MPD needs to be started as user: systemctl --user start mpd
  • Create a config in ~/.config/mpd/mpd.conf with the following setting.
music_directory		"~/.config/yt-player-videos"
  • Might have to add this to the config to make volume change work
audio_output {
    type        "pulse"
    name        "My Pulse Output"
#   server      "remote_server"     # optional
#   sink        "remote_server_sink"    # optional
}

Preview

Preview