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.
about --get-thumbnail #4225
about --get-thumbnail #4225
Comments
|
If you have that much output, I strongly recommend using the |
I usually work with youtube-dl output with a linux script for parsing data output. When youtube-dl don't find a thumbnail in the given link, wouldn't it be better to show "null" text or null line(\n)? I give an example to better understanding. If I run:
youtube-dl -g --get-title --get-id --get-format --get-thumbnail --get-filename --all-formats http://www.marca.com/2014/11/17/futbol/seleccion/1416230388.html
Output is:
WARNING: Falling back on generic information extractor.
¿Qué jugador alemán se parece a Raúl, según Casillas? - MARCA.com
video
http://k.uecdn.es/p/110/sp/0/playManifest/entryId/0_jui4h43j/format/url/flavorId/0_fu49nzrj/video.mp4
¿Qué jugador alemán se parece a Raúl, según Casillas - MARCA.com-video.mp4
0 - unknown
That output gives (in order): title, id, video link, filename and format, but not the thumbnail link that I requested. I think that would be better to have a predictable output of (in this case) 6 lines, because that way would better to manage output for post-processing tasks, something like:
title
id
video_link
(null) or NOT_FOUND or "\n"
filename
format
Thank you.