Enigma2 plugin to to play various online streams (mostly Latvian).

viaplay_api2.txt 3.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ==== Saraksti ===
  2. https://viaplay.lv/tdi/movies/next?sections[]=MOVIES&sort[]=Ryear&offset=0
  3. sort[]=year,latest,popular,rating,title
  4. genres[]=axxx
  5. availability=last,new
  6. https://viaplay.lv/kids?sections[]=KIDS&cat[]=MOVIE,SERIES
  7. https://viaplay.lv/tdi/kids/next?cat[]=SERIES
  8. https://viaplay.lv/series?filter=allSeries,allShows
  9. === Dabū sesijas ID ===
  10. GET https://viaplay.lv/ HTTP/1.1
  11. Host: viaplay.lv
  12. User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
  13. Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  14. Accept-Language: en-US,en;q=0.5
  15. Accept-Encoding: gzip, deflate, br
  16. Referer: https://viaplay.lv/movies/me-and-earl-and-the-dying-girl
  17. Cookie: ott_cookies_confirmed=1;
  18. DNT: 1
  19. Connection: keep-alive
  20. Upgrade-Insecure-Requests: 1
  21. == Logins ar sesijas ID ==
  22. POST https://viaplay.lv/login/nav/formular?csrfToken=b4eb35263d9be16ef9f7b2f5d10a8ee99dfe75a8-1478051634814-63682b20f1e7e5579de6d056 HTTP/1.1
  23. Host: viaplay.lv
  24. User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
  25. Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  26. Accept-Language: en-US,en;q=0.5
  27. Accept-Encoding: gzip, deflate, br
  28. Referer: https://viaplay.lv/
  29. Cookie: ott_cookies_confirmed=1; PLAY_SESSION=e618c42b377a65021298ff63309d5a907988ed1b-PSESSIONID=b010ea1b-fc5e-4a18-aa15-ebbe8b57b3f0&csrfToken=b4eb35263d9be16ef9f7b2f5d10a8ee99dfe75a8-1478051634814-63682b20f1e7e5579de6d056
  30. DNT: 1
  31. Connection: keep-alive
  32. Upgrade-Insecure-Requests: 1
  33. Content-Type: application/x-www-form-urlencoded
  34. Content-Length: 96
  35. nav_redirectUri=https%3A%2F%2Fviaplay.lv%2F&nav_email=ivars777%40gmail.com&nav_password=kaskade7
  36. === Dabū iekārtas ID===
  37. POST https://viaplay.lv/tdi/account/device/create?_infuse=1&_ts=1478043774189&csrfToken=01512bbf0e12365df7c6fbec2fc68a06966c75b0-1478050669483-df69d01a0792179c2b05d9df HTTP/1.1
  38. Host: viaplay.lv
  39. User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
  40. Accept: application/xml, text/xml, */*; q=0.01
  41. Accept-Language: en-US,en;q=0.5
  42. Accept-Encoding: gzip, deflate, br
  43. Content-Type: application/x-www-form-urlencoded; charset=UTF-8
  44. X-Requested-With: XMLHttpRequest
  45. Referer: https://viaplay.lv/movies/me-and-earl-and-the-dying-girl
  46. Content-Length: 135
  47. Cookie: ott_cookies_confirmed=1; ott_web_sac=2561c617299cf8a77ba0c357a75942edcb819426-sac=3b80c3eb-0c09-4eec-80f4-6b9bd2185ccc; PLAY_SESSION=e618c42b377a65021298ff63309d5a907988ed1b-PSESSIONID=b010ea1b-fc5e-4a18-aa15-ebbe8b57b3f0&csrfToken=b4eb35263d9be16ef9f7b2f5d10a8ee99dfe75a8-1478051634814-63682b20f1e7e5579de6d056;
  48. DNT: 1
  49. Connection: keep-alive
  50. successRedirectUri=https%3A%2F%2Fviaplay.lv%2Fmovies%2Fme-and-earl-and-the-dying-girl&productId=t110623&slotId=&title=Personal+computer2
  51. === Dabū strīmus ===
  52. GET https://viaplay.lv/prehravac/init?_infuse=1&_ts=1478048042275&productId=t110623 HTTP/1.1
  53. Host: viaplay.lv
  54. User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
  55. Accept: application/xml, text/xml, */*; q=0.01
  56. Accept-Language: en-US,en;q=0.5
  57. Accept-Encoding: gzip, deflate, br
  58. X-Requested-With: XMLHttpRequest
  59. Referer: https://viaplay.lv/movies/me-and-earl-and-the-dying-girl
  60. Cookie: ott_cookies_confirmed=1; ott_dids=1d1eaf60233b49b6b48db2bef9707b230ad90b39-499b21d2-e6ec-4973-b57c-6db7cf43bdd0=2acfe322-5c8b-44b4-80d0-6ce59d8ca200; PLAY_SESSION=062367e55f797477e2193f08dcec590553c22bbe-PSESSIONID=be1f2ff8-c0be-4b11-bb0f-8246d14e8374&csrfToken=d5b4bfc0f2b5e3d96c86d506587919f737df5eb4-1478049201615-f4368ebdf232c6d1558f1d0b
  61. Connection: keep-alive