damienhaynes / moving-pictures

Moving Pictures is a movies plug-in for the MediaPortal media center application. The goal of the plug-in is to create a very focused and refined experience that requires minimal user interaction. The plug-in emphasizes usability and ease of use in managing a movie collection consisting of ripped DVDs, and movies reencoded in common video formats supported by MediaPortal.
12 stars 6 forks source link

If I add a file called trailer.mov to an existing movie folder then importer doesn't scan the .nfo file #672

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have each movie in an individual folder
2. Set moving pictures to prefer folder name for matching, and also to scan
.nfo/.txt files for imdb details
2. Create a .nfo file is the same folder as the movie with the correct imdb
details for scaning
3. Scan the database and import the movie
4. Quit moving pictures
5. Create trailer.mov in the same folder as the movie
6. Run the importer

What is the expected output?

I expect the importer to scan the .nfo file and import trailer.mov as the
movie identified in the .nfo file.  If prefer folder matching is selected I
would also expect the importer to use the folder name first to identify the
movie rather than the filename.

What do you see instead?

The importer imports the movie as Trailer (1997) movie.

**

d:\movies\Changling (2009)\changling_720p.avi
d:\movies\Changling (2009)\info.nfo (containg imdb url)
d:\movies\Changling (2009)\trailer.mov

**

I know that trailers arn't officially supported yet, but could this problem
be due to some errors in the importer logic, it should really look at .nfo
file first, then the movie folder, then the filename last.

Original issue reported on code.google.com by kiwijung...@gmail.com on 9 Dec 2009 at 4:32

GoogleCodeExporter commented 9 years ago
The problem is that when more than one video file is in a folder, the NFO file 
must 
be named exactly as the video file is. In this case either "changling_720p.nfo" 
or 
"trailer.nfo". There is currently no way to have one NFO file match to two 
movies 
(and this is by design).

I think to accomplish what you are attempting, you will need to have multiple 
copies 
of the NFO file, one for the main movie and one for the trailer. Alternatively 
you 
could probably modify the existing XBMC NFO Scraper Script, or even create a 
new 
script, to function as you are describing. What you are trying to do is, by 
design, 
prevented with the default script and plugin though.

Original comment by conrad.john on 9 Dec 2009 at 6:44

GoogleCodeExporter commented 9 years ago
Ahh thanks for your input. I understand fully now, thank you.
Just as a side note I had also tried

d:\movies\Changling (2009)\changling_720p.avi
d:\movies\Changling (2009)\info.nfo (containg imdb url)

Which scanned fine, then i created the following 2 files

d:\trailers\Changling (2009)\info.nfo (containg imdb url)
d:\trailers\Changling (2009)\trailer.mov

When i did this i still get the movie imported as Trailer (1997), ie It ignores 
the
folder name and .nfo file, even theough there is only one movie file within the 
folder.

This which is strange given your explanation.  I guess it must be something to 
do
with having duplicate movies?  Or is it because the subfolder names are 
identical?

Original comment by kiwijung...@gmail.com on 9 Dec 2009 at 7:13

GoogleCodeExporter commented 9 years ago
I created dummy files with the exact file names and folder structures you have 
described, with an NFO file (identical in both places) containing the below 
URL, and I 
can not produce your issue. Both video files for me are auto approved as 
Changling from 
2009.

http://www.imdb.com/title/tt0824747/

You are using the 1.0 Beta correct?

Original comment by conrad.john on 9 Dec 2009 at 4:15

GoogleCodeExporter commented 9 years ago
Yes 1.0 beta.  I will do it again and report back.  Did they import as two 
seperate
copies or a multipart movie?

Original comment by kiwijung...@gmail.com on 9 Dec 2009 at 8:45

GoogleCodeExporter commented 9 years ago
Also did you import twice? ie once after \movies\ and 2nd time after \trailers\ 
?

Original comment by kiwijung...@gmail.com on 9 Dec 2009 at 8:46

GoogleCodeExporter commented 9 years ago
Two separate files. I am assuming that is your goal, using Categories to 
separate them 
out? And this was done with a single import. Both files were detected and auto 
approved 
on the same pass.

Original comment by conrad.john on 9 Dec 2009 at 8:54

GoogleCodeExporter commented 9 years ago
ok i'll try again with 1 step and 2 step imports, see if there is a difference. 
Thanks conrad.

Original comment by kiwijung...@gmail.com on 9 Dec 2009 at 9:57