From: Ralf Ertzinger Date: Wed, 7 Dec 2011 19:42:20 +0000 (+0100) Subject: Youtube: Add video format info to metadata X-Git-Url: https://git.camperquake.de/gitweb.cgi?p=videosite.git;a=commitdiff_plain;h=e5da797ae620c41ae0865cf08048d145ecb93a52 Youtube: Add video format info to metadata --- diff --git a/videosite/YouTubeGrabber.pm b/videosite/YouTubeGrabber.pm index 8079f9f..d0455f9 100644 --- a/videosite/YouTubeGrabber.pm +++ b/videosite/YouTubeGrabber.pm @@ -517,6 +517,11 @@ sub __pick_url { if (exists($urls->{$_})) { $self->debug("Selected URL with quality level %s", $_); $metadata->{'DLURL'} = $urls->{$_}; + if (exists($videoformats{$_})) { + $metadata->{'FORMAT'} = $videoformats{$_}; + } else { + $metadata->{'FORMAT'} = 'unknown'; + } last; } }