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 Plugins
Popular Plugins
My Films
AMC Updater v0.7.3 Now Available!
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="jamieo" data-source="post: 294947" data-attributes="member: 53052"><p>Excellent, I look forward to the next release. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p></p><p></p><p>I may be missing something fairly obvious here but I don't understand the above comment. The option is to simply substitute the parent folder name as the original title instead of the filename - no more, no less. This would be in the initial scanning phase just to indicate what the title should be, the internet lookup can still be done as before but the search uses the foldername instead of the filename....</p><p></p><p>Consider the psuedo code below, the code in red implementing the option to use the foldername instead:</p><p></p><p>[CODE][FONT="Courier New"]file = "M:\films\The Bourne Ultimatum\s-tbu.mkv"</p><p></p><p>fieldSource = file</p><p></p><p>[COLOR="DarkRed"][B]if useFolderName then</p><p> fieldTitle = GetParentFolderName(file)</p><p>else[/B][/COLOR]</p><p> fieldTitle = GetFileTitle(file)</p><p></p><p>if getInternetData then IMDBLookup(fieldTitle)[/FONT][/CODE]</p><p></p><p>Normally fieldTitle would be set to "s-tbu" and then the imdb search would be ran without finding a match. If the useFolderName option was enabled then the fieldTitle would be set to "The Bourne Ultimatum" instead and the imdb search should match this time. </p><p></p><p>I think you may perceive the requested option to be more involved than it needs to be, hopefully the above clarifies that all it really needs to do is substitute the folder name instead when you initially set the movie title - then carry on as normal. I haven't done PC dev for a while so am not set up for it atm but if you like I could take a look at your current source and try to help out?</p><p></p><p>Thanks again. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Jamie</p></blockquote><p></p>
[QUOTE="jamieo, post: 294947, member: 53052"] Excellent, I look forward to the next release. :) I may be missing something fairly obvious here but I don't understand the above comment. The option is to simply substitute the parent folder name as the original title instead of the filename - no more, no less. This would be in the initial scanning phase just to indicate what the title should be, the internet lookup can still be done as before but the search uses the foldername instead of the filename.... Consider the psuedo code below, the code in red implementing the option to use the foldername instead: [CODE][FONT="Courier New"]file = "M:\films\The Bourne Ultimatum\s-tbu.mkv" fieldSource = file [COLOR="DarkRed"][B]if useFolderName then fieldTitle = GetParentFolderName(file) else[/B][/COLOR] fieldTitle = GetFileTitle(file) if getInternetData then IMDBLookup(fieldTitle)[/FONT][/CODE] Normally fieldTitle would be set to "s-tbu" and then the imdb search would be ran without finding a match. If the useFolderName option was enabled then the fieldTitle would be set to "The Bourne Ultimatum" instead and the imdb search should match this time. I think you may perceive the requested option to be more involved than it needs to be, hopefully the above clarifies that all it really needs to do is substitute the folder name instead when you initially set the movie title - then carry on as normal. I haven't done PC dev for a while so am not set up for it atm but if you like I could take a look at your current source and try to help out? Thanks again. :) Jamie [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
My Films
AMC Updater v0.7.3 Now Available!
Contact us
RSS
Top
Bottom