(original thread) MP-TVSeries (3 Viewers)

Status
Not open for further replies.

Psycho Reptile

Retired Team Member
  • Premium Supporter
  • April 19, 2006
    1,316
    787
    Cambridge, England
    Home Country
    United Kingdom United Kingdom
    My files are on a network share ;) I select every series name manually when MP-TVSeries is chosing series names, but I guess this only happens once when updating or creating the database. Don't really want guessing done based on the shortened name... No problem really, just though I'd mention it.
     

    nylonhof

    Portal Pro
    August 5, 2006
    99
    0
    Home Country
    Germany Germany
    I have all my series on a network share and no problems getting them into the db. Two or three series names I have to choose from the list (i.e. CSI NY - files named CSI.New.York), but that is of no concern to me (and I only had to do this during the first import).

    Love the plugin. It is fantastic. WAF is over the top.

    Regards
    nylonhof
     

    Sasler

    Portal Pro
    October 19, 2006
    72
    0
    Unhandled exception!

    This great plugin worked fine for a while, but noe when i try to configure it from MP setup plugins, I get an error message with following info:

    ************** Exception Text **************
    System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    at System.Collections.ArrayList.get_Item(Int32 index)
    at System.Windows.Forms.DataGridViewRowCollection.SharedRow(Int32 rowIndex)
    at System.Windows.Forms.DataGridViewRowCollection.get_Item(Int32 index)
    at WindowPlugins.GUITVSeries.ConfigurationForm.LoadImportPathes()
    at WindowPlugins.GUITVSeries.ConfigurationForm..ctor()
    at MediaPortal.GUI.Video.TVSeriesPlugin.ShowPlugin()
    at MediaPortal.Configuration.Sections.PluginsNew.itemConfigure_Click(Object sender, EventArgs e)
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
    at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ToolStrip.WndProc(Message& m)
    at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    ****************

    It works ok in MP it self except my db has multiple entries of the same show. I wonder if something is wrong with my db? Where does it store the db so that i could delete it and maybe that would solve the problem?
     

    mst3kroqs

    Portal Member
    August 15, 2006
    43
    0
    Can you assist me with regexp?

    Hi there -

    My complements, this looks to be a solid improvement over the previous TVSeries plugin.

    I need some assistance with regular expressions. I did try read some tutorials online and do this myself, but after an hour of unsuccessful experimentation, I decided that I needed some help. ;^)

    My structure is as follows:

    24\Season 1\24 [1x01] 12.00am - 1.00am.avi

    The as-shipped regexp below *almost* parses it correctly:

    Pattern:

    ^.*?\\?(?<series>[^\\$]+?)(?:s(?<season>[0-1]?[0-9])e(?<episode>[0-9]{2})|(?<season>(?:[0-1][0-9]|(?<!\d)[0-9]))x?(?<episode>[0-9]{2}))(?!\d)[ \-\.]*(?<title>[^\\]*?)\.(?<ext>[^.]*)$

    Yields:

    Series: "24 ["
    Season ID: "1"
    Episode ID: "01"
    Episode Title: "] 12.00am - 1.00am"
    Extension: "avi"

    So, what I am trying to determine is how to modify the regexp pattern to get rid of the 'braces'.

    I did consider the alternative of renaming all of the files, but this would represent a significant effort.

    Thanks in advance for any assistance you can provide!

    -m
     

    Cinetix

    Portal Member
    May 8, 2006
    49
    0
    try a simple exp. like this:
    <series> [<season>x<episode>] .

    and turn of the replacements...

    edit:
    if you're using regex. I think the [ messes up the parsing.
     

    mst3kroqs

    Portal Member
    August 15, 2006
    43
    0
    Hi Cinetix -

    try a simple exp. like this:
    <series> [<season>x<episode>] .

    and turn of the replacements...

    edit:
    if you're using regex. I think the [ messes up the parsing.


    I should have mentioned previously - I did try the simple expressions first, and I did turn off replacements. Unfortunately, parsing fails using this method for some reason, I had expected it to work ...

    -m
     

    mst3kroqs

    Portal Member
    August 15, 2006
    43
    0
    Odd behavior - Importing additional series

    zeflash -

    I noticed some odd/unexpected behavior in Import Setting of configurator. I'll try to explain as clearly as possible:

    In Import Settings, when using multiple Import Paths, when I go to Parsing Test, only the series supported by the paths that are 'Enabled' on the Import Paths screen are test-parsed. (as expected)

    I would then expect 'Start Import' to then work the same way, but instead, if the Import Paths for a previously-imported series is 'disabled', when I 'Start Import' for the new series, the new series is imported, but the previous series is 'greyed-out' in Details, and all of the local filename and other data is gone.

    I would expect that if previous paths/series are still in Import Paths list, but are disabled, and I add a new (enabled) path/series to the list, that the previously-imported disabled paths/series would not be parsed and the associated data would be untouched.

    Do I misunderstand the intent of the 'enabled' indicator in Import Settings/Import Paths?

    Note that the way I intend to use your new plugin is in a 'manual import' mode only. I know that it can automatically scan for new files, but I have this disabled, as I wish to maintain the stability of my system seeing as how some plugins/code are still new and/or experimental. For this reason, I import and update each season 'manually' in this way.

    I should mention - I am using 0.4b.

    Thanks!

    -m
     

    Cinetix

    Portal Member
    May 8, 2006
    49
    0
    Hi Cinetix -
    I should have mentioned previously - I did try the simple expressions first, and I did turn off replacements. Unfortunately, parsing fails using this method for some reason, I had expected it to work ...

    -m

    Try removing the [] in one of your files and change the expression accordingly.

    If the file is parsed, I think you should consider renaming your files... Use an application that can find and replace and do this:

    Find: " [" replace with "."
    Find: "]" replace with "."
     

    mst3kroqs

    Portal Member
    August 15, 2006
    43
    0
    Hi Cinetix -

    Try removing the [] in one of your files and change the expression accordingly.

    If the file is parsed, I think you should consider renaming your files... Use an application that can find and replace and do this:

    Find: " [" replace with "."
    Find: "]" replace with "."


    Thanks - I do appreciate the suggestions, however renaming the files is not an option. They are indexed by another front-end I am using, as well as a different database program which I use.

    I am still playing with regular expressions today. Fortunately it is a holiday here in the states. ;)

    What I am trying to create is the expression that parses the following substrings:

    $1 - <series> is all of the text between the beginning of the string or the nth occurence of '\' and the 1st occurence of '<space>[' (this strips leading paths)
    $2 - <season> is a 1 or 2 digit number between '[' and 'x'
    $3 - <episode> is a 1 or 2 digit number between 'x' and ']'
    $4 - <title> is all of the text between ']<space>' and '.'
    $5 - <ext> is all of the text after '.' to the end of the string.

    There *must* be a way, but alas I am a regexp noob.

    -m
     

    mst3kroqs

    Portal Member
    August 15, 2006
    43
    0
    Turns out I had sufficient free time today to figure this out. This was the answer:

    ^.*?\\?(?<series>[^\\$]+?)\[(?<season>[0-1]?[0-9])x(?<episode>[0-9]{2})(?!\d)[\] \.]*(?<title>[^\\]*?)\.(?<ext>[^.]*)$

    Phew!
     
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom