home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Talk
Scan movie db by folder name not file name?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="rjburke377" data-source="post: 280461" data-attributes="member: 70884"><p>There is a function in IMDBFetcher.cs called RefreshIMDB() that uses the filename to build an IMDB search string. It wouldn't be too hard to change this function to parse out the directory name as search criteria instead of using the file name.</p><p></p><p>I have changed my version to look for files of the form <movie name><date><crap>. The movie name and the date are used as the search criteria and the crap after the date is ignored. The only issue now is that the MP comparison function uses fuzzy logic implemented as a Levenshtein comparison routine. It compares the IMDB title to the original filename instead of the search criteria. I'm certain this is a bug and will attempt to fix. I will change the FuzzyMatch() function to skew results towards IMDB results that match the date and then use the Levenshtein comparison to only check the title.</p><p></p><p>A funny thing with MP implementation is that it will match the IMDB "aka" title, but only record the original title. The consequence is, for example, that "The Good, The Bad, and The Ugly" is recorded in the database as "Buono, il brutto, il cattivo, Il ". This is funny.</p><p></p><p>There is also an O^2 optimization problem as the directory is being scanned for each search. This makes the scan slower as the number of files increases. I don't know much about windows programming so this may be required because of threading / context issues.</p></blockquote><p></p>
[QUOTE="rjburke377, post: 280461, member: 70884"] There is a function in IMDBFetcher.cs called RefreshIMDB() that uses the filename to build an IMDB search string. It wouldn't be too hard to change this function to parse out the directory name as search criteria instead of using the file name. I have changed my version to look for files of the form <movie name><date><crap>. The movie name and the date are used as the search criteria and the crap after the date is ignored. The only issue now is that the MP comparison function uses fuzzy logic implemented as a Levenshtein comparison routine. It compares the IMDB title to the original filename instead of the search criteria. I'm certain this is a bug and will attempt to fix. I will change the FuzzyMatch() function to skew results towards IMDB results that match the date and then use the Levenshtein comparison to only check the title. A funny thing with MP implementation is that it will match the IMDB "aka" title, but only record the original title. The consequence is, for example, that "The Good, The Bad, and The Ugly" is recorded in the database as "Buono, il brutto, il cattivo, Il ". This is funny. There is also an O^2 optimization problem as the directory is being scanned for each search. This makes the scan slower as the number of files increases. I don't know much about windows programming so this may be required because of threading / context issues. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
Scan movie db by folder name not file name?
Contact us
RSS
Top
Bottom