12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- ===== Caur bowseri ===
-
- === Dabū sesija cookie PLAY_SESSION ====
-
- GET https://viaplay.lv/ HTTP/1.1
- Host: viaplay.lv
- User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
-
- === Logins (crfTokens no PLAY_SESSION)====
- POST https://viaplay.lv/login/nav/formular?csrfToken=ab82697da69230d680d538aac761c361af2a5a88-1477816869371-cbb508603bd482600f18a0c1 HTTP/1.1
- Host: viaplay.lv
- User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
- Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
- Accept-Language: en-US,en;q=0.5
- Accept-Encoding: gzip, deflate, br
- Referer: https://viaplay.lv/
- Cookie: PLAY_SESSION=8200d49409c84830221e51436e2ce8791052f903-PSESSIONID=46704190-64e0-4727-9ddc-293119d3b061&csrfToken=ab82697da69230d680d538aac761c361af2a5a88-1477816869371-cbb508603bd482600f18a0c1; _ga=GA1.2.1891746898.1477816871; _dc_gtm_UA-81059701-1=1; _hjIncludedInSample=1; mobileAppPromo=shown; ott_cookies_confirmed=1
- DNT: 1
- Connection: keep-alive
- Upgrade-Insecure-Requests: 1
- Content-Type: application/x-www-form-urlencoded
- Content-Length: 69
-
- nav_redirectUri=&nav_email=ivars777%40gmail.com&nav_password=kaskade7
-
-
- === Dabū strīmu info (vajag PLAY_SESSION un productId) ===
- GET https://viaplay.lv/prehravac/init?_infuse=1&productId=t7588 HTTP/1.1
- User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36
- Cookie: PLAY_SESSION=dc51de97336c7100e1cda971027ec159ca9c24a3-PSESSIONID=19ff5501-5d40-473d-88a3-fbe1781e0d16&csrfToken=a29e5882d948c3e4a5e745ce8ee024619950c390-1477750987235-84f31323a6f3861c91085404;
- Host: viaplay.lv
-
- tracks: {
- HLS: [
- {
- lang: 'en',
- src: 'https://vod-prep-sec.viaplay.cdn.cra.cz/vod_Balt/_definst_/0023/2816/eng-ao-sd1-sd2-sd3-sd4-ESFZVT6c.smil/playlist.m3u8?etime=1477824920&qs=1&ttl=10800&token=0d71b8ddf7284414e32f5',
- type: 'application/x-mpegURL','profiles': ['ao', 'sd1', 'sd2', 'sd3', 'sd4'],
- withCredentials: true
- },
- ],
-
-
- !!!csrfToken= dabū no PLAY_SESSION
-
-
- === LS links
- GET https://vod-prep-sec.viaplay.cdn.cra.cz/vod_Balt/_definst_/0023/2816/eng-ao-sd1-sd2-sd3-sd4-ESFZVT6c.smil/playlist.m3u8?etime=1477824920&qs=1&ttl=10800&token=0d71b8ddf7284414e32f5 HTTP/1.1
- Host: vod-prep-sec.viaplay.cdn.cra.cz
- Origin: https://viaplay.lv
-
- Access-Control-Allow-Credentials: true
- Access-Control-Allow-Headers: Content-Type, User-Agent, If-Modified-Since, Cache-Control, Range
- Access-Control-Allow-Methods: OPTIONS, GET, POST, HEAD
- Access-Control-Allow-Origin: https://viaplay.lv
- Access-Control-Expose-Headers: Date, Server, Content-Type, Content-Length
- P3p: CP="No P3P policy"
- Age: 0
- Set-Cookie: lvlt_tk=/vod_Balt/_definst_/0023/2816/eng-ao-sd1-sd2-sd3-sd4-ESFZVT6c.smil/?qs=1&ttl=10800&etime=1477825571&token=00fe2a742657b2bd5b87a; Domain=vod-prep-sec.viaplay.cdn.cra.cz; Path=/vod_Balt/_definst_/0023/2816/eng-ao-sd1-sd2-sd3-sd4-ESFZVT6c.smil/
-
- ========================= API =======================
-
- ==== Dabū produkta detaļas ===========
- GET https://api.viaplay.support/api/v1/products/id-t6764/detail/ HTTP/1.1
- X-OTT-User-SubProfile: master
- X-OTT-Data-Profile: mobile
- X-OTT-Language: lv
- X-OTT-Catalogue: LV_VIAPLAY
- Accept-Encoding:
- X-OTT-Device-Type: ANDROID
- X-OTT-App-Version: 1.0
- Accept: application/json
- User-Agent: Dalvik/1.6.0 (Linux; U; Android 4.4.2; SM-G900FD Build/KOT49H)
- Host: api.viaplay.support
- Connection: Keep-Alive
|