MePo Tools - Download ClearArt/CDArt/ClearLogos, Music Video clips and more! (4 Viewers)

Guzzi

Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    @Guzzi
    With what name and where stores MyFilms fanart pictures?
    The path is user selectable - for "default install" it is preset to
    <MediaPortal data directoy>\MyFilms\Fanart\
    but can be anywhere else, if the user changes that setting (e.g. for network installs, it is usually on a server share)
    The naming is done as follows:
    - movie title as base (the one the user configures as "mastertitle")
    - replace invalid characters (those, the filesystem does not allow) with "_"
    - replace spaces with dots
    - lower case
    - place all fanarts in a directory with that name -> '{<cleanedtitle>}'
    - first fanart has same same as directory, if there are more, hashes are added to the name

    Code:
      string safeName = CreateFilename(title.ToLower()).Replace(' ', '.');
      string dirname = artFolder + "\\{" + safeName + "}";
      filename = dirname + "\\{" + safeName + "}.jpg";
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    movie title as base (the one the user configures as "mastertitle")
    How to determine what kind of?
    OriginalTitle="The Fifth Element" TranslatedTitle="The Fifth Element" FormattedTitle="Fifth Element, The"
    Now use the original. It really only affects the creation of Fike CD.
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    movie title as base (the one the user configures as "mastertitle")
    How to determine what kind of?
    OriginalTitle="The Fifth Element" TranslatedTitle="The Fifth Element" FormattedTitle="Fifth Element, The"
    Now use the original. It really only affects the creation of Fike CD.
    Again, user can configure which title to be used. I'd say stick with otitle - that's the more reliable one, as translated title very much depends on grabbers/data sources.
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    Yes is does, that great. But i'm about to figure out what code to use to display the art.
    For example what? For My Video something like:
    Code:
            <control>
                <description>Movie ClearArt</description>
                <type>image</type>
                <id>159357</id>
                <posX>1430</posX>
                <posY>720</posY>
                <width>250</width>
                <height>140</height>
                <texture>..\..\..\Thumbs\ClearArt\Movies\#Play.Current.IMDBNumber.png</texture>
                <keepaspectratio>yes</keepaspectratio>
                <centered>yes</centered>
                  <align>center</align>
                <zoom>no</zoom>
                <valign>top</valign>
                <visible>!string.equals(#Play.Current.IMDBNumber,)+control.isVisible(456852159)</visible>
            </control>
    
            <control>
                <description>Movie ClearLogo</description>
                <type>image</type>
                <id>0</id>
                <posX>1430</posX>
                <posY>720</posY>
                <width>250</width>
                <height>140</height>
                <texture>..\..\..\Thumbs\ClearLogo\Movies\#Play.Current.IMDBNumber.png</texture>
                <keepaspectratio>yes</keepaspectratio>
                <centered>yes</centered>
                  <align>center</align>
                <zoom>no</zoom>
                <valign>top</valign>
                <visible>!string.equals(#Play.Current.IMDBNumber,)+!control.hasthumb(159357)+control.isVisible(456852159)</visible>
            </control>
     
    Last edited:

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    movie title as base (the one the user configures as "mastertitle")
    What is the setting in which file is responsible for this.
    In MP datadirectory -> MyFilms.xml (which is the MyFilms config file).
    Inside the file, you'll find a setting (per configuration):

    Code:
      <entry name="AntTitle1">OriginalTitle</entry>

    The active configuration you find in
    Code:
        <entry name="Current_Config">SampleMovies</entry>
     

    sweborn

    Extension Designer
    June 8, 2007
    303
    214
    Home Country
    Sweden Sweden
    Yes is does, that great. But i'm about to figure out what code to use to display the art.
    For example what? For My Video something like:
    Code:
            <control>
                <description>Movie ClearArt</description>
                <type>image</type>
                <id>159357</id>
                <posX>1430</posX>
                <posY>720</posY>
                <width>250</width>
                <height>140</height>
                <texture>..\..\..\Thumbs\ClearArt\Movies\#Play.Current.IMDBNumber.png</texture>
                <keepaspectratio>yes</keepaspectratio>
                <centered>yes</centered>
                  <align>center</align>
                <zoom>no</zoom>
                <valign>top</valign>
                <visible>!string.equals(#Play.Current.IMDBNumber,)+control.isVisible(456852159)</visible>
            </control>
    
            <control>
                <description>Movie ClearLogo</description>
                <type>image</type>
                <id>0</id>
                <posX>1430</posX>
                <posY>720</posY>
                <width>250</width>
                <height>140</height>
                <texture>..\..\..\Thumbs\ClearLogo\Movies\#Play.Current.IMDBNumber.png</texture>
                <keepaspectratio>yes</keepaspectratio>
                <centered>yes</centered>
                  <align>center</align>
                <zoom>no</zoom>
                <valign>top</valign>
                <visible>!string.equals(#Play.Current.IMDBNumber,)+!control.hasthumb(159357)+control.isVisible(456852159)</visible>
            </control>

    I want to use this line to display clearart
    Code:
    <texture>..\..\..\Thumbs\ClearArt\Movies\#(string.trim(#myfilms.db.IMDB_Id.value)).png</texture>
    but it seems that you can not use the field IMDB_Id.

    Maybe @Guzzi can answer if it's possible.

    Edit: I figured out that this would be the best code to use
    Code:
    <texture>..\..\..\Thumbs\ClearArt\Movies\#(string.trim(#myfilms.user.item5.value)).png</texture>
    with the IMDB_Id value in MyFilms custom settings.
     
    Last edited:

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,161
    747
    I want to use this line to display clearart
    Code:
    <texture>..\..\..\Thumbs\ClearArt\Movies\#(string.trim(#myfilms.db.IMDB_Id.value)).png</texture>
    but it seems that you can not use the field IMDB_Id.

    Maybe @Guzzi can answer if it's possible.

    Edit: I figured out that this would be the best code to use
    Code:
    <texture>..\..\..\Thumbs\ClearArt\Movies\#(string.trim(#myfilms.user.item5.value)).png</texture>
    with the IMDB_Id value in MyFilms custom settings.
    The first attempt was the correct one - but indeed it does not work due to field is not pushed to property.
    Have created an issue and will be fixed in next release.
    Useritem could be used as workaround for the time being, but in general is a bad idea, as the user might remap it to a different field.
     

    Users who are viewing this thread

    Top Bottom