INTERACT FORUM

Please login or register.

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

Author Topic: Smartlist rules based on playlists are nuked  (Read 1324 times)

Antoine.

  • World Citizen
  • ***
  • Posts: 180
Smartlist rules based on playlists are nuked
« on: December 01, 2019, 10:19:49 am »

I have a lot of smartlist whose rules are based on whether or not a file belongs to a given other smartlist.

I don't why but they constantly disappear now! Leaving only "Custom" & "Playlist ID=" instead of the specified playlist.
Logged
Server: Windows 10 Pro (64bits) & MC26 - Caselabs Mercury S5 - Corsair HX1000i - ASRock Z97M OC Formula - Intel i7-4790t - 16Gb - Crucial M500 960GB - MSI GTX 960 Gaming 4G - RAID5 : WD Red 4TB (6x) + Adaptec 6805 - JBOD : WG Green 4TB (4x) - Hauppauge WinTV-HVR-2200 - Kef Egg.

HTPC: Windows 10 Pro (64bits) & MC25 - Streacom F12C  - Streacom FLIRC - Corsair HX750i - ASRock Z97 Extreme4 - Intel i5-4690s - 16Gb - Crucial M500 480GB - MSI GTX 960 Gaming 2G - Asus Essence STX II.

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Smartlist rules based on playlists are nuked
« Reply #1 on: December 01, 2019, 11:28:02 am »

This happens with server/client MC's.... although acknowledged, a fix does not look likely...

I don't think any of those playlist id things are going to magically be fixed, the playlist ids are not synchronized between clients - just the playlists themself are.

There is however, a neat way around the issue....

Morning glynor,

It was one of the first shortcuts I learned back in the heady MC v9.0 days.

I have a couple of playlists at "Playlists\Viewscheme Groups\Duplicates\" called "Hidden" and "Recycle". These are a crucial part of my whole library, as dicussed somewhere else many moons ago. I use them for duplicate management in a view scheme hinged around a pane that displays the playlist group. By selecting files, I can then use pane tagging to add or remove tracks from these play lists.

The idea here is that during random playback, I don't want duplicates playing. So, all the dupes (kept for whole album integrity) except the best or chosen one, go in the "Hidden" playlist. Files marked for deletion go in the recycle playlist. I don't want those in the random playback lists either. As these two are so crucial to how my library works, having the server blow up the playlist exclusions ever so regularly is not so good. These are used everywhere!

If, instead of using the wizard to glean the playlist ID's, I simply enter -p=hidden,recycle it enters those as a "Custom" rule in the wizard, and so far, these have never gotten borked.

There is a caveat though...

Imagine I had a playlist on the playlist root called "Hidden Gems" that had stuff I always wanted to hear...
the -p=hidden,recycle rule would unfortunately exclude that playlist too as it contains 'Hidden'.

The shortcut does appear to match anywhere in the playlist path though, so if I used -p=duplicates\hidden then the "Hidden Gems" list would not be excluded.

-marko

Hopefully, that helps a bit.

Antoine.

  • World Citizen
  • ***
  • Posts: 180
Re: Smartlist rules based on playlists are nuked
« Reply #2 on: December 01, 2019, 12:56:25 pm »

Thank you for your answer!

The developpers should consider either fixing this Playlist rule in further updates or removing it altoghether. Keeping a broken feature is just frustrating.

Playlist rule is really usefull if you have one big underlying rule (for example a long list of given artists) to a lot of smartlists: when this big list must be changed, it only has to be changed in one place not in every derivated smartlists. Playlists & smartlists are really central to my JRiver experience, I'm really bummed out about this...
Logged
Server: Windows 10 Pro (64bits) & MC26 - Caselabs Mercury S5 - Corsair HX1000i - ASRock Z97M OC Formula - Intel i7-4790t - 16Gb - Crucial M500 960GB - MSI GTX 960 Gaming 4G - RAID5 : WD Red 4TB (6x) + Adaptec 6805 - JBOD : WG Green 4TB (4x) - Hauppauge WinTV-HVR-2200 - Kef Egg.

HTPC: Windows 10 Pro (64bits) & MC25 - Streacom F12C  - Streacom FLIRC - Corsair HX750i - ASRock Z97 Extreme4 - Intel i5-4690s - 16Gb - Crucial M500 480GB - MSI GTX 960 Gaming 2G - Asus Essence STX II.

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Smartlist rules based on playlists are nuked
« Reply #3 on: December 01, 2019, 01:43:17 pm »

I can't show you an example right now, but you replace the playlist rule with p="playlist name" or for  exclusion, -p="playlist name"

The rule will work, and never get corrupted.

Antoine.

  • World Citizen
  • ***
  • Posts: 180
Re: Smartlist rules based on playlists are nuked
« Reply #4 on: December 01, 2019, 01:57:46 pm »

Thanks! I finally got it working!

Is this whole thing of playlist rule not working related to playlists IDs?
Logged
Server: Windows 10 Pro (64bits) & MC26 - Caselabs Mercury S5 - Corsair HX1000i - ASRock Z97M OC Formula - Intel i7-4790t - 16Gb - Crucial M500 960GB - MSI GTX 960 Gaming 4G - RAID5 : WD Red 4TB (6x) + Adaptec 6805 - JBOD : WG Green 4TB (4x) - Hauppauge WinTV-HVR-2200 - Kef Egg.

HTPC: Windows 10 Pro (64bits) & MC25 - Streacom F12C  - Streacom FLIRC - Corsair HX750i - ASRock Z97 Extreme4 - Intel i5-4690s - 16Gb - Crucial M500 480GB - MSI GTX 960 Gaming 2G - Asus Essence STX II.

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9139
Re: Smartlist problem
« Reply #5 on: December 01, 2019, 11:39:16 pm »

Yes. When the client MC attempts to sync playlists back to the server, the playlistid values in the rules get corrupted.

Pleased to hear you're off and running now. Good stuff.

-marko.

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Smartlist problem
« Reply #6 on: December 02, 2019, 01:11:11 am »

There is an easy fix to this caveat though Marko;

There is a caveat though...

Imagine I had a playlist on the playlist root called "Hidden Gems" that had stuff I always wanted to hear...
the -p=hidden,recycle rule would unfortunately exclude that playlist too as it contains 'Hidden'.

The shortcut does appear to match anywhere in the playlist path though, so if I used -p=duplicates\hidden then the "Hidden Gems" list would not be excluded.

-marko

Just use the rule:

-p=[Hidden],[Recycle]

Which excludes the files if it belongs to a Playlist that exactly matches "Hidden" or "Recycle". The [] meaning the beginning and ending of the characters to match, so that anything that only includes "Hidden" or "Recycle" will not match.

I did a quick test using your example "Hidden", "Recycle", and "Hidden Gems" Playlists, in a Smartlist which included files based on them being in a Playlist called "Enigma" that I manually created, and that seems to work just fine. A file in the Smartlist "Hidden Gems" is not excluded, while files in the "Hidden" and "Recycle" Playlists were excluded.

Of course, the above rule can only be added using a Custom rule as you did or using the "Import/Export" button to manually code the rule.

I didn't test with the "Playlist Path" used for Grouped Playlists such as duplicates\hidden though... Wait, I just did. I put all my test Playlists and the Smartlist in a Playlist Group called "Duplicates", and the following rule worked:

-p=[Duplicates\Hidden],[Duplicates\Recycle]
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

Antoine.

  • World Citizen
  • ***
  • Posts: 180
Re: Smartlist problem
« Reply #7 on: December 02, 2019, 05:48:18 am »

I have a question about the difference between [ and " when writing a custom rule for playlist:

p="playlist" : retains all the playlists whose name contain the word playlist?

p=[playlist] : retains the playlist whose exact name is playlist?

Also, what is the point of specifying the playlist path (regarding groups)? Can 2 playlists have the same name in 2 separate groups?
Logged
Server: Windows 10 Pro (64bits) & MC26 - Caselabs Mercury S5 - Corsair HX1000i - ASRock Z97M OC Formula - Intel i7-4790t - 16Gb - Crucial M500 960GB - MSI GTX 960 Gaming 4G - RAID5 : WD Red 4TB (6x) + Adaptec 6805 - JBOD : WG Green 4TB (4x) - Hauppauge WinTV-HVR-2200 - Kef Egg.

HTPC: Windows 10 Pro (64bits) & MC25 - Streacom F12C  - Streacom FLIRC - Corsair HX750i - ASRock Z97 Extreme4 - Intel i5-4690s - 16Gb - Crucial M500 480GB - MSI GTX 960 Gaming 2G - Asus Essence STX II.

RoderickGI

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8186
Re: Smartlist problem
« Reply #8 on: December 02, 2019, 05:10:23 pm »

I have a question about the difference between [ and " when writing a custom rule for playlist:

p="playlist" : retains all the playlists whose name contain the word playlist?

p=[playlist] : retains the playlist whose exact name is playlist?

Correct. Well, actually;

p="Happy" : retains all the files which belong to a Playlist whose name contains the word Happy.
p=[Happy] : retains all the files which belong to a Playlist whose exact name is Happy.

This is part of the MC Search Language, and in explained in the Quoting and Anchoring
That is different to the way the [] brackets are used in the Expression Language, where [Name] actually means field(Name), for example.



Also, what is the point of specifying the playlist path (regarding groups)? Can 2 playlists have the same name in 2 separate groups?

I have no idea. Try it!... Actually I don't think two Playlists can have the same name, as only the name is stored against the file. However, the search I wrote above requires the path once the Playlists are grouped. I tried it without the "Duplicates\" component and it didn't work.

Just one of the idiosyncrasies of the MC Search Language, and Playlists structuring, I guess.
Logged
What specific version of MC you are running:MC27.0.27 @ Oct 27, 2020 and updating regularly Jim!                        MC Release Notes: https://wiki.jriver.com/index.php/Release_Notes
What OS(s) and Version you are running:     Windows 10 Pro 64bit Version 2004 (OS Build 19041.572).
The JRMark score of the PC with an issue:    JRMark (version 26.0.52 64 bit): 3419
Important relevant info about your environment:     
  Using the HTPC as a MC Server & a Workstation as a MC Client plus some DLNA clients.
  Running JRiver for Android, JRemote2, Gizmo, & MO 4Media on a Sony Xperia XZ Premium Android 9.
  Playing video out to a Sony 65" TV connected via HDMI, playing digital audio out via motherboard sound card, PCIe TV tuner

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Smartlist rules based on playlists are nuked
« Reply #9 on: December 04, 2019, 09:15:02 pm »

Playlists can absolutely have the same name, assuming they’re in different playlist groups. The “full name” reported back by the API though includes the full path of the playlist.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/
Pages: [1]   Go Up