New Tool: episodescanner - adds series and episodenumbers to your MP or 4TR EPG (1 Viewer)

disaster123

MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Could we have a new option?

    Hi, disaster123!
    Maybe you could also add season and episodeinfo to TV plugin GUI in "title SXXEXX" format instead of "title" now?
    Thanks!
    Do you mean into the TV-Server (Series/Movie) Filename format tab? This can be assembled already with the sum of the parts. Or am I missing your point?

    Personally I'd like to see an option to lookup all Series/Episode numbers (of those series scheduled to be recorded) regardless if they're populated in the MP database... this would look at theTVDB for the value it'll be using (under TV-Series) and overwrite any incorrect values I may have gotten from my EPG source (which filter down to inaccurate filenames and... well, you get the point).

    But how should i know if the value in the db is from your epg our from episodescanner? isn't there an option to just not import numbers at all?
     

    Andrew H

    MP Donator
  • Premium Supporter
  • September 8, 2007
    574
    42
    Alabama
    Home Country
    United States of America United States of America
    Thanks for the quick response!

    If I'm correct, episodescanner is placing the Season Number into SeriesNum and Episode Number into EpisodeNum... The MP xmltv plug-in populates only EpisodeNum with what it's getting from my (mc2xml) EPG listing which (I suppose based on various broadcast reasons) often doesn't match theTVDB and nothing in my SeriesNum field. In fact, I can use MySQL Workbench 5.2 to access the MP database and sort on SeriesNum - if there's anything there it's because episodescanner populated it.

    So to answer your question: if there's nothing in SeriesNum and something in EpisodeNum it's from my EPG. And I don't have a way to "not" import numbers using mc2xml and the xmltv MP plug-in I'm currently using.

    How hard would it be to code an option to lookup the S/E if no SeriesNum exists instead of if no EpisodeNum exists?

    UPDATE: I think your philosophy is to "do no harm" by filling in only vacant fields. In my case I've found your data is accurate (looking downstream for TV-Series) while mine often is not - that's why I'd like to use what you obtain from theTVDB instead of what I (may or may not) already have! YES, it's a change in philosophy as you'd be overwriting EPG data with yours, but that's the reason for the option :)
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,958
    1,271
    Saratov
    Home Country
    Russian Federation Russian Federation
    Re: Could we have a new option?

    ]Do you mean into the TV-Server (Series/Movie) Filename format tab? This can be assembled already with the sum of the parts. Or am I missing your point?
    Hi!
    I made some screens.
     

    Attachments

    • screen1.jpg
      screen1.jpg
      168.1 KB
    • screen2.jpg
      screen2.jpg
      236.7 KB
    • screen3.jpg
      screen3.jpg
      374.7 KB
    • screen4.jpg
      screen4.jpg
      198.8 KB

    Andrew H

    MP Donator
  • Premium Supporter
  • September 8, 2007
    574
    42
    Alabama
    Home Country
    United States of America United States of America
    Ahhhh... I see. Aren't those controlled by the individual Skins? Even so, wouldn't there be a better place to ask your question than this thread? Yours is based on the app/skin and display of info rather than collecting Season/Episode information and writing it into the MP database.

    Not meaning to offend you, just trying to focus your inquiry. And, thanks for the screenshots - really cleared up your question!
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,958
    1,271
    Saratov
    Home Country
    Russian Federation Russian Federation
    Thanks for your reply, Andrew H!
    No, it goes from TV Plugin not from skins.
    I just thought that it will be logical continuation for disaster123's efforts in episodescanner and his patches.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Re: New Tool: episodescanner - adds series and episodenumbers to your MP or 4TR E

    So to answer your question: if there's nothing in SeriesNum and something in EpisodeNum it's from my EPG. And I don't have a way to "not" import numbers using mc2xml and the xmltv MP plug-in I'm currently using.

    How hard would it be to code an option to lookup the S/E if no SeriesNum exists instead of if no EpisodeNum exists

    OK what you could do is just to run an individual SQL command in front of my scanner in the run_loop.bat to delete all episodeNum field where seasonNum is empty. Something like this should work! UNTESTED - not exactly sure about the fieldnames!
    Code:
    C:...\bin\mysql.exe -u root -pMediaPortal mptvdb -e 'UPDATE `program` SET episodeNum='' WHERE episodeNum!='' AND seasonNum='';'

    ]Do you mean into the TV-Server (Series/Movie) Filename format tab? This can be assembled already with the sum of the parts. Or am I missing your point?
    Hi!
    I made some screens.

    I'm quite sure that this is skin controlled. As the fields for that are already in/known in MP itself.
     

    Andrew H

    MP Donator
  • Premium Supporter
  • September 8, 2007
    574
    42
    Alabama
    Home Country
    United States of America United States of America
    That's an interesting concept -- I didn't realize a single command line could be constructed to clear out the field as you described... I'll look into that and let you know.

    I was still curious about whether you'd had time to review the log & config files I'd posted. I wasn't sure why my initial "one_pass" gave the errors and instructed me to perform the debug run - maybe you can see what it was meaning... also, could you comment on my config.txt and the questions I'd posed. The potential of episodescanner would make my TV-Series simply run and I'm trying to integrate this into my system along-side of my (scheduled) TASK to update the guide data every day at 4 am.

    Another thing I might could do is use the command line to rename Law & Order: "LA" to Law & Order: "Los Angeles" for episodescanner to locate the series in theTVDB and then (use another command line to rename it) back to "LA" following your run of episodescanner in the .bat file, eh?
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    AW: Re: New Tool: episodescanner - adds series and episodenumbers to your MP or 4TR E

    3. Do I understand correctly the end of the config.txt that if you say YES you will delete the TV shows from the MP database if they're in the TV-Series DB?
    4. I couldn't get the regexp posted on page 1 to work - it would parse the episode NAME as the Series & Episode, so I'm trying a few other structures...
    5. They are now calling Law & Order: Los Angeles --> Law & Order: LA which this can't locate in theTVDB. Are substitutions allowed in this utility?
    6. I don't know why How I Met Your Mother can't populate the S/E but they seem to be blank...
    7. My first log (no debug) had a bunch of lines with "de.." followed by "en.." - was it searching in two languages or what was that about?

    3.) yes
    4.) works fine here if you name the files accordingly to my doc
    5.) i think TheTVDB supports alternate titles. So you should be able to add an alternate title to the series. If you have an account. (not sure where to add it but i read that it should work)
    6.) The log is really big - do you still have this problem?
    7.) yes you can set the languages in the config.txt file
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,958
    1,271
    Saratov
    Home Country
    Russian Federation Russian Federation
    Re: AW: Re: New Tool: episodescanner - adds series and episodenumbers to your MP or 4

    ]Do you mean into the TV-Server (Series/Movie) Filename format tab? This can be assembled already with the sum of the parts. Or am I missing your point?
    Hi!
    I made some screens.

    I'm quite sure that this is skin controlled. As the fields for that are already in/known in MP itself.
    I thought it could be posssible to "override" title field with something like string.Format("{0} S{1}E{2}", title, SeriesNum, EpisodeNum) but of course we can add skin properties.
    I'll try to look at this code if I could find it.
     

    Andrew H

    MP Donator
  • Premium Supporter
  • September 8, 2007
    574
    42
    Alabama
    Home Country
    United States of America United States of America
    Taking baby steps...

    I'm learning... and about the error I get, I ran the run_once.bat and observed a bunch of "deleting xxx from cache" statements and then it began to search out S/E and as an example, when it got to How I Met Your Mother it found the first show's title just fine and when it looped to get another title it searched in DE and then went haywire which began with the statement:
    Can't use a stale reference as a HASH at Backend/TVDB.pm line 178
    and goes on from there... see the log. My guess is there's an issue in the looping that isn't quite clean as the first execution of the search of theTVDB.

    Also, you'll see I found the setting for multiple language searching - I don't (think I) need the DE so I edited config.txt and eliminated "DE |" so it will now only search in "EN" - this might could have had an effect on your "do loop" because the error would pop up during the DE search and carried over into the EN search, but I'll let you make that determination.

    Thanks for your help and let me know what I can do to assist!
     

    Attachments

    • Line178.txt
      1.5 KB
    • config.txt
      4.3 KB

    Users who are viewing this thread

    Top Bottom