metube icon indicating copy to clipboard operation
metube copied to clipboard

Playlist file

Open UmbraAtrox opened this issue 2 years ago • 4 comments

My current output template is %(channel)s/%(title)s.%(ext)s" which is fine. When i download a single video it gets put to downloads/channelname/title.mp4 but so do all videos which get queued by a playlist. I do get the videos but what i am missing is the list.

.m3u files in download root dir should work. Filename could either be playlistname or playlistid or both.m3u

#EXTM3U
channel125/video317.mp4
channel5796/video182.mp4

Can we have a .m3u file when we queue a playlist?

UmbraAtrox avatar Jul 27 '22 13:07 UmbraAtrox

I'm not sure I understand the exact request. Either way, tagging the issue so that perhaps someone can help implement this if there's interest.

alexta69 avatar Jul 27 '22 20:07 alexta69

Identify different channels from one playlist if you mean? or save one playlist with different subfloder?

PikuZheng avatar Jul 29 '22 13:07 PikuZheng

I missclicked on the close.

Identify different channels from one playlist if you mean? or save one playlist with different subfloder?

All in all i want to preserve the playlist itself. At the moment i get "only" the videos it contains but the list itself is lost.

When i queue two playlists. https://www.youtube.com/playlist?list=PLts3kAzJffBX0ZM41e2tAYXLpBsqLq_65 https://www.youtube.com/playlist?list=PLts3kAzJffBWxTsjrqUPi6TOeGBGUdcuy

with my output template "%(channel)s/%(title)s.%(ext)s" then i get:

./Louis Rossmann/NYC homeless proof design, good job!.webm
./MoreSidemen/Who Is The DUMBEST Sidemen Member.webm
./penguinz0/Most Primitive Building Videos Are Fake.webm
./reubs/How I Remade The Simpsons Hit and Run in a Week.webm
./Veritasium/Clickbait is Unreasonably Effective.webm
./Veritasium/Do Salt Lamps Work.webm

From this i have all the videos but i can not reassemble the playlists without changing output_template or making a separate folder for playlists.

What i thought as a solution is to create m3u files for playlists to stay compatible with any output template and preserve the list itself.

./List A.m3u

#EXTM3U
reubs/How I Remade The Simpsons Hit and Run in a Week.webm
Veritasium/Do Salt Lamps Work.webm
Louis Rossmann/NYC homeless proof design, good job!.webm
penguinz0/Most Primitive Building Videos Are Fake.webm

./List B.m3u

#EXTM3U
Veritasium/Clickbait is Unreasonably Effective.webm
Louis Rossmann/NYC homeless proof design, good job!.webm
MoreSidemen/Who Is The DUMBEST Sidemen Member.webm

UmbraAtrox avatar Aug 01 '22 21:08 UmbraAtrox

metube first parses the playlist into individual video links and then downloads the individual videos individually. So the playlist tag is not available when the video is downloaded. Other solutions may need to be sought. m3u doesn't look like it can be applied to ytdl.

PikuZheng avatar Aug 01 '22 23:08 PikuZheng