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.
youtube-dl not reporting the final filename #5602
Comments
|
You can get the resulting filename via the prepare_filename function (for example).
|
|
Thanks a bunch. This was exactly what i needed. On Mon, Jul 13, 2015 at 11:45 PM, SleepProgger notifications@github.com
|
I'm a novice at writing python but i did write a program that was working until about a week or so ago. It seems after i updated youtube-dl it no longer reports the final filename. here is my hook:
def my_hook(d):
if d['status'] == 'finished':
print "\nYour video has been downloaded!"
filelocation = d['filename']
print filelocation
When i run the script i'll get:
Your video has been downloaded!
/Volumes/RR261-GOING-POSTAL_1/RR261_Archival_Footage/RR261_A999_Erase_Please.f243.webm
Your video has been downloaded!
/Volumes/RR261-GOING-POSTAL_1/RR261_Archival_Footage/RR261_A999_Erase_Please.f141.m4a
So according to the documentation i've got two choices to get filenames
shouldn't filename report back the remuxed file that results, which in this case is RR261_A999_Erase_Please.mkv or is this not the way to get the file name that was downloaded. Thanks