From 6a93d506994f06aea1185bfdec1af2bc2300ec05 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Fri, 9 Aug 2024 15:33:06 +0300 Subject: [PATCH] Revert "dylink: audio formats and no playlist" This reverts commit 2bd7cd6063d483bfa38dd204f5745558187b3ee1. --- dylinkprovider/dylinkprov.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/dylinkprovider/dylinkprov.go b/dylinkprovider/dylinkprov.go index 3a2ce2e..218a9bb 100644 --- a/dylinkprovider/dylinkprov.go +++ b/dylinkprovider/dylinkprov.go @@ -82,12 +82,7 @@ func getRemoteLink(id string) (string, error) { var link string vidUrl := fmt.Sprintf("https://youtube.com/watch?v=%s", id) - ytCmd := ytdlp.New(). - ExtractAudio(). - GetURL(). - AudioFormat("ba[ext=mp3]/ba[ext=m4a]/ba[ext=mp4]"). - NoPlaylist() - + ytCmd := ytdlp.New().ExtractAudio().GetURL() ytRes, err := ytCmd.Run(context.Background(), vidUrl) if err != nil { return "", err