StefanLobbenmeier / youtube-dl-gui

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

Automatically add incrementing numbers to filenames #131

Open hotfistdotcom opened 2 months ago

hotfistdotcom commented 2 months ago

Feature Request: I'd love if when downloading a playlist, it could add an automatically incrementing number to the beginning of the filename. I've tried %(autonumber)s-%(title).200s.%(ext)s but this appends 00001- to each file, and does not increment.

This would be very useful as a checkbox for anything being downloaded in a specific order, for anything produced episodically, etc.

Really love the application, it's a lifesaver. :)

StefanLobbenmeier commented 2 months ago

I’d like to avoid adding more custom filename logic to the GUI, but I have some more ideas to try

if it came from a playlist, you could also try one of these:

playlist_index (numeric): Index of the video in the playlist padded with leading zeros according the final index

playlist_autonumber (numeric): Position of the video in the playlist download queue padded with leading zeros according to the total length of the playlist

Or otherwise if it has episode / series metadata you can also access that, but support varies by website / extractor