Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
-o Add template for dd, mm, yy (day-month-year) #228
Comments
|
Day, month, and year would refer to the date of the video (since you can easily use |
|
Yes, I meant the video date. As for the case when video date is not available, returning current date seems to be quite reasonable, it will be more close to autoincreament and will not break sorting |
|
After some digging in the code I've found that it is possible to use upload_date in template%(upload_date)s-%(stitle)s.%(ext)s which gives me '20111117-Американский_пирог_Все_в_сборе_Русский_трейлер.mp4' almost exactly what I need. |
|
Since some of the |
As of now there is %(autonumber)s, which allows to add autoincreament number which is handy to get autosort of files. But when there is a new video added to list the numbers will shift and '--no-overwrites' option will become useless, as well as there will now be two files with each number 0001, 0002 etc.
Having day,month,year in template will still make use of no overwrites and will still allow to get latest file in top of list, i.e.
%(yy)s.%(mm)s.%(dd)s-%(title)s.%(ext)s