MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Main Features (talk, share your ideas, get support) » Electronic Program Guide » WebEPG


WebEPG everything related to WebEPG in here

Reply
 
Thread Tools Display Modes
Old 2008-01-10, 07:26   #1 (permalink)
Portal Member
 
Join Date: Oct 2005
Posts: 177
Thanks: 7
Thanked 1 Time in 1 Post

Country:

My System

Default grabber for Croatia

hi all!

this is the first time i'm using WebEPG and must say it's great plugin.

untill now i used tvxb for getting my tvguide, but specific country .ini files hardly get updated (ie: Italy, i'm living on a border so watching italian channels a lot), so i'm trying with webepg.

the problem is there is no grabber for Croatia (local name: Hrvatska) yet. I can get my local listings from http://tvprofil.net/index.php and it's workin ok because there is an option to d/l xml files directly from that site (ie: http://tvprofil.net/xmltv/data/htv1....profil.net.xml for HTV1 channel) and just import them into tvguide.xml with !xmltvimport command of tvxb.

now, is there a way to import tvguide.xml file i get with tvxb into tvguide.xml file i get with WebEPG? I just want to concatenate those two files. or, even better, to add Croatian grabber into WebEPG for national channels (HTV1, HTV2, RTL TV, NOVA)?

tia,
pirlone
pirlone is offline   Reply With Quote
Old 2008-01-10, 18:14   #2 (permalink)
Portal Member
 
Join Date: Oct 2005
Posts: 177
Thanks: 7
Thanked 1 Time in 1 Post

Country:

My System

Default

so there is no way to import some other tvguide.xml into guide that WebEPG makes?

rgs,
pirlone
pirlone is offline   Reply With Quote
Old 2008-01-11, 14:17   #3 (permalink)
Portal Member
 
Join Date: Nov 2006
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts


Default

I use WebEPG for most of my channels, but I also use TVXB for two others that I haven't got working in WebEPG yet. I run WebEPG, then let MediaPortal update the TV database (TV Guide). Then I run TVXB and let it update again.

It doesn't overwrite the data I already have. It just adds data for the new channels when I run TVXB.

I don't know if that helps solve your problem or not?
Dadeo is offline   Reply With Quote
Old 2008-01-11, 20:05   #4 (permalink)
Portal Member
 
Join Date: Oct 2005
Posts: 177
Thanks: 7
Thanked 1 Time in 1 Post

Country:

My System

Default

this could be workaround, but i like to have fresh listings all the time, updated once a day, because programming of stations in my country tend to change on daily basis.

this is the reason why i checked option for delete old programming while importing new. so this method isn't really an option for me

for now i manually merge the two tvguides, but it isn't handy and i'd like to do this automatically.

rgs,
pirlone
pirlone is offline   Reply With Quote
Old 2008-01-13, 08:12   #5 (permalink)
Portal Developer
 
Join Date: May 2005
Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts


Default

Hi pirlone,

WebEPG supports downloading data in xml format. You can write a grabber file for your site.

See this thread for more details: http://forum.team-mediaportal.com/gr...5.html?t=22965

/James
James is offline   Reply With Quote
Old 2008-01-13, 14:23   #6 (permalink)
Portal Member
 
Join Date: Oct 2005
Posts: 177
Thanks: 7
Thanked 1 Time in 1 Post

Country:

My System

Default

Hi James,

I'm trying what you suggested, but having an error.

This is grabber for xml file

Quote:
<?xml version="1.0" encoding="utf-8"?>
<Grabber>
<Info availableDays="7" timezone="W. Europe Standard Time" version="2.1.0" />
<Channels>
<Channel id="HTV1" siteId="htv1.hr" />
<Channel id="HTV2" siteId="htv2.hr" />
<Channel id="RTL" siteId="rtl.hr" />
<Channel id="NOVA" siteId="nova.hr" />
</Channels>
<Listing type="Xml">
<Site url="http://tvprofil.net/xmltv/data/[ID]/weekly_[ID]_tvprofil.net.xml" post="" external="false" encoding="" delay="2000" />
<Xml xpath="//programme" channel="">
<Fields>
<Field name="#START" xmlname="start" />
<Field name="#END" xmlname="end" />
<Field name="#TITLE" xmlname="title" />
<Field name="#SUBTITLE" xmlname="subtitle" />
<Field name="#DESCRIPTION" xmlname="desc" />
<Field name="#GENRE" xmlname="type" />
</Fields>
</Xml>
</Listing>
</Grabber>

and this is error i'm getting:

Quote:
2008-01-13 14:17:46.453125 [ERROR][1]: Parsing error #START : 20080113011500
this is an example how xml file looks when i grab it with tvxb:

Quote:
<programme channel="htv1.hr" start="20080114231500" stop="20080115000000">
<title>Na rubu znanosti: Jeremy Narby</title>
<desc>kozmička zmija i podrijetlo znanja 1. dio</desc>
<premiere />
</programme>
what could be wrong here?

tia,
pirlone
pirlone is offline   Reply With Quote
Old 2008-01-13, 15:16   #7 (permalink)
Portal Developer
 
Join Date: May 2005
Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts


Default

You need to use #STARTXMLTV and #ENDXMLTV.

Sorry these weren't in the wiki, I have updated it now.

[EDIT] The end xmlname is "stop" in this case

Last edited by James; 2008-01-13 at 15:21.
James is offline   Reply With Quote
Old 2008-01-13, 17:32   #8 (permalink)
Portal Member
 
Join Date: Oct 2005
Posts: 177
Thanks: 7
Thanked 1 Time in 1 Post

Country:

My System

Default

great! it works now

i have only one little problem left with proper encoding.

ie, with webEPG i get:

Quote:
<programme start="20080113180500" stop="20080113191500" channel="HTV1-HTV1">
<title>Tri zaviÄaja, dokumentarni film</title>
<category>dokumentarni</category>
</programme>
while with tvxb i get correctly my localized country letters, how it should be:

Quote:
<programme start="20080113180500" stop="20080113191500" channel="HTV1-HTV1">
<title>Tri zavičaja, dokumentarni film</title>
<category>dokumentarni</category>
</programme>
(hint: take a look at word zavičaja in programme title)

there are few more localized letters like that (accented c,z,s,...)

tia,
pirlone
pirlone is offline   Reply With Quote
Old 2008-01-14, 07:43   #9 (permalink)
Portal Developer
 
Join Date: May 2005
Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts


Default

Ok.

WebEPG tries to auto detect the encoding type. However, I designed it to auto detect for HTML pages. So I think it is not doing it correctly here.

Provide the encoding= string in your file and hopefully it will work. When I view the file in firefox it says the encoding is "Unicode utf-8". So hopefully encoding="utf-8" will work.
James is offline   Reply With Quote
Old 2008-01-14, 07:54   #10 (permalink)
Portal Member
 
Join Date: Oct 2005
Posts: 177
Thanks: 7
Thanked 1 Time in 1 Post

Country:

My System

Default

unfortunatly it won't work.

as you can see from my previous post, I'm already using this encoding in my grabber file: <?xml version="1.0" encoding="utf-8"?> and my specific country letters doesn't show.
those letters are: čćšžđ and capitals ČĆŠŽĐ

rgs,
pirlone
pirlone is offline   Reply With Quote
Reply

Bookmarks

Tags
croatia, grabber

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Develop my own Grabber DKreeK WebEPG 21 2007-07-03 02:16
wp_pl grabber amilewski WebEPG 9 2007-04-22 22:14
Need help for dansih grabber mfalk WebEPG 7 2007-04-16 14:59
DVB Grabber lukes123 Installation, configuration support 1 2007-03-25 12:59
Grabber for Estonia Sasler WebEPG 3 2007-03-15 06:40


All times are GMT +1. The time now is 03:53.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden