Difference between revisions of "Creating Advanced Media Views Using the Expand Search Modifier"

From JRiverWiki
Jump to: navigation, search
(Background)
Line 1: Line 1:
 +
{{incomplete}}
 +
 
Media Center 20 includes a new Search Language modifier, ~expand, which can be used to create some clever Media Views that filter your media in ways that were previously difficult or impossible to accomplish. This tutorial will show how to use this new feature to craft a few Media Views that are useful, and which demonstrate how to use it to expand what you can do with Media Center.
 
Media Center 20 includes a new Search Language modifier, ~expand, which can be used to create some clever Media Views that filter your media in ways that were previously difficult or impossible to accomplish. This tutorial will show how to use this new feature to craft a few Media Views that are useful, and which demonstrate how to use it to expand what you can do with Media Center.
  

Revision as of 17:49, 14 June 2015

This article is a incomplete. It is missing detail about critical functions, or contains a number of red links. You can help the JRiver Wiki by expanding it.

Media Center 20 includes a new Search Language modifier, ~expand, which can be used to create some clever Media Views that filter your media in ways that were previously difficult or impossible to accomplish. This tutorial will show how to use this new feature to craft a few Media Views that are useful, and which demonstrate how to use it to expand what you can do with Media Center.

Please Note: The ~expand modifier was added in MC 20.0.106 and you must have this version or later to use this tutorial.

Background

Media Center's Library and Search Language operates on a per-file basis. When you issue a search, it evaluates every file in your Library individually, and deciding whether to include or exclude the file from the search results. You cannot evaluate, however, a Library Fields as a unit (so you can't check an entire [Series], [Album], or [Genre] and do something based on how many files it contains, or similar tasks). This makes it difficult to do things like: include all files from a [Series] if any one of those files meets X criteria.

There are ways to work around these issues using complex logic including Global Variables, but these can be fragile and complex to implement. The Expand modifier can be used to work around many of these limits without resorting to Global Variables and their associated pitfalls.

Basics

Examples