Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fmt_url_map was removed by youtube which lead to videos not loading, …

…using a different property to get the format list.
  • Loading branch information...
commit 85ac048d3004f5fb31411d593aa7ac1aef6308b0 1 parent 11472ee
@vinnyrose authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 YouTube5.safariextension/global.html
View
8 YouTube5.safariextension/global.html
@@ -56,10 +56,10 @@
meta.formats = {};
// use the flashvars if the video info couldn't be retreived
- (data.fmt_url_map || flashvars.fmt_url_map).split(',').forEach(function(format) {
- var pair = format.split('|');
- if (youTubeFormats[pair[0]]) {
- meta.formats[youTubeFormats[pair[0]]] = pair[1];
+ (flashvars.url_encoded_fmt_stream_map || data.url_encoded_fmt_stream_map).split(',').forEach(function(format){
+ var tmp = parseUrlEncoded(format);
+ if (youTubeFormats[tmp.itag]) {
+ meta.formats[youTubeFormats[tmp.itag]] = tmp.url;
}
});
Please sign in to comment.
Something went wrong with that request. Please try again.