metube icon indicating copy to clipboard operation
metube copied to clipboard

More than one link at "video or playlist URL"

Open cryptontgn opened this issue 4 years ago • 5 comments

I think, when you ar downloading from outside of youtube, and you have a lot of links, one for each episode, you have to put it one by one, and is a lot of wasted time, if it can read a lot of links at the same time, i think it will be a good feature, Too many thanks for metube, i use it on unraid, and is too clear and fine.

cryptontgn avatar Dec 28 '21 10:12 cryptontgn

Interesting idea, if someone wants to take on implementing it, let's discuss what's the best way to do it.

alexta69 avatar Jan 01 '22 18:01 alexta69

cat test.txt | while read line
do
        curl -X POST  -H "Content-Type:application/json" -d '{"format":"mp4","quality":"best","url":"'${line}'"}' http://metube:8081/add
done

or just adding the videos to the playlist and then add the playlist to metube

PikuZheng avatar Jan 02 '22 00:01 PikuZheng

We could just do something like having links comma separated if that's what you had in mind @cryptontgn.

asuyou avatar Jan 03 '22 14:01 asuyou

Was there any movement on this? I have about 5000 links I need to process, not really looking forward to pasting them one at a time.

Cwis3man avatar Jul 10 '22 13:07 Cwis3man

@Cwis3man Well, this is how it is with Open Source maintained by volunteers -- the disadvantage is that the maintainers don't necessarily work for other people, but mostly for themselves, so one can't quite grumble about their favorite feature not being worked on, and the advantage is that you can implement things yourself, and we'll be very happy to merge your PR if it's done well :)

Either way, 5000 downloads is way beyond what the MeTube GUI is able to display gracefully, I'm afraid. And MeTube is just the GUI, the downloader itself is yt-dlp. For this use case, I would really recommend using yt-dlp directly from the command line, perhaps in a loop, similar to how @PikuZheng described it above. I don't think that MeTube is at all suitable or helpful here.

alexta69 avatar Jul 11 '22 19:07 alexta69