shaked6540 / YoutubePlaylistDownloader

A tool to download whole playlists, channels or single videos from youtube and also optionally convert them to almost any format you would like
Other
1.25k stars 206 forks source link

Autonumbering #259

Closed kausikp11 closed 1 month ago

kausikp11 commented 3 months ago

I tried to have a filepattern as follows, _. But it is not working. it gives only the values as number_Title of video.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/shaked6540"><img src="https://avatars.githubusercontent.com/u/13851815?v=4" />shaked6540</a> commented <strong> 3 months ago</strong> </div> <div class="markdown-body"> <p>I dont understand, can you screenshot what you tried, and give an example of what you wanted?</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/kausikp11"><img src="https://avatars.githubusercontent.com/u/55420346?v=4" />kausikp11</a> commented <strong> 3 months ago</strong> </div> <div class="markdown-body"> <p>I am trying to get the video number automatically marked before title, I tried using the following in the file name as "$playlist<em>index</em>$title" this gave me result as "playlist name_title of video". What I am trying to get is if there are 100 video the first video name should be 001_title and goes on till 100_video name.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/kausikp11"><img src="https://avatars.githubusercontent.com/u/55420346?v=4" />kausikp11</a> commented <strong> 3 months ago</strong> </div> <div class="markdown-body"> <p>A small update, instead of the above command, I tried using "$index_$title", it gave output as "1_title of the video". But is it possible for it to give as "01_titleof the video" if there are more than 10 video in playlist and "001_title of the video" if more than 100 video are there.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/shaked6540"><img src="https://avatars.githubusercontent.com/u/13851815?v=4" />shaked6540</a> commented <strong> 3 months ago</strong> </div> <div class="markdown-body"> <p>Right now its not possible to add 0 before the number</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>