Advertisement
kch101

bein channels

Feb 23rd, 2018
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. {
  2. "name": "bein",
  3. "description": "HD movies at the smallest file size.",
  4. "author": "koukch",
  5. "domain": "yts.am",
  6. "image": {
  7. "uri": "http://cdn.marketplaceimages.windowsphone.com/v8/images/3329e4fc-633d-4b1e-880e-a178f5064d8c"
  8. },
  9. "items": "(function(){ return new Array(12).fill({}).map((x, i) => { return { \"title\": 'Bein Sports ' + (i + 1), \"link\": 'http://arembed.com/live.php?ch=Bein_Sports' +(i + 1), \"resolve\": \"home\", \"options\": { \"headers\": { \"Referer\": \"http://arembed.com/live.php\" } } }; }) })",
  10. "confs": {
  11. "home": {
  12. "conf": {
  13. "stream": {
  14. "selector": "body > script:nth-child(1)",
  15. "how": "html",
  16. "convert": "(function(x) { x = x.split(\",\"); let width = x[0].replace(\"width=\", \"\").trim(); let height = x[1].replace(\"height=\", \"\").trim(); let channel = x[2].match(/'(.*)'/)[1]; let g = x[3].match(/'(.*)'/)[1]; return { \"link\": 'http://www.247bay.tv/hembedplayer/'+channel+'/'+g+'/'+width+'/'+height, \"resolve\": \"extract\" }; })"
  17. }
  18. }
  19. },
  20. "extract": {
  21. "conf": {
  22. "stream": {
  23. "selector": "#player_div > span > script:nth-child(1)",
  24. "how": "(function($x) { let id = $x.html().match(/enableVideo\\(\"(.*)\"\\)/); let base = $x.html().match(/var hlsUrl = \"(.*)\";/); return { \"link\": base[1].replace('\" + ea + \"', \"IPADDR\") + \"565df29c38f401b5d49fd0ac3e8aace9d5afd39a239a09c2c5d7d990eb66c3f4\", \"resolve\": \"loadbalancer\" }; })"
  25. }
  26. }
  27. },
  28. "loadbalancer": {
  29. "conf": {
  30. "ip": {
  31. "selector": "html",
  32. "how": "(function($x) {return $x.text().replace('redirect=', '');})"
  33. }
  34. }
  35. }
  36. }
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement