-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to automatically create a directory #79
Comments
I made some changes but I don’t know that meets your needs? def get_ydl_options(request_options,url): |
Thank you very much for your reply, but is the part in bold you rewritten? Also, have you tested it? |
Yes, I did simple test. |
Would this be saved as config.yml somewhere? |
I changed the 21st line of the "youtube-dl-server.py" configuration file to "'YDL_OUTPUT_TEMPLATE':'/youtube-dl/%%(uploader)s/(title)s.%(ext)s', ", so that the video file will automatically create a directory named after the channel name after downloading, and copy this file into it, but if you download a playlist composed of different channels, multiple directories will be created. In youtube-dl-server.py, set parameters like "'YDL_OUTPUT_TEMPLATE_PLAYLIST':'/youtube-dl/%(playlist)s/%(playlist_index)s-%(title)s.%(ext)s', When downloading a playlist, only one directory will be created with the name of the playlist.
Thanks a lot.
The text was updated successfully, but these errors were encountered: