INTERACT FORUM

More => Old Versions => Media Center 16 (Development Ended) => Topic started by: steviewonders on September 06, 2011, 01:59:30 pm

Title: How can i create a field to separate lossy and lossless formats?
Post by: steviewonders on September 06, 2011, 01:59:30 pm
Hi. I've looked at the options for creating a custom field but it's much too technical for me. How would i be able to create a field that separates lossy and lossless formats? My audio files are a mixture of flac, wav, wma and mp3 if that's of any relevance. Thanks for any help.
Title: Re: How can i create a field to separate lossy and lossless formats?
Post by: JimH on September 06, 2011, 02:02:14 pm
Welcome to the forum.  Just create a new field.  It will work for any filetype.
Title: Re: How can i create a field to separate lossy and lossless formats?
Post by: steviewonders on September 06, 2011, 02:06:06 pm
What details should i put in the options? I'm trying to get flac and wav grouped in the heading lossless and mp3 and wma under lossy.
Title: Re: How can i create a field to separate lossy and lossless formats?
Post by: MrC on September 06, 2011, 02:32:00 pm
Start simply; you don't need to create a new field, as you can use existing data.

Create a new expression column in a panes view.  Enter the following as the expression:

   If(Regex([File Type], /#^(flac|wav)$#/), Lossless, Lossy)

It looks for file types flac or wav, and outputs the label Lossless, otherwise it outputs the label Lossy.  Add more lossless types as necessary, each separated by the | character as above.

If you're not sure how to add a new column to a panes view, let us know...
Title: Re: How can i create a field to separate lossy and lossless formats?
Post by: steviewonders on September 06, 2011, 02:47:16 pm
Thank you very much!!!! My music library is now organised exactly how i want it.