I was about to say...
Assuming this is what is used in the default web UI, this does not work. I created an mp3 with artist="a, b;c" - so 2 artists "a, b" and "c". The Default web UI shows "a, b, c" in now-playing/queue, but has hover/underline for "a" and "b" but not "c" - thinking there are 2 artists "a" and "b"
...which is true, but I also noticed the queue has underline for "a, b" and "c". So, queue splits correctly, now-playing does not.
Results 11 to 20 of 43
-
2021-01-11, 14:04 #11
- Join Date
- Mar 2017
- Posts
- 2,592
Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.
-
2021-01-11, 14:08 #12
- Join Date
- Mar 2017
- Posts
- 2,592
Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.
-
2021-01-11, 14:08 #13
- Join Date
- Feb 2011
- Location
- Cheshire, UK
- Posts
- 5,417
VB2.4 storage QNAP TS419p (NFS)
Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
Dining Room SB Boom
Kitchen UE Radio (upgraded to SB Radio)
Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
Everything controlled by iPeng & Material on iOS
-
2021-01-11, 14:10 #14
- Join Date
- Feb 2011
- Location
- Cheshire, UK
- Posts
- 5,417
Sorry to bring up a can of worms gents
VB2.4 storage QNAP TS419p (NFS)
Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
Dining Room SB Boom
Kitchen UE Radio (upgraded to SB Radio)
Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
Everything controlled by iPeng & Material on iOS
-
2021-01-11, 14:17 #15
- Join Date
- Mar 2017
- Posts
- 2,592
For what? Only the browse by albums allows showing single or multiple album-artists. The status message (for now-playing and queue) always returns the comma-separated list. So, I could only add an option to show all album-artists in browse. I cannot add an option to show first artist, composer, etc, in the queue/now-playing. And I'm not sure there are many who'd have multiple album-artists.
(Just noticed Material's hover-links in the queue only work for single artist, composer, etc. - which I guess makes sense due to the lack of splitting)Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.
-
2021-01-11, 14:29 #16
Artist & AlbumArtist - multi values and JSON
> mherger wrote:
>> /(?<!\s),(?!\s)/
>
> I was about to say...
Seems to be working as expected for me:
$ perl -MData:umper -e 'print Dumper(split(/(?<!\s),(?!\s)/, "a, b,c"))'
$VAR1 = 'a, b';
$VAR2 = 'c';
> Assuming this is what is used in the default web UI, this does not work.
> I created an mp3 with artist="a, b;c" - so 2 artists "a, b" and "c". The
> Default web UI shows "a, b, c" in now-playing/queue, but has
> hover/underline for "a" and "b" but not "c" - thinking there are 2
> artists "a" and "b"
I admittedly don't have any multi-artist albums where one artist had a
comma in its name. I'm not saying its working correctly in all possible
cases. But quite obviously it's good enough, as this code hasn't caused
any complaints in half a decade.
--
Michael
-
2021-01-11, 14:35 #17
- Join Date
- Feb 2011
- Location
- Cheshire, UK
- Posts
- 5,417
Why would the json call for browsing albums specifically allow for single or multiple album artists if it wasn’t the intention to allow multi-tagging at album level?
There is a good reason to multi tag album artists since you started Material. If value 1 is your display preference then multi tagging at album artist level gives you a) the correct display when browsing and b) the multiple indexing.
Multi value tagging at Track artist level gives you the indexing but the display in the queue and now playing is illogical (forgetting any surplus comma issue).
My queue as I type includes 2 tracks by John Mayall - separate screenshot follows
The first is from an album multi value tagged at album artist level. The second is from a compilation tagged with the same 3 vales at track artist levelVB2.4 storage QNAP TS419p (NFS)
Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
Dining Room SB Boom
Kitchen UE Radio (upgraded to SB Radio)
Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
Everything controlled by iPeng & Material on iOS
-
2021-01-11, 14:38 #18
- Join Date
- Feb 2011
- Location
- Cheshire, UK
- Posts
- 5,417
Sent from my iPhone using TapatalkVB2.4 storage QNAP TS419p (NFS)
Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
Dining Room SB Boom
Kitchen UE Radio (upgraded to SB Radio)
Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
Everything controlled by iPeng & Material on iOS
-
2021-01-11, 14:46 #19
- Join Date
- Feb 2011
- Location
- Cheshire, UK
- Posts
- 5,417
VB2.4 storage QNAP TS419p (NFS)
Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
Office Joggler & Pi3 -> Denon RCD N8 -> Celestion F10s
Dining Room SB Boom
Kitchen UE Radio (upgraded to SB Radio)
Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
Guest Room Joggler > Topping Amp -> Wharfedale Modus Cubes
Everything controlled by iPeng & Material on iOS
-
2021-01-12, 05:30 #20
- Join Date
- Mar 2017
- Posts
- 2,592
Why would I know? I did not design the API, but if you look at the API docs (http:// SERVER:9000/Default/html/docs/cli-api.html) you will see that the "albums" command supports "a" and "aa" in "tags" - allowing to show one or all.
That display is from LMS. As it uses a comma-separated string I cannot effectively split. (And, contrary to what Michael said, they are "<comma><space>" separated) As stated, if an artist has a comma ( "Earth, Wind, and Fire") it will break. If LMS used an array of strings then this wouild be a non-issue.Material debug: 1. Launch via http: //SERVER:9000/material/?debug=json (Use http: //SERVER:9000/material/?debug=json,cometd to also see update messages, e.g. play queue) 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here.