Revert "dylink: audio formats and no playlist"

This reverts commit 2bd7cd6063.
This commit is contained in:
HeshamTB 2024-08-09 15:33:06 +03:00
parent 63e707f881
commit 6a93d50699

View File

@ -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