[solved] Don't get all season and episode numbers imported from xmltv in program guide (1 Viewer)

Trond

New Member
July 24, 2015
2
1
49
Home Country
Norway Norway
I've changed my xmltv provider to xmltv.se, now I don't get all season and episode numbers imported from xmltv in program guide.

Example of my tvguide.xml

[collapse]
<programme channel="zebra.tv2.no" start="20150724085000 +0200" stop="20150724094500 +0200">
<title lang="no">Ekstrem flytting</title>
<desc lang="no">I denne dramatiske serien følger vi gigantiske transporter over land, på havet og i luften.</desc>
<category lang="en">series</category>
<category lang="en">Reality</category>
<country>US</country>
<episode-num system="xmltv_ns">4.3/6.</episode-num>
<episode-num system="onscreen">Episode 4 av 6 sesong 5</episode-num>​
</programme>

<programme channel="zebra.tv2.no" start="20150724094500 +0200" stop="20150724101000 +0200">
<title lang="no">Byttebaronene</title>
<sub-title lang="no">Diamond in the Rough</sub-title>
<desc lang="no">De har ingen penger, men de er svært kreative, byttebaronene.</desc>
<date>2012</date>
<category lang="en">series</category>
<category lang="en">Reality</category>
<url>http://thetvdb.com/?tab=episode&amp...easonid=493522&amp;id=4334806&amp;lid=9</url>
<country>US</country>
<episode-num system="thetvdb.com">series/259497</episode-num>
<episode-num system="xmltv_ns">0 . 2 .</episode-num>
<episode-num system="onscreen">Episode 3 sesong 1</episode-num>​
</programme>[/collapse]
The first example "Ekstrem flytting" work with Season and Episode number in MePo, the last entry "Byttebaronene" doesn't.

If I remove the line: <episode-num system="thetvdb.com">series/259497</episode-num> from "Byttebaronene" , everything is ok.

Is it possible to make MePo jump over the "thetvdb.com" episode tag and read "xmltv_ns" ?
 

Trond

New Member
July 24, 2015
2
1
49
Home Country
Norway Norway
Solved: made a PowerShell script to delete all the <episode-num system="thetvdb.com"> from my tvguide.xml.
 

gibber

MP Donator
  • Premium Supporter
  • October 8, 2009
    35
    3
    Home Country
    Canada Canada
    Hi - looks like I have to create a similar script to remove all lines in the xml file containing episode information using "dd_progid" . Can you send me a copy of your script?
    I've never written a powershell script before.
     

    gibber

    MP Donator
  • Premium Supporter
  • October 8, 2009
    35
    3
    Home Country
    Canada Canada
    Tried this on some sample files and it seemed to work - Powershell is quite powerful!

    Get-Content .\TVGuidePreProcessed.xml | Where-Object {$_ -notmatch 'dd_progid'} | Set-Content TVGuide.xml

    Saved as .ps1 file type and it seems to run fine
     

    JohannesJahn

    Portal Pro
    June 9, 2006
    73
    2
    Germany
    Home Country
    Germany Germany
    Thank you, I have had a similar problem. By deleting not nessasary tag, I could solve my problem.
    It works, when you have the tag

    <episode-num system="xmltv_ns">4.3/6.</episode-num>

    first. It´s no matter, if you have further "systems" like <episode-num system="onscreen"...> or something else.
     

    Users who are viewing this thread

    Top Bottom