jely2002 / youtube-dl-gui

A cross-platform GUI for youtube-dl made in Electron and node.js
GNU Affero General Public License v3.0
6.65k stars 471 forks source link

filename output custom format not working #194

Open StephaneAdeso opened 3 years ago

StephaneAdeso commented 3 years ago

Describe the bug i am trying to download a list but i want every video to start with the position number on the playlist. I am using the following template that i have found on the youtube-dl readme: %(playlist_index)s - %(title)s.%(ext)s

Expected behavior each video starting with the position number

Screenshots explorer_r0iSO61LSt

Additional info (please complete the following information):

jely2002 commented 3 years ago

I am unable to reproduce this when downloading a YouTube playlist. All seems to work fine. Can you provide a reproduceable example, like a playlist link? So I can work on fixing this?

StephaneAdeso commented 3 years ago

There you have a playlist that failed in my pc. https://www.youtube.com/watch?v=coK4jM5wvko&list=PLU8oAlHdN5BktAXdEVCLUYzvDyqRQJ2lk and there you have the playlist from the example i posted on the first message: https://www.youtube.com/watch?v=UZpyvK6UGFo&list=PLqRCtm0kbeHAep1hc7yW-EZQoAJqSTgD-

kiikoh commented 2 years ago

Having this issue as well

jely2002 commented 2 years ago

I was able to reproduce this issue. Not sure why it was working before. I will investigate this soon and see if I can include a fix on the next bugfix update.

kiikoh commented 2 years ago

Any update on this? Would be helpful to have this for the weekend....

mjdelima commented 2 years ago

Same problem, seems like the playlist_index is not recognized

abjoseph commented 2 years ago

I'm also experiencing this issue. Happens with both %(playlist)s & %(playlist_index)s, might be the custom format in generally that might have the bug.

Specifically the following outplate template doesn't work correctly and produces the same result as the screenshot in OPs comment:

%(playlist)s\%(playlist_index)s - %(title).200s-(%(height)sp%(fps).0d).%(ext)s

Also, could you comment on whether or not %(autonumber)s is supported?