Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function redirect_to_video(page_url){
- fetch("https://playapi.mtgx.tv/v1/videos/stream/" + page_url.match("\\/sisu\\/(?:[-a0-z9]+)\\/(\\d+)")[1])
- .then(function(response){return response.json();})
- .then(function(response){
- window.location.href = "http://xg5tbqm52h1pot9.babahhcdn.com/" + (response.streams.high || response.streams.medium).match("(?::tv3\\/)(.*)")[1];
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement