Filenaming Season and Episode Numbers not working

Discussion in 'General Support' started by Anthony Gagnon, June 20, 2018.

Loading...
  1. Anthony Gagnon
    • Premium Supporter

    Anthony Gagnon MP Donator

    Joined:
    March 11, 2016
    Messages:
    22
    Likes Received:
    2
    Ratings:
    +9 / 0
    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.
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Threadmarks: SOLVED:
    Anthony Gagnon
    • Premium Supporter

    Anthony Gagnon MP Donator

    Joined:
    March 11, 2016
    Messages:
    22
    Likes Received:
    2
    Ratings:
    +9 / 0
    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 (Winbatch):
    1. c:
    2. REM cd "C:\ProgramData\Team MediaPortal\MediaPortal TV Server\xmltv\cache"
    3. REM del /f /q *.*
    4. cd "\ProgramData\Team MediaPortal\MediaPortal TV Server\xmltv"
    5. zap2xml.exe -u username -p password -o tvguide_raw.xml -A "new live"
    6. findstr /V "system\=\"dd_progid\" system\=\"common\"" tvguide_raw.xml > tvguide.xml
    7. 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: September 30, 2018
Loading...
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!