Filenaming Season and Episode Numbers not working (1 Viewer)

Anthony Gagnon

MP Donator
  • Premium Supporter
  • March 11, 2016
    26
    2
    121
    Home Country
    United States of America United States of America
    I've been at this for days, and I can't seem to get the advanced record settings to name TV recordings with Series and Episode Numbers in MP 1.16 on a Windows 10 machine. I've tried the options in "Movies" and "Series" with defaults and my own options and the file names come out with blanks where the data is supposed to go when viewing the filenames in Windows Explorer.

    I've got the zap2it guide data working perfectly for everything else and I see the tvguide.xml file has the Season and Episode number in a string and the episode number looks correct for the season and episode numbers starting at zero.

    Any ideas on what I'm doing wrong?

    Also, I've been researching this for a while and tried several plugins and rename tools. I haven't gotten any of that to work either. Sickbeard renamed the files correctly for some files, but that was because the date in the filename for the recording matched it's database for when it first aired.

    I'm trying to have S##E## for files for off the air shows that are being shown as re-runs.
     

    Anthony Gagnon

    MP Donator
  • Premium Supporter
  • March 11, 2016
    26
    2
    121
    Home Country
    United States of America United States of America
    Update: I kept at this until I found a solution (or 2 rather). I didn't know it at the time, but perhaps this post would have been better served in the EPG discussion area.

    To those viewing this that might have the same problem:
    Thanks to @lightshock and @Lehmden for this development and for their posts to help me find this solution.
    reference:
    Episodes2TVGuide (E2T) - Customizing tvguide.xml


    • Solution1 was to use EPG-buddy to update the tvguide.xml file to have readable season and episode numbers for Media Portal 1.
    EPG-Buddy a new EPG Tool with easy usage.

    Set up was straight forward with the instructions at the link above except for one little issue. I didn't realize that when the GUI asked for "path" for EPG Source, it meant to put the path AND file name in the box.
    It's working now with zap2it and it keeps the "new" recoding flag ("*" appended to new files) which I really require since I don't want to record old shows as often as reruns are aired.
    But For the reruns, it should give me season and episode numbers correctly, since I do record reruns of some shows that I haven't seen all of them.
    This seemed to update the xml file but I'm not sure that it will work with the new recording flag.


    • Solution2 was to update my already existing batch file to remove "common" and "dd_progid" from the zap2it xml file output. I tweaked the code at the link below provided for mc2xml to be for zap2it.
    reference:
    mc2xml and Episode Numbers
    XMLTV Idiot's guide please....hoping there is one!!

    Code:
    c:
    REM cd "C:\ProgramData\Team MediaPortal\MediaPortal TV Server\xmltv\cache"
    REM del /f /q *.*
    cd "\ProgramData\Team MediaPortal\MediaPortal TV Server\xmltv"
    zap2xml.exe -u username -p password -o tvguide_raw.xml -A "new live"
    findstr /V "system\=\"dd_progid\" system\=\"common\"" tvguide_raw.xml > tvguide.xml
    REM The above line removes all lines that contain of system="dd_progid" or system="common" and then writes to a new output file called tvguide.xml

    Note that Solution2 allows episode numbers and season information into MP even if there is a new flag. The solution seems to work and I'm not aware of any downsides for removing lines with the two strings found in the xml file.
    For this to work, one would have to change the username, password and file paths in the code above. Have the zap2it.exe in the path you reference and xml plugin on MP TV server use this path for the TVGUIDE.xml file.

    I'll try and mark this as solved and update if I find out more...
     
    Last edited:

    Users who are viewing this thread

    Similar threads

    If this has been addressed, then please remove it, but I didn't find it listed. I have found several times during import that the importer generates multiple Seasons. For instance, an import of Start Trek - The Next Generation based on fresh data generated by DVDFab and then tMM will produce Season 1 (1 Episode) and Season 1 (24...
    If this has been addressed, then please remove it, but I didn't find it listed. I have found several times during import that the...
    If this has been addressed, then please remove it, but I didn't find it listed. I have found several times during import that the...
    Replies
    0
    Views
    275
    This is not possible if it is a self made series, like personal travel videos etc.
    This is not possible if it is a self made series, like personal travel videos etc.
    Hi! I have videos that I want to show in TV-Series, such as personal TV series and educational series. As some examples I have...
    Replies
    8
    Views
    947
    Thanks, it did not occur to me to try option 2. That works perfectly. I was definitely using option 4 previously though. I figured that it included both entries because they both had the time 2202 as start or finish times. It was weird that it treated week 1 and week 2 differently though. Anyway, thanks again.
    Thanks, it did not occur to me to try option 2. That works perfectly. I was definitely using option 4 previously though. I...
    I'm sure I'm not the first person to encounter this but I couldn't find a similar topic. Here's more detail about what is...
    Replies
    2
    Views
    2K
    I've been utilizing Media Portal 1 for about 10 years now. It is a great program, so I thank you for all of your hard work over the years. I was looking into updating to MP 2 but when I ran a test it did not recognize the format that I have used with download tv series information with MP-TV Series (that I've used for 10 years on...
    I've been utilizing Media Portal 1 for about 10 years now. It is a great program, so I thank you for all of your hard work over...
    I've been utilizing Media Portal 1 for about 10 years now. It is a great program, so I thank you for all of your hard work over...
    Replies
    0
    Views
    660
    They said that the data they're receiving from the service provider is invalid.
    They said that the data they're receiving from the service provider is invalid.
    For whatever reason, SchedulesDirect is getting bad EPG data from my service provider (Beanfield in Canada) and as a result I'm...
    Replies
    10
    Views
    2K
    Top Bottom