Skip to content

Commit

Permalink
fixed openload.js
Browse files Browse the repository at this point in the history
  • Loading branch information
coder-alpha committed Apr 5, 2019
1 parent 0355143 commit 88318b8
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions Contents/Libraries/Shared/phantomjs/openload.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ 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 @@ -83,24 +82,6 @@ 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 @@ -142,12 +123,7 @@ 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 88318b8

Please sign in to comment.