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
|
var link string
|
||||||
|
|
||||||
vidUrl := fmt.Sprintf("https://youtube.com/watch?v=%s", id)
|
vidUrl := fmt.Sprintf("https://youtube.com/watch?v=%s", id)
|
||||||
ytCmd := ytdlp.New().
|
ytCmd := ytdlp.New().ExtractAudio().GetURL()
|
||||||
ExtractAudio().
|
|
||||||
GetURL().
|
|
||||||
AudioFormat("ba[ext=mp3]/ba[ext=m4a]/ba[ext=mp4]").
|
|
||||||
NoPlaylist()
|
|
||||||
|
|
||||||
ytRes, err := ytCmd.Run(context.Background(), vidUrl)
|
ytRes, err := ytCmd.Run(context.Background(), vidUrl)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
Loading…
Reference in New Issue
Block a user