Skip to content

Commit c207ad0

Browse files
committed
[youtube] Support playing back yt videos that only have MPEG-DASH manifest
1 parent f57a5a6 commit c207ad0

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

youtube/content/contents/code/youtube.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,15 @@ var YoutubeResolver = Tomahawk.extend(Tomahawk.Resolver, {
517517
urlPromise = that._parseURLS(jsonMap.args.url_encoded_fmt_stream_map,
518518
html);
519519
}
520+
} else if (jsonMap.args.dashmpd) {
521+
//Theoretically we could parse manifest, select quality
522+
//we want and then return it.
523+
//But it just doesn't seem to be worth it, unless
524+
//someone really wanna do it
525+
Tomahawk.log("Found MPEG-DASH, just letting VLC handle it");
526+
urlPromise = {url: jsonMap.args.dashmpd};
527+
} else {
528+
Tomahawk.log("Couldn't find MPEG-DASH manifest or adaptive_fmts, aborting");
520529
}
521530
if (urlPromise) {
522531
return RSVP.Promise.resolve(urlPromise).then(function (result) {

youtube/content/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"pluginName": "youtube",
44
"author": "Hugo, Leo, Thierry, Anton and Enno",
55
"email": "lfranchi@kde.org",
6-
"version": "0.9.24",
6+
"version": "0.9.25",
77
"website": "http://gettomahawk.com",
88
"description": "Searches YouTube for audio content to play.",
99
"type": "resolver/javascript",

0 commit comments

Comments
 (0)