aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-05-21 14:33:09 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2023-05-21 14:33:43 +0200
commit22fc9e2bc6c8f451dde4ad22aeb93ea99e6f3635 (patch)
treeb135670f4600089533bc8bb5b8c09b0567639cf2
parente5beba97616fcbc12d85934a5d9579b50c3ac746 (diff)
downloadWRMS-22fc9e2bc6c8f451dde4ad22aeb93ea99e6f3635.tar.gz
WRMS-22fc9e2bc6c8f451dde4ad22aeb93ea99e6f3635.zip
use yt-dlp instead of youtube-dl
-rw-r--r--README.md2
-rw-r--r--youtube.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index cbbf7d3..24e8057 100644
--- a/README.md
+++ b/README.md
@@ -59,7 +59,7 @@ The spotify username and password are provided using the environment variables
### youtube
-The `youtube` backend uses youtube-dl to search youtube and in combination with
+The `youtube` backend uses yt-dlp to search youtube and in combination with
mpv to play the selected youtube videos.
### dummy
diff --git a/youtube.go b/youtube.go
index 547e555..cec4162 100644
--- a/youtube.go
+++ b/youtube.go
@@ -28,7 +28,7 @@ type YoutubeDlSearchResult struct {
func (b *YoutubeBackend) Search(pattern string) []Song {
searchOption := fmt.Sprintf("ytsearch%d:%s", b.searchResults, pattern)
llog.Debug("Search youtube using: youtube-dl -j %s", searchOption)
- results, err := exec.Command("youtube-dl", "-j", searchOption).Output()
+ results, err := exec.Command("yt-dlp", "-j", searchOption).Output()
if err != nil {
llog.Error("youtube-dl failed with: %s", err)