- Moderator
- #191
AW: The Future of MyFilms?
+1
+1
Spain
The actual path I use for fanart is: C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\movies\{killers} for example. Does seem pretty long2010-09-12 09:58:33.634765 [ERROR][MPMain(1)]: Exception: System.IO.PathTooLongException: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
at System.IO.Path.SafeSetStackPointerValue(Char* buffer, Int32 index, Char value)
at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck)
at System.IO.Path.NormalizePath(String path, Boolean fullCheck)
at System.IO.Path.GetFullPathInternal(String path)
at System.IO.FileInfo..ctor(String fileName)
at MesFilms.MesFilmsDetail.Search_Fanart(String wtitle2, Boolean main, String searched, Boolean rep, String filecover, String group)
at MesFilms.MesFilmsDetail.afficher_detail(Boolean searchPicture)
at MesFilms.MesFilmsDetail.OnMessage(GUIMessage messageType)
at MediaPortal.GUI.Library.GUIWindowManager.ActivateWindow(Int32 newWindowId, Boolean replaceWindow, Boolean skipHistory)
You must be right, but I got confused because the mesfilms.xml contains two fanart controls with two diff properties (#myfilms.Fanart and #myfilms.Fanart2). So thought it worked like TVSeries and Moving Pictures fanart, fading between two fanart images (not all of them).Re fanart in main view: That is how it is made - only details view uses the multiimagecontrol to toggle through available fanarts. In main view it is only fading between the first fanarts of different movies - don't know if this would also work with the multiimagecontrol, might be worth a try ...
Yeah, I tried moving my fanart to M:\Fanart\ but it didn't help! For example, Iron Man 2 causes the error message (and does not display fanart in Details View). I don't know exactly which fanart the multiimage control tries to load, but the longest filename is: M:\Fanart\{iron.man.2}\{iron.man.2} [-1751089959].jpg - which is far less than the 260 character limit indicated in the error message. So I don't think it is really my folder structure.Re IO exception: I think, the problem is the structure of the fanart:
if (((main) || (searched == "file")) && (System.IO.File.Exists(safeName + "\\{" + wtitle2 + "}.jpg")))
The Path is fanartfolder + "safe" movie name + the names of the images themselves.
Make a dir listing and check, if there is too long pathes - if it's only some single ones, you could manually rename the file, if the filename is too long.
On programside the exception could be catched, but this would mean the fanart would not be recognized, unless other construct to be used.
I personally have all fanarts on a serverdirectory, thus the path being short enough - plus the advantage, that the fanart is available to all clients immediately.
Hi Guzzi thanks for the reply:
You must be right, but I got confused because the mesfilms.xml contains two fanart controls with two diff properties (#myfilms.Fanart and #myfilms.Fanart2). So thought it worked like TVSeries and Moving Pictures fanart, fading between two fanart images (not all of them).Re fanart in main view: That is how it is made - only details view uses the multiimagecontrol to toggle through available fanarts. In main view it is only fading between the first fanarts of different movies - don't know if this would also work with the multiimagecontrol, might be worth a try ...
Personally, I love the multiimage control, I think it works great. I did try to use it on the Main view, but I could not get it to work, as you found out! There are not that many fanart images in one movie folder, so I don't think it would slow down scrolling the list. In aMPed skin I use multiimages in many places and have no problems.
EUREKA! I think I figured it out. I remembered reading one of your posts Guzzi about it doing the lookup on Translated Titles vs Original Titles. I noticed that recently the IMDB script I am using started putting a ton of text in Translated Title (which I don't usually use). So I removed that long text from Tranlasted Title and Voila - fanart displays in Details View no problemo! No more error message. Now I just have to fix up the Titles and I'm good to go. Thanks for your help!
Hey Guzzi thanks for the confirmation about the fanart in the Main Screen. Hope someone can fix that (or better yet, just use the multiimage control in both Main and Details view and forget about CornerstoneMP!)
hmmm, would require to pinpoint, when it works and when it doestn't ... ;-)However, in Details view fanart still does not work in some cases. If a movie has both an Original Title and a Translated Title, sometimes fanart displays but sometimes it doesn't.
I can't test, because I have TranlatedTitle for all my movies - it's same as Otitle, if no translation available.If I view a different movie that has multiple fanart images, and then I view a movie with a Translated Title, the fanart never displays in Details view for me. I tested using Blue3 skin files of course. Can you confirm that or not?
In my case, my movies are mostly English language films so the Movie Titles appear in AMC in the Original Title field. In MyFlims Config, Ant Master Title is Original Title. I am not clear how the Fanart Grabber tries to match fanart, but I noticed that when there is a Translated Title for a movie, it creates a new folder in the fanart folder. However, those folders are always empty. For example, for the movie Killers I have a folder {killers] with 9 fanart images and a folder {_kiss.&.kill_.-.japan.(english.title)} with none. That makes sense to me since {_kiss.&.kill_.-.japan.(english.title)} would not match any fanart in TMDB. But, when I go to Details View, the multiimage control does not work for Killers and only one fanart displays. If I remove the Translated Title, then the multiimage control works.
The same issue occurs with foreign language films. For example, for 'Un prophète' MyFilms fanart grabber accurately finds both the fanart backdrops, but it will only display one of them in Details View unless I remove the translated title.
So, I think the whole issue is with the Titles, but I am guessing. If I want fanart to display correctly, I have to remove all Translated Titles. I don't think I would call that a 'fix'
I understand why My Films is trying to match on Original Title as well as Translated Title, since users may have configured their AMC in diff ways. But why does it combine the names? For example, should it not just create one folder for 'Un prophète' and one for 'A Prophet' and then in Details view match it based on the Main Title a user selects in MyFilms config?