Start Import casues crash (2 Viewers)

Zinu

Portal Pro
February 28, 2008
650
23
Home Country
Netherlands Netherlands
Okay thanks, I'll gather some when I get home and post them here.
 

Zinu

Portal Pro
February 28, 2008
650
23
Home Country
Netherlands Netherlands
Here they are. Clean run of configuration, straigt to plugin screen, straight to MyTVseries config, straight to Start Import:
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Nothing pops out to me that directly points to your problem, so you will have to do some trial&error debugging. I suggest you try the following 4 steps:

    1st: You have "\\Server-dejong\videos\TV series" and "E:\Series" setup as MP-TVSeries share. Is the network share setup properly? Possibly there are some issues for the plugin to access it. Try removing it, see if problem goes away. If it does, then you can find out in more detail why.

    2nd: You got a lot of plugins in use. Try disabling all of them except MP-TVSeries, see if problem goes away then. If it does you can re-enable the other plugins till you find the cultprit.

    3rd: Dutch language is setup, now normally this shouldn't be a problem, but there are some other threads on this forum from people with issues that ended up being their language selection. They should be fixed, but try English on the default Blue3 skin and see if problem goes away.

    4th; The logs indicate that all the shows are already indexed, possibly the database got corrupted. Make a backup of the database and empty it out. Then re-import all your shows, see if it works again. Even better would be to delete/rename the database and start over, but then you have to redo the MP-TVSeries configuration.

    You are able to recreate the problem easy, so that is ideal to find the cause quick. So try the above steps to switch to a bare default setup. If you find the cause, and even better a solution, then post it on here, it might help others.
     

    Zinu

    Portal Pro
    February 28, 2008
    650
    23
    Home Country
    Netherlands Netherlands
    But a corrupted database means I've lost everything? There's a lot of manual work in there, will all that be lost?
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Corruption can be big or mild, your clearly got a mild one, since most stuff still functions.

    And if you make a copy of the database, whatever tests you do, can all be undone by restoring it.

    Simply make a copy of:

    "E:\Program Files\Team MediaPortal" *and* "E:\Documents and Settings\All Users\Application Data\Team MediaPortal"

    Then do all your testing and once done (and you hopefully found the cause), you delete the contents of those folders and restore the backup. New files might have been created, so a delete+restore is easier.

    I myself, simply make a copy of the "MediaPortal" sub folder in the forementioned folders. Using your folder structure, I got:

    E:\Program Files\Team MediaPortal\Copy of MediaPortal
    E:\Program Files\Team MediaPortal\MediaPortal

    (and one for the Data folder)

    That is just the foldername autogenerated by Windows when you do a CTRL+C and CTRL+V action. The folder for me contains a duplicate before I started making skin modifications (I tried many skins and am never 100% satisfied, so decided to modify Blue3wide myself), so if I mess up I can easaly resort back to the original.

    Now the folder size can be big, especially if you got a large collection, as "E:\Documents and Settings\All Users\Application Data\MediaPortal\thumbs" can be many GBs then, so keep that into consideration. You could even skip those folders and make a smaller backup.

    The critical thing for you to backup would be: "E:\Documents and Settings\All Users\Application Data\Team MediaPortal\MediaPortal\database\TVSeriesDatabase4.db3" if you want to do test #4, but you can do all the other tests without any backup (though I'd still suggest one)
     

    Zinu

    Portal Pro
    February 28, 2008
    650
    23
    Home Country
    Netherlands Netherlands
    Right, import goes fine with a fresh database. So I'm afraid it's corrupted.

    But the thing that I expected happened: alot of the shows I manually imported have to be imported again now... time to go parsing expression hunting I guess... Though I'll probably wait for 1.1.0 RC1 and do a fresh install alltogether.
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Well not all hope is lost, because you can use the SQLite Browser tool to fix corruptions in the database.

    However, I was in the same situation as yours, and I finally caved in and renamed all my shows to match the thetvdb.com listing, so I got a 100% automatic matchup.

    You might be able to use tvrename.com - Automatically rename and organise your TV shows, and more. to do a lot of that work automatic. And of course it is possible to do some fancy regular expression adjustment in MP-TVSeries plugin, or use the "String Replacement" option to assist, but what if a future MediaPortal version requires us to do a fresh install again. I know from experience (redid my database countless of times) that having your filenames renamed to match with the default expressions is a blessing.

    The only information MP-TVSeries needs is 'Show name', 'Season number' and 'Episode number'. The episode title is ignored inside the filename and is obtained from thetvdb.com after finding a match. However adding the episode title to the filename makes it easier to see what is what outside of the MP-TVSeries plugin, and it also helps when thetvdb.com is down, as the plugin then solely relies on the raw filename string to add the entry.

    When you are on the "Import" tab, and have the "Import Paths" setup active, just click on that icon on the right side to refresh the import table. Locate the entries that are red and start renaming the files before you import them, so that ideally there are no red entries before you do.

    Hopefully TVRename can do it all automatic for you, but otherwise I can say from experience it is worth doing it manually.
     

    Zinu

    Portal Pro
    February 28, 2008
    650
    23
    Home Country
    Netherlands Netherlands
    I guess I'll just wait for 1.1.0 RC1 (should be here real soon by the looks of it) and just do a complete reinstall. Everything got a little oudated anyway :)

    Thanks for your help, too bad it turned out to be a corrupted database :(
     

    Users who are viewing this thread

    Top Bottom