[Skin] The function returns a string with no characters that are not allowed in filenames or directories. (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    16,039
    11,112
    Kyiv
    Home Country
    Ukraine Ukraine
    Started on: 2014-09-24
    last update: 2014-09-24

    Summary:
    Add function (#makefilename) in Skin Expressions, which will return a string with no characters that are not allowed in filenames or directories. Ie will run function MakeDirectoryPath of Core/Util/Util.cs.
    This function is required for the normal display ClearArt / CDArt etc. for artists and albums.

    Area:
    Skin Expressions

    Description:

    For example:
    Was: <texture>#Play.Current.mvArtist - #Play.Current.mvAlbum.png</texture> - return - AC/DC - Back In Black.png - But the file with the same name can not be.
    Will be:
    <texture>#makefilename(#Play.Current.mvArtist) - #makefilename(#Play.Current.mvAlbum).png</texture> - return - AC_DC - Back In Black.png - File with the same name has a right to exist.

    Was: <texture>#Play.Current.mvArtist - #Play.Current.mvAlbum.png</texture> - return - Guns N' Roses - Live?!*@ Like a Suicide.png - But the file with the same name can not be.
    Will be:
    <texture>#makefilename(#Play.Current.mvArtist) - #makefilename(#Play.Current.mvAlbum).png</texture> - return - Guns N' Roses - Live _!_@ Like a Suicide.png - File with the same name has a right to exist.
     
    Last edited:

    Users who are viewing this thread

    Top Bottom