git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd6d5b9
)
Youtube: Add video format info to metadata
author
Ralf Ertzinger
<ralf@skytale.net>
Wed, 7 Dec 2011 19:42:20 +0000
(20:42 +0100)
committer
Ralf Ertzinger
<ralf@skytale.net>
Wed, 7 Dec 2011 19:42:20 +0000
(20:42 +0100)
videosite/YouTubeGrabber.pm
patch
|
blob
|
history
diff --git
a/videosite/YouTubeGrabber.pm
b/videosite/YouTubeGrabber.pm
index
8079f9f
..
d0455f9
100644
(file)
--- 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;
}
}