Fix Google+
This commit is contained in:
parent
4d72ccb8a3
commit
5522628363
|
@ -665,13 +665,17 @@ var Getters = {
|
|||
var title = $("media\\:title").text();
|
||||
var videos = {};
|
||||
$('media\\:content[medium="video"]').each(function(index, element){
|
||||
var url = $(this).attr("url")
|
||||
var type = url.match(/itag=(\d\d)/)
|
||||
if(type && type[1]){
|
||||
type = type[1]
|
||||
var url = $(this).attr("url");
|
||||
var match = url.match(/itag=(\d+)/)
|
||||
if (!match) {
|
||||
match = url.match(/googleusercontent.*=m(\d+)$/);
|
||||
}
|
||||
|
||||
if (match && match[1]) {
|
||||
var type = match[1];
|
||||
videos[type] = {
|
||||
format: type,
|
||||
link: url
|
||||
link: url
|
||||
};
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue