User:Glynor: Difference between revisions

From wiki.jriver.com
Jump to navigation Jump to search
 
(32 intermediate revisions by the same user not shown)
Line 7: Line 7:
Build the [[Troubleshooting Solutions]] page.
Build the [[Troubleshooting Solutions]] page.


== Saved Threads ==

[https://yabb.jriver.com/interact/index.php/topic,39695.0.html Liberace Rubber Chicken Build]


== Span Styles ==
== Span Styles ==
Line 42: Line 45:
* http://wiki.jriver.com/index.php/Remotes
* http://wiki.jriver.com/index.php/Remotes


== Functions ==
== Function Description Test ==


{{Function Description Box
=== Function Description Test ===

{{function description box
| name=field
| name=field
| arguments=name, mode
| arguments=name, mode
| description=
| description=The [[#Field|Field()]] function returns the value stored in field <i>name</i>.
The [[#Field|Field()]] function returns the value stored in field <i>name</i>.
The format of return is selected by <i>mode</i>.
The format of return is selected by <i>mode</i>.


{{argument table
Available <i>mode</i> values:
| name=mode
<div style="margin-left: 20pt;"><table style="border-spacing:0px; border-collapse:collapse; background: #f9f9f9">
| contents=
<tr><td style="text-align:left; padding-right:20pt"><b>0</b></td><td>Raw, unformatted data</td></tr>
{{argument table row|0|Raw, unformatted data}}
<tr><td style="text-align:left; padding-right:20pt"><b>1</b></td><td>Formatted data</td></tr>
{{argument table row|1|Formatted data}}
</table></div>

Argument <i>mode</i> is optional (defaults to 1).
| examples='''{{monospace|field(album)}}'''
: {{Returns the formatted value of field <i>name</i> <span style="font-family: monospace,monospace; font-size:1em;">album</span>. Note that this is equivalent to <span style="font-family: monospace,monospace; font-size:1em;">[album]</span>.
<span style="font-family: monospace,monospace; font-size:1em;"><b><nowiki>field(date, 0)</nowiki></b></span>
<p style="margin-left:20pt;">Returns the raw, unformatted value stored in the <span style="font-family: monospace,monospace; font-size:1em;">date</span> field.
Note that this is equivalent to <span style="font-family: monospace,monospace; font-size:1em;">[date,0]</span>.</p>
}}
}}
{{argument optional|mode|1}}
| examples=
'''{{monospace|field(album)}}'''
: Returns the formatted value of field <i>name</i> {{monospace|album}}. Note that this is equivalent to {{Monospace|[album]}}.
'''{{monospace|field(date, 0)}}'''
: Returns the raw, unformatted value stored in the <span style="font-family: monospace,monospace; font-size:1em;">date</span> field. Note that this is equivalent to {{monospace|[date,0]}}.
}}

=== Function Description Preset ===

<pre>
{{subst:function description preset}}
</pre>

=== Argument Table Preset ===

<pre>
{{subst:argument table preset}}
</pre>

=== Function Index ===

==== [[Accessing and Storing Functions]] ====
* '''[[Accessing_and_Storing_Functions#Field|Field(&hellip;)]]''': Returns a field's value.
* '''[[Accessing_and_Storing_Functions#Load|Load(&hellip;)]]''': Outputs the value of a [[global variable]].
* '''[[Accessing_and_Storing_Functions#Note|Note(&hellip;)]]''': Retrieve note fields.
* '''[[Accessing_and_Storing_Functions#Save|Save(&hellip;)]]''': Saves a value to a [[global variable]].
* '''[[Accessing_and_Storing_Functions#SaveAdd|SaveAdd(&hellip;)]]''': Adds to a [[global variable]].
* '''[[Accessing_and_Storing_Functions#Tag|Tag(&hellip;)]]''': Returns a file's physical tag.

==== [[Conditional Functions]] ====
* '''[[Conditional Functions#If|If(&hellip;)]]''': Conditional ifelse evaluator.
* '''[[Conditional Functions#IfElse|IfElse(&hellip;)]]''': Conditional if-elseif evaluator.
* '''[[Conditional Functions#FirstNotEmpty|FirstNotEmpty(&hellip;)]]''': Returns the first non-empty argument.

==== [[Test and Comparison Functions]] ====
* '''[[Test and Comparison Functions#Compare|Compare(&hellip;)]]''': Compares two numbers.
* '''[[Test and Comparison Functions#IsEqual|IsEqual(&hellip;)]]''': Compares two values in one of nine specified modes
* '''[[Test and Comparison Functions#IsEmpty|IsEmpty(&hellip;)]]''': Tests a value for emptiness
* '''[[Test and Comparison Functions#IsRange|IsRange(&hellip;)]]''': Tests a value for inclusion within a given range
* '''[[Test and Comparison Functions#IsMissing|IsMissing(&hellip;)]]''': Tests to see if a file exists on the system
* '''[[Test and Comparison Functions#IsRemovable|IsRemovable(&hellip;)]]''': Tests to see if a file is stored on removable media
* '''[[Test and Comparison Functions#IsInPlayingNow|IsInPlayingNow(&hellip;)]]''': Tests to see if a file is in the Playing Now playlist
* '''[[Test and Comparison Functions#IsPlaying|IsPlaying(&hellip;)]]''': Tests to see if a file is in currently being played

==== [[Formatting Functions]] ====
* '''[[Formatting Functions#Delimit|Delimit(&hellip;)]]''': Outputs a value with head/tail strings when value is non-empty
* '''[[Formatting Functions#FormatBoolean|FormatBoolean(&hellip;)]]''': Formats a boolean (true / false) value in a specified manner
* '''[[Formatting Functions#FormatDuration|FormatDuration(&hellip;)]]''': Presents a duration of seconds in a reader friendly format
* '''[[Formatting Functions#FormatFileSize|FormatFileSize(&hellip;)]]''': Presents a number of bytes in a reader friendly format
* '''[[Formatting Functions#FormatNumber|FormatNumber(&hellip;)]]''': Formats and rounds a number to a specified number of decimal places
* '''[[Formatting Functions#FormatRange|FormatRange(&hellip;)]]''': Formats a value as a range
* '''[[Formatting Functions#Orientation|Orientation(&hellip;)]]''': Outputs the orientation of an image
* '''[[Formatting Functions#PadNumber|PadNumber(&hellip;)]]''': Adds leading zeros to any given number
* '''[[Formatting Functions#RatingStars|RatingStars(&hellip;)]]''': Outputs the value of Rating as a number of star characters
* '''[[Formatting Functions#Watched|Watched(&hellip;)]]''': Outputs a formatted video bookmark

==== [[String Manipulation Functions]] ====
* '''[[Clean()|Clean(&hellip;)]]''': Clean a string to be used for various operations
* '''[[FixCase()|FixCase(&hellip;)]]''': Changes the case of a given string
* '''[[FixSpacing()|FixSpacing(&hellip;)]]''': Intelligently splits adjacent camel-cased words
* '''[[Hexify()|Hexify(&hellip;)]]''': Hexifies a string to make it suitable for web usage
* '''[[Left()|Left(&hellip;)]]''': Retrieves a specified number of characters from the left of a string
* '''[[Length()|Length(&hellip;)]]''': Returns the number of characters in a string
* '''[[Mid()|Mid(&hellip;)]]''': Retrieves specified characters from a string
* '''[[Regex()|Regex(&hellip;)]]''': Regular expression pattern matching and capture
* '''[[RemoveCharacters()|RemoveCharacters(&hellip;)]]''': Removes a list of characters from a string
* '''[[RemoveLeft()|RemoveLeft(&hellip;)]]''': Trims characters from the beginning of a string
* '''[[RemoveRight()|RemoveRight(&hellip;)]]''': Trims characters from the end of a string
* '''[[Replace()|Replace(&hellip;)]]''': Replace or remove a string segment
* '''[[Right()|Right(&hellip;)]]''': Retrieves a specified number of characters from the right of a string
* '''[[Swap()|Swap(&hellip;)]]''': Takes Firstname Lastname and swaps to Lastname, Firstname.
* '''[[Unswap()|Unswap(&hellip;)]]''': Takes Lastname, Firstname and reverses it to Firstname Lastname.

==== [[List Manipulation Functions]] ====
* '''[[ListBuild()|ListBuild(&hellip;)]]''': Constructs a list from a series of items
* '''[[ListClean()|ListClean(&hellip;)]]''': Various list operations
* '''[[ListCombine()|ListCombine(&hellip;)]]''': Combines two delimited lists into a single delimited list
* '''[[ListCount()|ListCount(&hellip;)]]''': Returns the number of items in a list
* '''[[ListItem()|ListItem(&hellip;)]]''': Returns an item from a location in a list
* '''[[ListSort()|ListSort(&hellip;)]]''': Sort a list of values

==== [[Date and Time Functions]] ====
* '''[[ConvertDate()|ConvertDate(&hellip;)]]''': Converts a human-readable date to the internal format required for use in date fields
* '''[[FormatDate()|FormatDate(&hellip;)]]''': Formats a date value in a specified manner
* '''[[Now()|Now(&hellip;)]]''': Retrieve and display the system date

==== [[File Path and Identifier Functions]] ====
* '''[[FileDBLocation()|FileDBLocation(&hellip;)]]''': Identifies a file's databases
* '''[[FileFolder()|FileFolder(&hellip;)]]''': Returns the name of a file's parent
* '''[[FileKey()|FileKey(&hellip;)]]''': Returns a file's unique internal identifier
* '''[[FileName()|FileName(&hellip;)]]''': Returns a file's name component
* '''[[FilePath()|FilePath(&hellip;)]]''': Returns a file's path component
* '''[[FileVolume()|FileVolume(&hellip;)]]''': Returns a file's volume name component

==== [[Miscellaneous Functions]] ====
* '''[[AlbumArtist()|AlbumArtist(&hellip;)]]''': Returns a file's calculated album artist
* '''[[AlbumKey()|AlbumKey(&hellip;)]]''': Returns a unique album key for a file
* '''[[AlbumType()|AlbumType(&hellip;)]]''': Returns the album type for a file
* '''[[AudioAnalysisState()|AudioAnalysisState(&hellip;)]]''': Returns the state of audio analysis for a file
* '''[[Counter()|Counter(&hellip;)]]''': Counts upwards in specified increments
* '''[[CustomData()|CustomData(&hellip;)]]''': Returns internal data to the expression language
* '''[[Math()|Math(&hellip;)]]''': Evaluates a given mathematical formula
* '''[[Size()|Size(&hellip;)]]''': Returns a file's size in a format specific to the media type
* '''[[TrackNumber()|TrackNumber(&hellip;)]]''': Returns a file's track # value
* '''[[TVInfo()|TVInfo(&hellip;)]]''': Miscellaneous television and other pre-formatted information


== Scratch Pad ==
== Scratch Pad ==

Latest revision as of 17:53, 14 March 2021

This is my page on the Wiki. My real name is Ed, I live in Maine, and this is me:

Ed with the wind in his hair.


Start building the Media Center Troubleshooting Guide page. Build the Troubleshooting Solutions page.

Saved Threads

Liberace Rubber Chicken Build

Span Styles

Media Center Menus

Template:Color Text

Actually, I think Template:Menu Flow would be better for long term. Or something like that...

<span style="color:#8B4513">Tools > Options > Audio</span>

Tools > Options > Audio

  • Include all items starting from the top menu for consistency.

Tree Hierarchy

<span style="color:#006400">Playing Now > Playing from <Current Library's Name></span>

Playing Now > Playing from <Current Library's Name>

OS Menus

<span style="color:#007A62">Control Panel > Hardware and Sound > Sound</span>

Control Panel > Hardware and Sound > Sound

Fix These

Functions

Function Description Test

Description field(name, mode)

The Field() function returns the value stored in field name. The format of return is selected by mode.

Available mode values:

0Raw, unformatted data
1Formatted data
  • Argument mode is optional (defaults to 1).
Examples field(album)
Returns the formatted value of field name album. Note that this is equivalent to [album].

field(date, 0)

Returns the raw, unformatted value stored in the date field. Note that this is equivalent to [date,0].
(Back to top)   (Function index)

Function Description Preset

{{subst:function description preset}}

Argument Table Preset

{{subst:argument table preset}}

Function Index

Accessing and Storing Functions

Conditional Functions

Test and Comparison Functions

Formatting Functions

String Manipulation Functions

  • Clean(…): Clean a string to be used for various operations
  • FixCase(…): Changes the case of a given string
  • FixSpacing(…): Intelligently splits adjacent camel-cased words
  • Hexify(…): Hexifies a string to make it suitable for web usage
  • Left(…): Retrieves a specified number of characters from the left of a string
  • Length(…): Returns the number of characters in a string
  • Mid(…): Retrieves specified characters from a string
  • Regex(…): Regular expression pattern matching and capture
  • RemoveCharacters(…): Removes a list of characters from a string
  • RemoveLeft(…): Trims characters from the beginning of a string
  • RemoveRight(…): Trims characters from the end of a string
  • Replace(…): Replace or remove a string segment
  • Right(…): Retrieves a specified number of characters from the right of a string
  • Swap(…): Takes Firstname Lastname and swaps to Lastname, Firstname.
  • Unswap(…): Takes Lastname, Firstname and reverses it to Firstname Lastname.

List Manipulation Functions

Date and Time Functions

  • ConvertDate(…): Converts a human-readable date to the internal format required for use in date fields
  • FormatDate(…): Formats a date value in a specified manner
  • Now(…): Retrieve and display the system date

File Path and Identifier Functions

Miscellaneous Functions

Scratch Pad

20.0.64 (1/29/2015)

8. Changed: The automation call ProcessWebService(...) returns the response instead of just 0 or 1.

<XMLPH version="1.0">
<Item Name="UseDirectoryRule">1</Item>
<Item Name="Name">TV Shows</Item>
<Item Name="Replace Slash">1</Item>
<Item Name="FilenameRule">If(IsEmpty([Season],1),,s[Season])If(IsEmpty([Episode],1),e00,e[Episode]) - [Name]</Item>
<Item Name="BasePath">M:\</Item>
<Item Name="UseFilenameRule">1</Item>
<Item Name="Find"/>
<Item Name="Mode">0</Item>
<Item Name="UseFindReplace">0</Item>
<Item Name="Move All">0</Item>
<Item Name="DirectorySmartMultiArtistHandling">0</Item>
<Item Name="Replace"/>
<Item Name="DirectoryRule">[Media Type]\[Media Sub Type]\[Series]\[Season]\</Item>
</XMLPH>

Creating Advanced Media Views Using the Expand Search Modifier

Main Category Index