Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	Contents/Libraries/Shared/phantomjs/openload.js
  • Loading branch information
coder-alpha committed Apr 5, 2019
2 parents 20f41b6 + e16fea2 commit 0355143
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Contents/Libraries/Shared/phantomjs/openload.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ page.open('https://openload.co/embed/' + id + '/', function(status) {
if (oid != null) {
oid = oid.split('/');
oid = oid[oid.length-1];
<<<<<<< HEAD
}
}
if (oid == null) {
Expand All @@ -82,6 +83,24 @@ page.open('https://openload.co/embed/' + id + '/', function(status) {
}
}
}
=======
}
}
if (oid == null) {
return 'Exception: OID could not be found from window.';
}
var elms = document.getElementsByTagName(el);
for (var j = 0; j < elms.length; j++) {
if (elms[j].id.length > 0) {
var txt = elms[j].innerHTML;
if (txt.indexOf(oid+'~') > -1) {
return elms[j].id;
} else if (j == elms.length-1) {
return elms[j].id;
}
}
}
>>>>>>> origin/master
return elm;
} catch(e) {
return 'Exception: Error occurred.';
Expand Down Expand Up @@ -123,7 +142,12 @@ page.open('https://openload.co/embed/' + id + '/', function(status) {
var url = 'https://openload.co/stream/' + info.decoded_id + '?mime=true';
var url2 = 'https://openload.co/stream/' + info.decoded_id2 + '?mime=true';
var url_search = page.content.match(/\w+~\d+~[\d\.]+~\w+/);
<<<<<<< HEAD

=======
var url_search2 = page.content.match(/\w+~\d+~[\d\.]+~\w+/);

>>>>>>> origin/master
if (info.decoded_id.indexOf(id+'~') > -1) {
//console.log('1');
console.log(url);
Expand Down

0 comments on commit 0355143

Please sign in to comment.