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.
dumping current status as json,help needed for using dictionary ydl_opts #13485
Comments
|
Use |
|
@dstftw please guide me what did you meant,is it a youtube-dl command or done manually in python |
|
found here https://github.com/rg3/youtube-dl#embedding-youtube-dl . and does youtube-dl supports file lock |
|
i need a help, this is my python external code to download via youtube_dl : from future import unicode_literals url=input("\n Enter the video url :") #1:
def my_hook(d):
ydl_opts = { I need to know what are the other parameters supported in ydl_opts and how to implement command line reading from text file in ydl_opts i.e "youtube-dl -a 1.list". |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.06.23. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-vflag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
Description of your issue, suggested solution and other information
Explanation of your issue in arbitrary form goes here. Please make sure the description is worded well enough to be understood. Provide as much context and examples as possible.
If work on your issue requires account credentials please provide them or explain how one can obtain them.
Hey there I was trying to dump my current downloading status as json(any text file format should have work),so that as it reached 95 %,the process would start the next file in queue without waiting for the file to download,get complete,mixing the audio and video and then the second file in queue.I opted for dump-json and print-json but it didnt work.
The second part is I want the size of the unlisted video size but unable to do this as there is no way --get-size is there,but this was my shot as the file downloaded would have helped me.
example: [download] 18.5% of 79.04MiB at 105.36KiB/s
as {"status":"download","file_size":79.04MiB,"downloaded_percent":"18.5","speed":105.36},