Help with .nfo import (2 Viewers)

smarty12345

Portal Pro
November 23, 2011
100
17
United Kingdom
Home Country
Great Britain (UK) Great Britain (UK)
Hi guys.
I noticed the new Summer 15 release of MP2 was out, and I was intrigued by the feature that MP2 now supports nfo import of movies and TV shows. So, I have had a play with it this evening , and after several attempts, I can't find any way to get it to look at the nfo files that are in the folders with the files.

So far, I have added a test folder with tv shows and movies to the "local shares" option. and its scanned the folder. Movies seem fine, (though I have no idea if it used the nfo files to import or not).. But TV shows isn't right. Im testing with the series Firefly, as that ones always a bugger to get right with the aired vs dvd order. And it seems to be ignoring the nfo files, and not only that, but labling files wrong. So I end up with two episode 8s for example, with same plot summary etc, but they play different files when you start them.

I have looked and looked, and I can't find any option anywhere that seems ovbvious to ask/set MP2 to look at nfo's instread of scraping online..
Could someone point me in the right direction?
Thanks..
 

smarty12345

Portal Pro
November 23, 2011
100
17
United Kingdom
Home Country
Great Britain (UK) Great Britain (UK)
Its gotten worse than that now. I disabled the netowrk controller so there was no interent acces to the PC and then added the files again, and now tv series just crashed mp2 every time I try to open it now.. So I guess Im going to have to reinstall MP2 first.. As I can't see any way of resretting the application of stock settings.
Once I have done that and got it so its not crashing I will see about getting the logs. :)
 

breese

Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    66
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    Intersting... Never thought to disable internet when testing......
    The lookup is going to need internet access to grab anything you do not have.

    Once you have it reinstalled, run the scan and send all the server and client logs.

    EDIT: those crash logs would be nice to see
     

    smarty12345

    Portal Pro
    November 23, 2011
    100
    17
    United Kingdom
    Home Country
    Great Britain (UK) Great Britain (UK)
    Right. OK, so. I have attached all the logs to this post. The first, "error logs (internet disabled)" are all the logs generated before and after I tried import with network disabled. It seemed to break MP2 once I tried to load TVSeries, and when nothing was listed still, I tried to change the view I think. And then it just crashed every time after that. even after restarts of the PC.
    No TV shows ever appeared. Oddly, the moves did appear, and would play fine. But obviously had no images or data.

    The second set of logs, "error logs (after media import)", are what was generated after I reinstalled MP2 clean, added the folder location and let it finish its import. (with internet enabled). Shows, images etc are there. BUT, as before, it seems to have ignored the nfo files within the series folders, and in regards to the series Firefly, it seems to have semi-duplicated files..
    eg: I want firefly listed in DVD order, not air date. So, my media is labled as such. (Firefly.S01E01.Serenity, firefly.S01E02.The.Train.Job) etc..
    The air order though is (Firefly.S01E01.The.Train.Job, firefly.S01E11.Serenity). So, what I have ended up with in the episode list in MP2 for the show looks like the following.
    S01E01 - The Train Job > points to media file Firefly.S01E01.Serenity
    S01E01 - The Train Job > points to media file Firefly.S01E02.The.Train.Job
    Episode 11 is missing.
    And its the same for other episodes too.

    I can find no way to force the system to look at the nfo files, Nor tell the importer to import based on the dvd order instead of the aired order.
     

    breese

    Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    66
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    You have multiple issues happening.
    First your machine has multiple IP addresses assigned to it.
    You need to go into the config and assign the network IP to MP2 you wish to use.
    I am looking for the section in MP2 to bind to a single IP

    [2015-07-14 10:07:10,544] [6021 ] [Main ] [INFO ] - Info.: UPnPServerController: SSDP enabled for IP endpoint '192.168.0.2', search port is 1900
    [2015-07-14 10:07:10,544] [6021 ] [Main ] [INFO ] - Info.: UPnPServerController: SSDP enabled for IP endpoint '192.168.56.1', search port is 1900


    Do you have enough space or are there permission issues with your drive C: ?
    [2015-07-14 10:09:35,236] [150713 ] [198 ] [WARN ] - Couldn't delete old cache files
    System.IO.IOException: The process cannot access the file 'C:\ProgramData\Team MediaPortal\MP2-Server\TvDB\71746\en_full.xml' because it is being used by another process.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.File.InternalDelete(String path, Boolean checkHost)
    at System.IO.File.Delete(String path)
    at MediaPortal.Extensions.OnlineLibraries.Libraries.TvdbLib.Cache.XmlCacheProvider.SaveToCache(TvdbSeries series)


    Untill these 2 (above) are fixed, you will have issues with the network turned on.

    In the logs when the network is disabled, the importer found at least 1 ZIP file (might be more) that are not for importing

    [2015-07-13 23:35:27,620] [662421 ] [8 ] [WARN ] - ImporterWorker.ImportJob(#1).DirectoryUnfoldBlock: Error while processing PendingImportResource '{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///E:/new stuff/Downloads/Movies/RDP on Any WinPC Vista onwards.zip>{6b042db8-69ad-4b57-b869-1bcea4e43c77}:///RDP on Any WinPC Vista onwards/' (parent directory={e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///E:/new stuff/Downloads/Movies/RDP on Any WinPC Vista onwards.zip>{6b042db8-69ad-4b57-b869-1bcea4e43c77}:///)
    System.NullReferenceException: Object reference not set to an instance of an object.
    at MediaPortal.Extensions.ResourceProviders.ZipResourceProvider.ZipResourceAccessor.get_CanonicalLocalResourcePath()
    at MediaPortal.Extensions.ResourceProviders.ZipResourceProvider.ZipResourceAccessor.get_CanonicalLocalResourcePath()
    at MediaPortal.Common.Services.MediaManagement.PendingImportResourceNewGen.get_PendingResourcePath()
    at MediaPortal.Common.Services.MediaManagement.ImportJobController.RegisterPendingImportResource(PendingImportResourceNewGen pendingImportResource)
    at MediaPortal.Common.Services.MediaManagement.PendingImportResourceNewGen..ctor(ResourcePath parentDirectory, IFileSystemResourceAccessor resourceAccessor, String currentBlock, ImportJobController parentImportJobController, Nullable`1 parentDirectoryId, Nullable`1 mediaItemId)
    at MediaPortal.Common.Services.MediaManagement.ImportDataflowBlocks.DirectoryUnfoldBlock.<ProcessDirectory>d__3.MoveNext()
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,565
    3,946
    Lehmden
    Home Country
    Germany Germany
    I want firefly listed in DVD order, not air date.
    Sorry, but that isn't possible at the moment at all. This can be applied only after the MIA Rework is done.
    In all .nfo files I'm aware of the "aired" episode number is included. Ant at the moment MP2 can not have more episodes numbers for one episode.

    my media is labled as such
    This did not work as the media name did not match the .nfo content... You need to revert this to have the "aired" episodes nr on your media. This is necessary for MP1- TVSeries too to get it working correctly. And a future MP2 version also will follow this behaviour afaik.

    The stupid idiots that aired Firefly in such a crazy order are the only reason why the show wasn't as successful as it could be. But they are not the only one. "Almost Human" for example also was aired in a crazy order. Sadly MP2 is not jet able to handle such as some technical requirements for this are still a wip...
    So please be patient, this feature definitely will be implemented asap.
     

    smarty12345

    Portal Pro
    November 23, 2011
    100
    17
    United Kingdom
    Home Country
    Great Britain (UK) Great Britain (UK)
    You have multiple issues happening.
    First your machine has multiple IP addresses assigned to it.
    You need to go into the config and assign the network IP to MP2 you wish to use.
    I am looking for the section in MP2 to bind to a single IP

    [2015-07-14 10:07:10,544] [6021 ] [Main ] [INFO ] - Info.: UPnPServerController: SSDP enabled for IP endpoint '192.168.0.2', search port is 1900
    [2015-07-14 10:07:10,544] [6021 ] [Main ] [INFO ] - Info.: UPnPServerController: SSDP enabled for IP endpoint '192.168.56.1', search port is 1900


    Do you have enough space or are there permission issues with your drive C: ?
    [2015-07-14 10:09:35,236] [150713 ] [198 ] [WARN ] - Couldn't delete old cache files
    System.IO.IOException: The process cannot access the file 'C:\ProgramData\Team MediaPortal\MP2-Server\TvDB\71746\en_full.xml' because it is being used by another process.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.File.InternalDelete(String path, Boolean checkHost)
    at System.IO.File.Delete(String path)
    at MediaPortal.Extensions.OnlineLibraries.Libraries.TvdbLib.Cache.XmlCacheProvider.SaveToCache(TvdbSeries series)


    Untill these 2 (above) are fixed, you will have issues with the network turned on.

    In the logs when the network is disabled, the importer found at least 1 ZIP file (might be more) that are not for importing

    [2015-07-13 23:35:27,620] [662421 ] [8 ] [WARN ] - ImporterWorker.ImportJob(#1).DirectoryUnfoldBlock: Error while processing PendingImportResource '{e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///E:/new stuff/Downloads/Movies/RDP on Any WinPC Vista onwards.zip>{6b042db8-69ad-4b57-b869-1bcea4e43c77}:///RDP on Any WinPC Vista onwards/' (parent directory={e88e64a8-0233-4fdf-ba27-0b44c6a39ae9}:///E:/new stuff/Downloads/Movies/RDP on Any WinPC Vista onwards.zip>{6b042db8-69ad-4b57-b869-1bcea4e43c77}:///)
    System.NullReferenceException: Object reference not set to an instance of an object.
    at MediaPortal.Extensions.ResourceProviders.ZipResourceProvider.ZipResourceAccessor.get_CanonicalLocalResourcePath()
    at MediaPortal.Extensions.ResourceProviders.ZipResourceProvider.ZipResourceAccessor.get_CanonicalLocalResourcePath()
    at MediaPortal.Common.Services.MediaManagement.PendingImportResourceNewGen.get_PendingResourcePath()
    at MediaPortal.Common.Services.MediaManagement.ImportJobController.RegisterPendingImportResource(PendingImportResourceNewGen pendingImportResource)
    at MediaPortal.Common.Services.MediaManagement.PendingImportResourceNewGen..ctor(ResourcePath parentDirectory, IFileSystemResourceAccessor resourceAccessor, String currentBlock, ImportJobController parentImportJobController, Nullable`1 parentDirectoryId, Nullable`1 mediaItemId)
    at MediaPortal.Common.Services.MediaManagement.ImportDataflowBlocks.DirectoryUnfoldBlock.<ProcessDirectory>d__3.MoveNext()

    The second IP address is related to the virtual adapter that is present as I sometimes use virtualbox on the PC I tested MP2 on. But it shouldn't be interacting with anything on the system directly.
    I also have plenty of free space on the C: Drive, and AFAIK no permissions issues.. Certainly have no obvious issues with anything else. So no idea whats going on there,
    That zip file has also been removed from the folder now. Back before I reinstalled and tried it all again, I cleared out any other rubbish that was in the folder with the media just in case.[DOUBLEPOST=1436885618][/DOUBLEPOST]
    I want firefly listed in DVD order, not air date.
    Sorry, but that isn't possible at the moment at all. This can be applied only after the MIA Rework is done.
    In all .nfo files I'm aware of the "aired" episode number is included. Ant at the moment MP2 can not have more episodes numbers for one episode.

    my media is labled as such
    This did not work as the media name did not match the .nfo content... You need to revert this to have the "aired" episodes nr on your media. This is necessary for MP1- TVSeries too to get it working correctly. And a future MP2 version also will follow this behaviour afaik.

    The stupid idiots that aired Firefly in such a crazy order are the only reason why the show wasn't as successful as it could be. But they are not the only one. "Almost Human" for example also was aired in a crazy order. Sadly MP2 is not jet able to handle such as some technical requirements for this are still a wip...
    So please be patient, this feature definitely will be implemented asap.

    Thank you for your reply...
    I had wondered it if was an issue with that sort of thing. I had hoped that if I could give it an nfo file for the tv series, it would circumvent the need to go online at all, and so then just list the episodes in the order I had them/wanted them. Much like I do when importing movies into MovingPictures on MP1.
    I know I had the same issue when scraping the data for MP1 TV Series plugin. And in the end I edited the data manually in the sql database to get them listing correctly. But again, I had hoped the use of nfo files would stop the need for that.

    Hopefully some day. :)
     
    Last edited:

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    Just to add some additional Information:
    You can find here (at the bottom of the page) a detailed explanation which nfo-file elements are imported in which MediaItemAspect attributes for series.
    As you can see, the <displayepisode> element IS actually imported into our MediaLibrary - but I don't know off the top of my head whether we use it at all.
    As to the issue with the doubled episodes, I could imagine (without having verified) that it is caused by the way the Nfo-MDE and the Series-MDE currently play together. First we collect all the information from the nfo-files. But after that, the Series-MDE kicks in and tries to get information from the internet; if it succeeds, it overwrites the values from the nfo-files. We know that this is not an ideal behavior and we have plans to introduce a "priority system" for MDEs so that you are able to define exactly, which information is taken from which source (nfo-files, online databases, etc.).
    If you are interested in what exactly the nfo-MDE has read from your nfo-files, please follow the instructions here under "Troubleshooting". The DebugLog file should give you quite some insight in what happened when reading your nfo-files.
    What you can try to circumvent your problem is (after having stopped MP2-Server) move the SeriesMetadataExtractor directory out of the plugin directory (but keep a copy so that you can restore it). Restart MP2-Server and try an import. Now MP2-Server will not lookup any online content for Series anymore so that you should only see information from your nfo-files. There is, however, a side effect. It will then also not download any fanart for your series. If you have local fanart in your series-directories, you might be fine with that - but you need to try...
    Hope that helps,
    Michael
     

    Users who are viewing this thread

    Top Bottom