Advertisement
Guest User

Untitled

a guest
Feb 17th, 2018
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. /**
  2. * Created by solvek on 08.02.16.
  3. */
  4.  
  5. var express = require('express');
  6. var app = express();
  7.  
  8. var Pled = require('../index');
  9.  
  10. var sources = ['http://api.mystreams.club/vget?username=<username>&password=<password>&filterCategory=Afghani,Arabic,Bangla,Filipino,France,Germany,Gujrati,I
  11. ndia,Ireland,Italy,Korea,Malayalam,Marathi,Pakistan,Portugal,Punjabi,Scandinavian,Tamil,Telegu,Thai,Matchcenter&format=ts&type=m3u8'];
  12.  
  13. app.get('/ms', function (req, res) {
  14.  
  15. var f = Pled.filters;
  16.  
  17. var filters = [
  18.  
  19. f.forGroup("MatchCenter - American Football", f.remove),
  20. f.forGroup("MatchCenter - Basketball", f.remove),
  21. f.forGroup("MatchCenter - Boxing", f.remove),
  22. f.forGroup("MatchCenter - College Rugby", f.remove),
  23. f.forGroup("MatchCenter - College Water Polo", f.remove),
  24. f.forGroup("MatchCenter - Cricket", f.remove),
  25. f.forGroup("MatchCenter - Curling", f.remove),
  26. f.forGroup("MatchCenter - Cycling", f.remove),
  27. f.forGroup("MatchCenter - Darts", f.remove),
  28. f.forGroup("MatchCenter - Figure Skating", f.remove),
  29. f.forGroup("MatchCenter - FIS Alpine Skiing", f.remove),
  30. f.forGroup("MatchCenter - Formula 1", f.remove),
  31. f.forGroup("MatchCenter - General TV", f.remove),
  32. f.forGroup("MatchCenter - Gold Zone", f.remove),
  33. f.forGroup("MatchCenter - Golf", f.remove),
  34. f.forGroup("MatchCenter - Horse Racing", f.remove),
  35. f.forGroup("MatchCenter - IBSF World Cup Bobsleigh and Skeleton", f.remove),
  36. f.forGroup("MatchCenter - Ice Hockey", f.remove),
  37. f.forGroup("MatchCenter - MotoGP", f.remove),
  38. f.forGroup("MatchCenter - Motor Sports", f.remove),
  39. f.forGroup("MatchCenter - NASCAR", f.remove),
  40. f.forGroup("MatchCenter - NBA", f.remove),
  41. f.forGroup("MatchCenter - NCAAB", f.remove),
  42. f.forGroup("MatchCenter - NCAAF", f.remove),
  43. f.forGroup("MatchCenter - NFL", f.remove),
  44. f.forGroup("MatchCenter - NHL", f.remove),
  45. f.forGroup("MatchCenter - NHRA Drag Racing", f.remove),
  46. f.forGroup("MatchCenter - Olympic Sports", f.remove),
  47. f.forGroup("MatchCenter - Olympics", f.remove),
  48. f.forGroup("MatchCenter - Other", f.remove),
  49. f.forGroup("MatchCenter - Other Sports", f.remove),
  50. f.forGroup("MatchCenter - PGA Tour", f.remove),
  51. f.forGroup("MatchCenter - Rugby", f.remove),
  52. f.forGroup("MatchCenter - Soccer", f.remove),
  53. f.forGroup("MatchCenter - Swimming", f.remove),
  54. f.forGroup("MatchCenter - Tennis", f.remove),
  55. f.forGroup("MatchCenter - TV Shows", f.remove),
  56. f.forGroup("MatchCenter - UFC", f.remove),
  57. f.forGroup("MatchCenter - Voleibol Argentino", f.remove),
  58. f.forGroup("MatchCenter - World Cup Qualifiers", f.remove),
  59. f.forGroup("MatchCenter - World Football", f.remove),
  60. f.forGroup("MatchCenter - Wrestling", f.remove)
  61.  
  62. ];
  63.  
  64. var pled = new Pled({
  65. sources: ['http://api.mystreams.club/vget?username=<username>&password=<password>&filterCategory=Afghani,Arabic,Bangla,Filipino,France,Germany,Gujrati,I
  66. ndia,Ireland,Italy,Korea,Malayalam,Marathi,Pakistan,Portugal,Punjabi,Scandinavian,Tamil,Telegu,Thai,Matchcenter&format=ts&type=m3u8'],
  67. filters: filters
  68. });
  69.  
  70. pled.handleRequest(req, res);
  71. });
  72.  
  73. app.listen(4242, function () {
  74. console.log('Example app listening on port 3000!');
  75. });
  76.  
  77. //# sourceMappingURL=webserver-compiled.js.map
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement