home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Talk
The unofficial Comhem Sweden thread
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="vuego" data-source="post: 328340" data-attributes="member: 23741"><p>Hi xmats</p><p></p><p>Getting EPG in MediaPortal is not very easy. You may use MP's DVB EPG grabber to get the EPG information from Com Hem over DVB-C but it has some drawbacks. MP's DVB EPG grabber may cause stability problems and Com Hem's EPG information is not very detailed (and they only provide one week of EPG I believe). Another way is to import a XMLTV file into the TV Server but it's not user friendly.</p><p>I was going to write a XMLTV guide in the <a href="https://www.team-mediaportal.com/manual/Country_Specific_Informations/Sweden" target="_blank">wiki</a> but it's not really a wiki since file management is not allowed by users <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite5" alt=":confused:" title="Confused :confused:" loading="lazy" data-shortname=":confused:" /></p><p>I'll add the guide here and you can be my guinea pig if you like <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p><span style="font-size: 12px">Set up and create the XMLTV file</span></p><p>The XMLTV file is a xml file which holds program and channel information for the next couple of days. There's many different programs that can scan web pages and save the TV listings structured in a xml file. I'll be using WebEPG, that comes with MP, to grab information from Dagenstv.com. The configuration file for Dagenstv that comes with MP <em>(C:\Program Files\Team MediaPortal\MediaPortal\WebEPG\grabbers\SE\www_dagenstv_com.xml)</em> is currently outdated so the first step is to update this file.</p><p></p><p>1. Get an updated www_dagenstv_com.xml from <a href="https://forum.team-mediaportal.com/webepg-136/updated-grabber-dagenstv-com-sweden-32572/index8.html#post378284" target="_blank">here</a> and replace the old file in the MP directory.</p><p></p><p>Next step is to configure WebEPG to grab your channels using Dagenstv. This can be done by linking every TV Server channel in your subscription to a "web channel" of Dagenstv using <em>C:\Program Files\Team MediaPortal\MediaPortal\WebEPG-conf.exe</em>. Instead of every Com Hem user having to do this manually I've attached some WebEPG configuration files for the most common channel packages (Small, Medium, Large, Canal+ and TV1000).</p><p></p><p>2. Download the attached zip file and copy the WebEPG.xml of your choice to <em><user files>\WebEPG\WebEPG.xml</em> (create the WebEPG directory if it doesn't exist). You can find the <user files> directory by opening Windows start menu -> Team MediaPortal -> MediaPortal -> User Files. Full path is <em>C:\<strong>ProgramData</strong>\Team MediaPortal\MediaPortal\WebEPG\WebEPG.xml</em> for Vista and <em>C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\WebEPG\WebEPG.xml</em> for XP.</p><p></p><p>Now start <em>C:\Program Files\Team MediaPortal\MediaPortal\WebEPG-conf.exe</em> to see that it can find the configuration file. If everything is right it will look something like the attached picture.</p><p></p><p>WebEPG also needs a <em>xmltv.dtd</em> file in the same folder as the XMLTV file.</p><p></p><p>3. Copy <em>C:\Program Files\Team MediaPortal\MediaPortal\xmltv\xmltv.dtd</em> to the <em><user files>\xmltv</em> folder. This is where WebEPG will put the XMLTV file.</p><p></p><p><em>C:\Program Files\Team MediaPortal\MediaPortal\WebEPG.exe</em> will do the actual grabbing and creates the XMLTV file. It doesn't have any user interface so you won't see it running other than WebEPG.exe in Task Manager and a TVguide-writing.xml file in the <em><user files>\xmltv</em> folder.</p><p></p><p>4. Launch <em>C:\Program Files\Team MediaPortal\MediaPortal\WebEPG.exe</em> and wait until <em><user files>\xmltv\TVguide-writing.xml</em> is renamed to <em>TVguide.xml</em>.</p><p></p><p></p><p><span style="font-size: 12px">Import the XMLTV file to the TV Server database</span></p><p>The TV Server comes with a XMLTV plugin which imports a XMLTV file.</p><p></p><p>1. Activate the XmlTv plugin in TV-Server Configuration -> Plugins.</p><p></p><p>2. In TV-Server Configuration -> Plugins -> XmlTv browse for the <em><user files>\xmltv</em> folder where <em>TVguide.xml</em> is stored.</p><p></p><p>3. Make sure that <strong>Import new tvguide.xml</strong> and <strong>Delete old programs before import</strong> is checked and <strong>Import files in new tvguide.lst</strong> is unchecked.</p><p></p><p>WebEPG doesn't know what timezone to use for the web page from where it's grabbing so it assumes GMT. Since Sweden is GMT+1 we need to <strong>Apply timezone compensation</strong>.</p><p></p><p>4. Set timezone compensation to <strong>1h</strong> (2h for daylight savings time).</p><p></p><p>Check the second attached screen shot to verify settings.</p><p></p><p>5. Open the Mappings tab, select your group if available and click Load/Refresh. All channels should be green since the WebEPG.xml is set to output channel names based on Com Hem's naming standard. Attached picture #3.</p><p></p><p>6. Don't forget to press <strong>Save</strong>!</p><p></p><p>7. Now go back to the Settings tab and click Import. You should get the Import status report filled out.</p><p></p><p>The EPG should now be filling up inside MediaPortal -> My TV. It will take a couple of minutes for all channels and programs to be populated so go take some well earned coffee <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>The TV Server will automatically import a new TVguide.xml. Just run WebEPG.exe once in a while to update your EPG. Or set up a Scheduled Task to do this for you.</p><p></p><p>Hope I didn't forget any details.</p></blockquote><p></p>
[QUOTE="vuego, post: 328340, member: 23741"] Hi xmats Getting EPG in MediaPortal is not very easy. You may use MP's DVB EPG grabber to get the EPG information from Com Hem over DVB-C but it has some drawbacks. MP's DVB EPG grabber may cause stability problems and Com Hem's EPG information is not very detailed (and they only provide one week of EPG I believe). Another way is to import a XMLTV file into the TV Server but it's not user friendly. I was going to write a XMLTV guide in the [URL="https://www.team-mediaportal.com/manual/Country_Specific_Informations/Sweden"]wiki[/URL] but it's not really a wiki since file management is not allowed by users :S I'll add the guide here and you can be my guinea pig if you like :) [SIZE="3"]Set up and create the XMLTV file[/SIZE] The XMLTV file is a xml file which holds program and channel information for the next couple of days. There's many different programs that can scan web pages and save the TV listings structured in a xml file. I'll be using WebEPG, that comes with MP, to grab information from Dagenstv.com. The configuration file for Dagenstv that comes with MP [I](C:\Program Files\Team MediaPortal\MediaPortal\WebEPG\grabbers\SE\www_dagenstv_com.xml)[/I] is currently outdated so the first step is to update this file. 1. Get an updated www_dagenstv_com.xml from [URL="https://forum.team-mediaportal.com/webepg-136/updated-grabber-dagenstv-com-sweden-32572/index8.html#post378284"]here[/URL] and replace the old file in the MP directory. Next step is to configure WebEPG to grab your channels using Dagenstv. This can be done by linking every TV Server channel in your subscription to a "web channel" of Dagenstv using [I]C:\Program Files\Team MediaPortal\MediaPortal\WebEPG-conf.exe[/I]. Instead of every Com Hem user having to do this manually I've attached some WebEPG configuration files for the most common channel packages (Small, Medium, Large, Canal+ and TV1000). 2. Download the attached zip file and copy the WebEPG.xml of your choice to [I]<user files>\WebEPG\WebEPG.xml[/I] (create the WebEPG directory if it doesn't exist). You can find the <user files> directory by opening Windows start menu -> Team MediaPortal -> MediaPortal -> User Files. Full path is [I]C:\[B]ProgramData[/B]\Team MediaPortal\MediaPortal\WebEPG\WebEPG.xml[/I] for Vista and [I]C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\WebEPG\WebEPG.xml[/I] for XP. Now start [I]C:\Program Files\Team MediaPortal\MediaPortal\WebEPG-conf.exe[/I] to see that it can find the configuration file. If everything is right it will look something like the attached picture. WebEPG also needs a [I]xmltv.dtd[/I] file in the same folder as the XMLTV file. 3. Copy [I]C:\Program Files\Team MediaPortal\MediaPortal\xmltv\xmltv.dtd[/I] to the [I]<user files>\xmltv[/I] folder. This is where WebEPG will put the XMLTV file. [I]C:\Program Files\Team MediaPortal\MediaPortal\WebEPG.exe[/I] will do the actual grabbing and creates the XMLTV file. It doesn't have any user interface so you won't see it running other than WebEPG.exe in Task Manager and a TVguide-writing.xml file in the [I]<user files>\xmltv[/I] folder. 4. Launch [I]C:\Program Files\Team MediaPortal\MediaPortal\WebEPG.exe[/I] and wait until [I]<user files>\xmltv\TVguide-writing.xml[/I] is renamed to [I]TVguide.xml[/I]. [SIZE="3"]Import the XMLTV file to the TV Server database[/SIZE] The TV Server comes with a XMLTV plugin which imports a XMLTV file. 1. Activate the XmlTv plugin in TV-Server Configuration -> Plugins. 2. In TV-Server Configuration -> Plugins -> XmlTv browse for the [I]<user files>\xmltv[/I] folder where [I]TVguide.xml[/I] is stored. 3. Make sure that [B]Import new tvguide.xml[/B] and [B]Delete old programs before import[/B] is checked and [B]Import files in new tvguide.lst[/B] is unchecked. WebEPG doesn't know what timezone to use for the web page from where it's grabbing so it assumes GMT. Since Sweden is GMT+1 we need to [B]Apply timezone compensation[/B]. 4. Set timezone compensation to [B]1h[/B] (2h for daylight savings time). Check the second attached screen shot to verify settings. 5. Open the Mappings tab, select your group if available and click Load/Refresh. All channels should be green since the WebEPG.xml is set to output channel names based on Com Hem's naming standard. Attached picture #3. 6. Don't forget to press [B]Save[/B]! 7. Now go back to the Settings tab and click Import. You should get the Import status report filled out. The EPG should now be filling up inside MediaPortal -> My TV. It will take a couple of minutes for all channels and programs to be populated so go take some well earned coffee :) The TV Server will automatically import a new TVguide.xml. Just run WebEPG.exe once in a while to update your EPG. Or set up a Scheduled Task to do this for you. Hope I didn't forget any details. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
The unofficial Comhem Sweden thread
Contact us
RSS
Top
Bottom