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
Support
Electronic Program Guide
xmlTV
Modified zap2xml to distinguish between new and live episodes/shows
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="mundy5" data-source="post: 701113" data-attributes="member: 107100"><p><strong>MediaPortal Version</strong>: 1.1</p><p><strong>MediaPortal Skin</strong>: default</p><p><strong>Windows Version</strong>: xp x32 sp3</p><p><strong>CPU Type</strong>: Intel Dual CPU E2160 @ 1.8 GHz</p><p><strong>HDD</strong>: Seagate 500 GB</p><p><strong>Memory</strong>: 3.25 (technically 4) DDR2 800</p><p><strong>Motherboard</strong>: Gigabyte EP43-DS3L</p><p><strong>Video Card</strong>: NVIDIA GEForce 9500 GT</p><p><strong>Video Card Driver</strong>: NVIDIA 6.14.11.9621</p><p><strong>Sound Card</strong>: Realtek integrated</p><p><strong>Sound Card AC3</strong>: </p><p><strong>Sound Card Driver</strong>: Realtek 5.10.0.5653</p><p><strong>1. TV Card</strong>: ATI TV Wonder 600 PCIe</p><p><strong>1. TV Card Type</strong>: analog & ATSC</p><p><strong>1. TV Card Driver</strong>: ATI 6.14.10.394</p><p><strong>2. TV Card</strong>: ATI TV Wonder 750 PCIe</p><p><strong>2. TV Card Type</strong>: ATSC</p><p><strong>2. TV Card Driver</strong>: ATI 6.14.10.394</p><p><strong>3. TV Card</strong>: </p><p><strong>3. TV Card Type</strong>: </p><p><strong>3. TV Card Driver</strong>: </p><p><strong>4. TV Card</strong>: </p><p><strong>4. TV Card Type</strong>: </p><p><strong>4. TV Card Driver</strong>: </p><p><strong>MPEG2 Video Codec</strong>: </p><p><strong>MPEG2 Audio Codec</strong>: </p><p><strong>h.264 Video Codec</strong>: </p><p><strong>Satelite/CableTV Provider</strong>: </p><p><strong>HTPC Case</strong>: </p><p><strong>Cooling</strong>: </p><p><strong>Power Supply</strong>: </p><p><strong>Remote</strong>: Total Media In Hand</p><p><strong>TV</strong>: n/a</p><p><strong>TV - HTPC Connection</strong>: </p><p></p><p>A bit of a background. I have now used MP for some time using WebEPG to get the data for my channels. This works great but I encountered 2 issues. 1. It takes an awfully long time to download the data and 2. It does not show me whether an episode is a repeat or new. </p><p></p><p>So I had to basically go to another web tv listing to double check whether an episode was new or not. Often, I ended up recording it only to find out it was a repeat. I tried to modify the grabber for WebEPG to get the new or repeat data but was unsuccessful.</p><p></p><p>I eventually decided to give xmltv a try again. I was unsuccessful earlier. After getting zap2xml.exe working and loading properly into MP, I also noticed that it uses the "*" to signify a new or live show but it appends it to the title. I didn't really like that and also wanted to be able to distinguish between "new" and "live" shows. So I decided to modify the perl script to be able to identify "new" and "live" shows and instead of appending it to the title, I have it appending to the description instead. Thus it does not alter the title at all. </p><p></p><p>It was a bit of a challenge at times trying to figure out the code since I didn't really know perl but the original author was very good at making it as modular as possible thus easier to modify. I am attaching the modified perl script in text form and use Strawberry Perl and a batch file to update this every day.</p><p></p><p>If you want more details, I would be glad to give you all more. This is for those who already have it working but would like a tweak for the identification between live and new shows.</p><p></p><p>btw, you can get a copy of Strawberry Perl here: <a href="http://strawberryperl.com/" target="_blank">Strawberry Perl for Windows</a></p><p></p><p>You will want Strawberry Perl so that it can run the Perl script without compiling. You will see this in my batch file. Once you download and install Strawberry Perl, you can run any perl script apparently without first compiling them into a Windows executable file.</p><p></p><p>And you will want a copy of Notepad++ if you want to easily edit perl scripts here: <a href="http://notepad-plus-plus.org/download" target="_blank">Download | 5.8.6</a></p><p></p><p>I am attaching the portions of the zap2xml.pl script that I have altered in text form since this forum does not permit .pl scripts as attachments.</p><p></p><p>Here is my batch file:</p><p>cd c:\</p><p>perl zap2xmlmod.pl -u <span style="color: DarkRed">email@emailserver.com</span> -p <span style="color: darkred">mypassword</span> -d 14 -o C:\tvguide.xml -A "new live"</p><p>cd C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal TV Server\xmltv\</p><p>copy c:\tvguide.xml</p><p>del c:\tvguide.xml</p><p></p><p>Lastly, I am attaching a screenshot of my tvguide with the "new" and "live" designations in the description. In the end, I was able to deal with the two issues. First, this batch file runs in about 1-2 minutes. Your time will vary depending on the number of days and the number of channels. Second, I was able to get the description to tell me if an episode is new or not. So now I don't have to go to a different tv listing to see if a show is a repeat or not.</p><p></p><p>Hope this helps others.</p></blockquote><p></p>
[QUOTE="mundy5, post: 701113, member: 107100"] [b]MediaPortal Version[/b]: 1.1 [b]MediaPortal Skin[/b]: default [b]Windows Version[/b]: xp x32 sp3 [b]CPU Type[/b]: Intel Dual CPU E2160 @ 1.8 GHz [b]HDD[/b]: Seagate 500 GB [b]Memory[/b]: 3.25 (technically 4) DDR2 800 [b]Motherboard[/b]: Gigabyte EP43-DS3L [b]Video Card[/b]: NVIDIA GEForce 9500 GT [b]Video Card Driver[/b]: NVIDIA 6.14.11.9621 [b]Sound Card[/b]: Realtek integrated [b]Sound Card AC3[/b]: [b]Sound Card Driver[/b]: Realtek 5.10.0.5653 [b]1. TV Card[/b]: ATI TV Wonder 600 PCIe [b]1. TV Card Type[/b]: analog & ATSC [b]1. TV Card Driver[/b]: ATI 6.14.10.394 [b]2. TV Card[/b]: ATI TV Wonder 750 PCIe [b]2. TV Card Type[/b]: ATSC [b]2. TV Card Driver[/b]: ATI 6.14.10.394 [b]3. TV Card[/b]: [b]3. TV Card Type[/b]: [b]3. TV Card Driver[/b]: [b]4. TV Card[/b]: [b]4. TV Card Type[/b]: [b]4. TV Card Driver[/b]: [b]MPEG2 Video Codec[/b]: [b]MPEG2 Audio Codec[/b]: [b]h.264 Video Codec[/b]: [b]Satelite/CableTV Provider[/b]: [b]HTPC Case[/b]: [b]Cooling[/b]: [b]Power Supply[/b]: [b]Remote[/b]: Total Media In Hand [b]TV[/b]: n/a [b]TV - HTPC Connection[/b]: A bit of a background. I have now used MP for some time using WebEPG to get the data for my channels. This works great but I encountered 2 issues. 1. It takes an awfully long time to download the data and 2. It does not show me whether an episode is a repeat or new. So I had to basically go to another web tv listing to double check whether an episode was new or not. Often, I ended up recording it only to find out it was a repeat. I tried to modify the grabber for WebEPG to get the new or repeat data but was unsuccessful. I eventually decided to give xmltv a try again. I was unsuccessful earlier. After getting zap2xml.exe working and loading properly into MP, I also noticed that it uses the "*" to signify a new or live show but it appends it to the title. I didn't really like that and also wanted to be able to distinguish between "new" and "live" shows. So I decided to modify the perl script to be able to identify "new" and "live" shows and instead of appending it to the title, I have it appending to the description instead. Thus it does not alter the title at all. It was a bit of a challenge at times trying to figure out the code since I didn't really know perl but the original author was very good at making it as modular as possible thus easier to modify. I am attaching the modified perl script in text form and use Strawberry Perl and a batch file to update this every day. If you want more details, I would be glad to give you all more. This is for those who already have it working but would like a tweak for the identification between live and new shows. btw, you can get a copy of Strawberry Perl here: [url=http://strawberryperl.com/]Strawberry Perl for Windows[/url] You will want Strawberry Perl so that it can run the Perl script without compiling. You will see this in my batch file. Once you download and install Strawberry Perl, you can run any perl script apparently without first compiling them into a Windows executable file. And you will want a copy of Notepad++ if you want to easily edit perl scripts here: [url=http://notepad-plus-plus.org/download]Download | 5.8.6[/url] I am attaching the portions of the zap2xml.pl script that I have altered in text form since this forum does not permit .pl scripts as attachments. Here is my batch file: cd c:\ perl zap2xmlmod.pl -u [COLOR="DarkRed"]email@emailserver.com[/COLOR] -p [COLOR="darkred"]mypassword[/COLOR] -d 14 -o C:\tvguide.xml -A "new live" cd C:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal TV Server\xmltv\ copy c:\tvguide.xml del c:\tvguide.xml Lastly, I am attaching a screenshot of my tvguide with the "new" and "live" designations in the description. In the end, I was able to deal with the two issues. First, this batch file runs in about 1-2 minutes. Your time will vary depending on the number of days and the number of channels. Second, I was able to get the description to tell me if an episode is new or not. So now I don't have to go to a different tv listing to see if a show is a repeat or not. Hope this helps others. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Electronic Program Guide
xmlTV
Modified zap2xml to distinguish between new and live episodes/shows
Contact us
RSS
Top
Bottom