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
Development
Improvement Suggestions
The function returns a string with no characters that are not allowed in filenames or directories.
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="ajs" data-source="post: 1101477" data-attributes="member: 68833"><p><strong>Started on:</strong> 2014-09-24</p><p><strong>last update:</strong> 2014-09-24</p><p></p><p><strong>Summary:</strong></p><p>Add function (<strong>#makefilename</strong>) 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.</p><p>This function is required for the normal display ClearArt / CDArt etc. for artists and albums.</p><p></p><p><strong>Area:</strong></p><p>Skin Expressions</p><p><strong></strong></p><p><strong><strong>Description:</strong></strong></p><p><strong></strong></p><p>For example:</p><p><strong>Was:</strong> <texture>#Play.Current.mvArtist - #Play.Current.mvAlbum.png</texture> - return - <span style="color: #0080ff">AC/DC - Back In Black.png</span> - <strong>But the file with the same name can not be.</strong></p><p><strong>Will be:</strong> <texture>#<strong>makefilename(</strong>#Play.Current.mvArtist) - #<strong>makefilename(</strong>#Play.Current.mvAlbum).png</texture> - return - <span style="color: #0080ff">AC_DC - Back In Black.png</span> - File with the same name has a right to exist.</p><p></p><p><strong>Was:</strong> <texture>#Play.Current.mvArtist - #Play.Current.mvAlbum.png</texture> - return - <span style="color: #0080ff">Guns N' Roses - Live?!*@ Like a Suicide.png</span> - <strong>But the file with the same name can not be.</strong></p><p><strong>Will be:</strong> <texture>#<strong>makefilename(</strong>#Play.Current.mvArtist) - #<strong>makefilename(</strong>#Play.Current.mvAlbum).png</texture> - return - <span style="color: #0080ff">Guns N' Roses - Live _!_@ Like a Suicide.png</span> - File with the same name has a right to exist.</p></blockquote><p></p>
[QUOTE="ajs, post: 1101477, member: 68833"] [B]Started on:[/B] 2014-09-24 [B]last update:[/B] 2014-09-24 [B]Summary:[/B] Add function ([B]#makefilename[/B]) 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. [B]Area:[/B] Skin Expressions [B] [B]Description:[/B] [B][/B][/B] For example: [B]Was:[/B] <texture>#Play.Current.mvArtist - #Play.Current.mvAlbum.png</texture> - return - [COLOR=#0080ff]AC/DC - Back In Black.png[/COLOR] - [B]But the file with the same name can not be. Will be:[/B] <texture>#[B]makefilename([/B]#Play.Current.mvArtist) - #[B]makefilename([/B]#Play.Current.mvAlbum).png</texture> - return - [COLOR=#0080ff]AC_DC - Back In Black.png[/COLOR] - File with the same name has a right to exist. [B]Was:[/B] <texture>#Play.Current.mvArtist - #Play.Current.mvAlbum.png</texture> - return - [COLOR=#0080ff]Guns N' Roses - Live?!*@ Like a Suicide.png[/COLOR] - [B]But the file with the same name can not be. Will be:[/B] <texture>#[B]makefilename([/B]#Play.Current.mvArtist) - #[B]makefilename([/B]#Play.Current.mvAlbum).png</texture> - return - [COLOR=#0080ff]Guns N' Roses - Live _!_@ Like a Suicide.png[/COLOR] - File with the same name has a right to exist. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
Improvement Suggestions
The function returns a string with no characters that are not allowed in filenames or directories.
Contact us
RSS
Top
Bottom