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

Discussion in 'Improvement Suggestions' started by ajs, September 24, 2014.

  1. ajs
    • Team MediaPortal

    ajs Development Group

    Joined:
    February 29, 2008
    Messages:
    8,700
    Likes Received:
    2,688
    Gender:
    Male
    Occupation:
    IT
    Location:
    Kyiv
    Ratings:
    +4,651 / 30
    Home Country:
    Ukraine Ukraine
    Show System Specs
    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: September 24, 2014
    • Agree Agree x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!