Old: v4.8 - 2018-09-02 - poprawki dla starych materiałów z Iplii
New: v4.9 - 2018-09-07 - ipla 1080p
- @@ -8,7 +8,7 @@
- // @include *qi.ckm.onetapi.pl/*
- // @include *tvp.pl/*
- // @include *www.cda.pl/*
-// @version 4.8
- +// @version 4.9
- // @description Skrypt umożliwiający pobieranie materiałów z serwisów: ipla.tv, player.pl, vod.pl, vod.tvp.pl, cda.pl. Działa tylko z rozszerzeniem Tampermonkey.
- // @author Przemek
- // @match http://www.ipla.tv/*
- @@ -188,13 +188,15 @@
- try {
- var mid = document.querySelector('#vod-player').getAttribute('data-vod-json');
- var idn = JSON.parse(mid).mid;
- top.location.href = 'https://getmedia.redefine.pl/vods/get_vod/?cpid=1&ua=mipla_ios/122&media_id=' + idn;
- + //top.location.href = 'https://getmedia.redefine.pl/vods/get_vod/?cpid=1&ua=mipla_ios/122&media_id=' + idn;
- + top.location.href = 'https://getmedia.redefine.pl/vods/get_vod/?cpid=1&ua=www_iplatv_html5/12345&media_id=' + idn;
- +
- } catch (e) {
-
- try {
- var x = window.location.href;
- idn = x.match(/[\a-z\d]{32}/)[0];
- top.location.href = 'https://getmedia.redefine.pl/vods/get_vod/?cpid=1&ua=mipla_ios/122&media_id=' + idn;
- + //top.location.href = 'https://getmedia.redefine.pl/vods/get_vod/?cpid=1&ua=mipla_ios/122&media_id=' + idn;
- + top.location.href = 'https://getmedia.redefine.pl/vods/get_vod/?cpid=1&ua=www_iplatv_html5/12345&media_id=' + idn;
- +
- } catch (e) {
- var pageURL = window.location.href.split("?")[0];
- var pageURLTemp = pageURL.substring(0, pageURL.length - 3);
- @@ -202,7 +204,8 @@
- if (lastComma > - 1) {
- var n = pageURL.substring(lastComma+1);
- mid = n;
- document.location.href = 'http://getmedia.redefine.pl/vods/get_vod/?cpid=1&ua=mipla_ios/122&media_id=' + mid;
- + //document.location.href = 'http://getmedia.redefine.pl/vods/get_vod/?cpid=1&ua=mipla_ios/122&media_id=' + mid;
- + document.location.href = 'http://getmedia.redefine.pl/vods/get_vod/?cpid=1&ua=www_iplatv_html5/12345&media_id=' + mid;
- +
- }
- }
- }