INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Smartlist problems with field names v. field labels?  (Read 843 times)

MusicHawk

  • Citizen of the Universe
  • *****
  • Posts: 796
Smartlist problems with field names v. field labels?
« on: November 22, 2007, 12:11:47 pm »

I'm tryng to create a smartlist to help weed out duplicates.

In the distant past of MC I've used this:

[Media Type]="audio" ~dup=[name],[artist] ~sort=[artist],[name],[bitrate]

Rule ~dup=[name],[artist] is documented in MC's wiki.

But in MC 12.0.372, when I enter this rule and click OK, the rule is immediately changed to

[Media Type]="audio" ~dup=[artist] ~sort=[artist],[name],[bitrate]

MC drops [name] as a ~dup parameter, which makes the smartlist useless for de-duping (I end up with 48,738 "dupes"!).

I've tried over and over but MC always makes this unfortunate change.

Is there something wrong with my rules, or is there a bug in MC?

ONE CLUE: If I create the rule using the fields list, "name" doesn't exist. In my MC it's been given custom label "Title". So I tried this rule:

[Media Type]=[Audio] ~dup=[title],[artist] ~sort=[artist],[name],[bitrate]

If I use [title] in the formula, it is not removed by MC, so apparently the removal is a validation against existing fields...or is it against existing titles?

However... while this rule is acceptable to MC, there's still no de-duping -- I again get 48.738 files selected.

MYSTERY: If MC is validating against existing fields and in my config MC requires that I use "title" instead "name" with ~dup, why doesn't it have a problem with "name" as a ~sort parameter? (I tried deleting the ~sort section but nothing changed except the sorting.)


Logged
Managing my media with JRiver since Media Jukebox 8 (maybe earlier), currently use Media Center for Audio/Music and Photos/Videos.
My career in media spans Radio, TV, Print, Photography, Music, Film, Online, Live, Advertising, as producer, director, writer, performer, editor, engineer, executive, owner. An exhausting but amazing ride.

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42052
  • Shoes gone again!
Re: smartlist dup function broken?
« Reply #1 on: November 23, 2007, 10:27:27 am »

Try using the smartlist wizard instead of typing by hand.

I just used the smartlist wizard and picked "Only duplicates of" then selected Artist, Album, Name.  The resulting list looked just like I'd expect.

Logged
Matt Ashland, JRiver Media Center

MusicHawk

  • Citizen of the Universe
  • *****
  • Posts: 796
Views bug using fieldname v. field label.
« Reply #2 on: November 23, 2007, 01:40:27 pm »

Thanks for the suggestion. But it doesn't duplicate my situation, where field Name has label Title -- which I believe is the problem (see below).

I just used the Smartlist wizard (which I presume means, select from the dialog lists rather than type in the rule formula?)...

I picked "Only duplicates of" then selected Artist, Title. (Name wasn't an available field)

The resulting list has more than 48 thousand files -- and they are clearly not dupes.

The resulting rule is [Media Type]=[Audio] ~dup=[Artist],[Title]

I believe the problem is MC gets confused by a Label applied to a library field. Years ago I set MC to display Title for library field Name (an ambiguous term that confused my users about what to put in the field). But in some dialogs Name is shown instead.

Thinking this a source of trouble, I switched the library field label back to Name. After restarting MC, ~dup works! The smartlist now has 8813 files. I guess I'll live with Name instead of Title.<g>

But all is not perfect.... I noticed that the smartlist still showed Title as the view column heading, and listed the titles/names of all the music files. As an experiment, I went into customize view and added column Name (from the field list) to see if it worked and had the same data as the Title column. It is now listed in Columns to Show, but it doesn't appear in the view. If I right-click the view and in the Columns list select Name, nothing happens. Does MC prevent showing the same data column twice?

Worse: If I unselect Title, it totally disappears, even if I then select Name. Remember, I restarted MC after removing the Title label -- but I can't get the Name column to show. (Yet using in in the ~dup formula is necessary to make that rule work so it's obviously an active field.)

And, in the view show columns selection list (right-click view column header), after I unclick Title and click Name, the Title column disappears, but the Name column does not appear -- there's simply no name/title in the view. Worse -- I can't get it back. Title is no longer listed as a column to show, but selecting Name doesn't show anything. The view seems to be trashed. Fortunately, I have a master view design that I can reapply. It contains column Title so it reappears.

Surely, something is amiss, but what?

SCARY THOUGHT: Do I have a problem after years of putting data in the field labeled Title that I presumed (and Library Manager showed) is actually field Name?

This naming confusion is similar to some confusing experiences I've had where smartlist rules sometimes need the fieldname, sometimes the field label, and in some rules MC fights this by accepting only one while actually needing the other, or MC requires label in some parts of a rule but fieldname in others. And the wizard contributes because it shows, say, label when it really requires fieldname for a particular rule parameter.


Minor note that stumped me for 30 seconds: I deleted the label of fieldname Name hoping this would revert its behavior to the default. But in MC I kept seeing Title, not Name, in smartlist wizard. So I closed and reopened MC but still saw Title. Then I realized that in the background, MC Server was running -- not affected by closing MC. So I closed server too, then restarted MC and now I see Name instead of title. Nothing wrong, just a small distraction from the process of doing a clean MC restart.

Logged
Managing my media with JRiver since Media Jukebox 8 (maybe earlier), currently use Media Center for Audio/Music and Photos/Videos.
My career in media spans Radio, TV, Print, Photography, Music, Film, Online, Live, Advertising, as producer, director, writer, performer, editor, engineer, executive, owner. An exhausting but amazing ride.

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20054
Re: smartlist dup function broken?
« Reply #3 on: November 23, 2007, 06:36:32 pm »

MusicHawk

I had a issue with this also and reported it in the bug thread some months ago, i thought at the time it was due to more than one field.

It may have something to do with the fields used.

I have not tested it lately however.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA
Pages: [1]   Go Up