Revert "dylink: audio formats and no playlist"
This reverts commit 2bd7cd6063
.
This commit is contained in:
parent
63e707f881
commit
6a93d50699
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user