Updated tv.sms.cz WebEPG grabber (1 Viewer)

Status
Not open for further replies.

Evzen

Portal Member
February 14, 2010
25
6
Home Country
Czech Republic Czech Republic
There is an updated grabber for (not only) Czech TV available for quite some time now (see the https://forum.team-mediaportal.com/...8/webepg-cookies-53697/index2.html#post534769 thread).

I made some small enhancements so that it correctly parses the 4-digit episode numbers, see the attachment.

It would be nice to update it in the SVN, so that it hopefully makes it to the RC2.

EDIT: correct attachment added!
 

Attachments

  • tv_sms_cz.xml
    30.6 KB

Trottel

Portal Member
February 18, 2009
48
26
Liberec
Home Country
Czech Republic Czech Republic
Evzen, I just compared "your slightly updated" tv.sms.cz grabber with my from this post and they are identical!!! What changes did you make and why did you create new thread?!
 

Evzen

Portal Member
February 14, 2010
25
6
Home Country
Czech Republic Czech Republic
EDIT: Stupid me, wrong attachment :(
You were right, I apologize.

The old one does not parse 4-digit episode numbers and does not take in account the whitespace following comma in double-episodes.
For example:

Ulice (1124, 1125)

The original parser is not able to parse this correctly and the episode numbers appear as a part of the series name, which is wrong.
My - very minor, though - modification parses this correctly (as best as possible, to be exact... unfortunately WebEPG takes only the first figure as the episode number and not the entire string, which would be the correct way).

And why did I create a new thread? Because the installation packages contain only old not working parser and AFAIK posting the updated parser to this forum is the proper way to have it included in the SVN.

If you want to continue this discussion, please do so only in ONE of the threads, not both.
 

Trottel

Portal Member
February 18, 2009
48
26
Liberec
Home Country
Czech Republic Czech Republic
Everybody can do a mistake :) I downloaded new attachment and now it's OK.
Unfortunately I doesn't use TV server any more because my SkyStar2 is broken and I can't test your modified version.
With new thread you are maybe right. It would be nice if RC2 will contain updated version of this grabber.
 

Evzen

Portal Member
February 14, 2010
25
6
Home Country
Czech Republic Czech Republic
BTW, I had to keep the 3-digit single number in parentheses, otherwise the grabber would parse the year from description instead of the episode number (because WebEPG parses EVERYTHING what matches the regex and keeps the LAST occurence in the variable)

Ulice (1707) /P/
Možná je to vaše ulice. Možná jste to vy. Původní český seriál (2010)


Having <Search match="\([0-9]{1,4}\)" field="#EPISODE" remove="true" /> in the parser would remove both 1707 and 2010 from the text and take 2010 as the #EPISODE field :-\
 

stanik

Portal Pro
October 10, 2006
146
4
Home Country
Czech Republic Czech Republic
Hi Guys,
tv.sms.cz grabber doesnt work from yesterday. They must change something.
 

Evzen

Portal Member
February 14, 2010
25
6
Home Country
Czech Republic Czech Republic
It's that damned advertising page... :-(
Just add "Reklama1202720100425=1" cookie in the parser and it will work again:

...
<Site url="http://tv.sms.cz/index.php?P_id_kategorie=56456&amp;P_soubor=%2Ftelevize%2Findex.php%3Fdatum%3D[YYYY]-[MM]-[DD]%26zobrazeni%3D" post="" cookies="P_cookies_siroke_zobrazeni=false;P_cookies_televize_stanice=[ID];Reklama1202720100425=1" external="false" encoding="windows-1250" />
...
 

Vasek

Portal Member
December 13, 2006
47
4
49
Liberec
Home Country
Czech Republic Czech Republic
Thank you Evzen! Exectly this day I was installing new MP version and I spend couple of hours searching at wrong places...

Vasek
 

stanik

Portal Pro
October 10, 2006
146
4
Home Country
Czech Republic Czech Republic
Thx for yesterdays version - worked, but NOW DONT WORK AGAIN :-(. They change something again. Shame
 

Evzen

Portal Member
February 14, 2010
25
6
Home Country
Czech Republic Czech Republic
Argh... let the cat-and-mouse game begin...
New advert, new advert number, new parser modification...
Just increase the number by 1:

...
<Site url="http://tv.sms.cz/index.php?P_id_kategorie=56456&amp;P_soubor=%2Ftelevize%2Findex.php%3Fdatum%3D[YYYY]-[MM]-[DD]%26zobrazeni%3D" post="" cookies="P_cookies_siroke_zobrazeni=false;P_cookies_televize_stanice=[ID];Reklama1202720100426=1" external="false" encoding="windows-1250" />
...
 
Status
Not open for further replies.

Users who are viewing this thread

Top Bottom