Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Thread Closed 
Official moOde 8 support thread
(04-06-2022, 10:08 AM)charlesky Wrote: 'Performer' and 'Conductor' tags appear to be interfering with retrieval of 'Artist' or 'Album Artist' data.

I see there have been a few issues with music tags in the past and heartily agree with @TheOldPresbyope that this whole thing is a dumpster fire with no standards. But right now (release 8.0.2) it appears that any files that have a 'Performer' or 'Conductor' tag defined end up being dumped in the 'Unknown Artist'/'Unknown AlbumArtist' category in tag view. This occurs with all of the choices in the 'Tag view artist' field. 

My music is stored on a USB drive connected directly to the Pi. If I edit the file tags (using MP3tag 3.14 on a PC), solely remove the 'Performer' or 'Conductor' tag and update the library then the album turns up correctly listed under the relevant artist in tag view.

I should note that this is happening on AAC files (with the .m4a extension) that have been tagged using MP3Tag.

Ok, I found the place in the code that is causing this and fixed it. 

/var/www/inc/playerlib.php controls the way the library handles tags. If a file doesn't have the 'AlbumArtist' tag defined then it tries to construct this by building an array containing the contents of the 'Artist', 'Performer' and 'Conductor' tags (if they are present). This works fine. Unfortunately, it looks like a trap was built in at some point to catch cases in which a file has multiple 'Artist' tags defined - this is certainly undesirable, though not really fatal - and spit them out as 'Unknown AlbumArtist'. This gets tripped when it encounters the Artist/Performer/Conductor array that was accumulated earlier, which certainly looks like an unintended behaviour. 

The easiest way to fix this is simply to remove the trap. While multiple 'Artist' tags are a bad practice, music tags are such a wild west that it's not unknown, and probably not a good reason to disrupt the way the library is displayed. 

The problem occurs at line 577 in playerlib.php:
Code:
'album_artist' => ($flatData['AlbumArtist'] ? $flatData['AlbumArtist'] : (count($flatData['Artist']) == 1 ? $flatData['Artist'][0] : 'Unknown AlbumArtist')),
I changed this to:
Code:
'album_artist' => ($flatData['AlbumArtist'] ? $flatData['AlbumArtist'] : ($flatData['Artist'][0] ? $flatData['Artist'][0] : 'Unknown AlbumArtist')),
in a freshly-flashed copy of moode and rebuilt the library. Everything now works fine, with no aberrant 'Unknown AlbumArtist' categories. A file will now only get assigned to this if none of 'Album Artist', 'Artist', 'Performer' or 'Conductor' are defined. Since there are no real standards when it comes to music tagging this allows the tag view display to be more flexible to handle different approaches.

If anyone else is bothered by this behaviour and wants to make such a change feel free to PM me, though it's a slightly tricky process doing it from a Windows PC and needs special tools.

[Edit] The same change needs to be made to line 772 since there's a separate function to handle UTF8 encoding.


Messages In This Thread
Official moOde 8 support thread - by Tim Curtis - 03-13-2022, 08:33 PM
RE: Official moOde 8 support thread - by carmol - 03-14-2022, 12:03 AM
RE: Official moOde 8 support thread - by carmol - 03-14-2022, 12:31 AM
RE: Official moOde 8 support thread - by carmol - 03-14-2022, 12:50 AM
RE: Official moOde 8 support thread - by carmol - 03-14-2022, 12:40 AM
RE: Official moOde 8 support thread - by swinokur - 03-14-2022, 02:05 AM
RE: Official moOde 8 support thread - by swinokur - 03-14-2022, 03:55 AM
RE: Official moOde 8 support thread - by Falco - 03-14-2022, 09:40 AM
RE: Official moOde 8 support thread - by jonners - 03-14-2022, 10:38 AM
RE: Official moOde 8 support thread - by jonners - 03-14-2022, 11:05 AM
RE: Official moOde 8 support thread - by jonners - 03-14-2022, 11:52 AM
RE: Official moOde 8 support thread - by petfr - 03-14-2022, 11:55 AM
RE: Official moOde 8 support thread - by petfr - 03-14-2022, 12:49 PM
RE: Official moOde 8 support thread - by Lukesan - 03-15-2022, 04:58 PM
RE: Official moOde 8 support thread - by petfr - 03-15-2022, 05:16 PM
RE: Official moOde 8 support thread - by petfr - 03-15-2022, 12:37 PM
RE: Official moOde 8 support thread - by Mr.R0b0t - 03-14-2022, 12:56 PM
RE: Official moOde 8 support thread - by Macdelf - 03-14-2022, 01:44 PM
RE: Official moOde 8 support thread - by Macdelf - 03-14-2022, 02:43 PM
RE: Official moOde 8 support thread - by Macdelf - 03-14-2022, 03:30 PM
RE: Official moOde 8 support thread - by Macdelf - 03-14-2022, 03:38 PM
RE: Official moOde 8 support thread - by Macdelf - 03-14-2022, 03:00 PM
RE: Official moOde 8 support thread - by Sunfish - 03-14-2022, 01:50 PM
RE: Official moOde 8 support thread - by DRONE7 - 03-14-2022, 08:21 PM
RE: Official moOde 8 support thread - by Sunfish - 03-15-2022, 09:51 AM
RE: Official moOde 8 support thread - by DRONE7 - 03-15-2022, 07:45 PM
RE: Official moOde 8 support thread - by Sunfish - 03-15-2022, 08:19 PM
RE: Official moOde 8 support thread - by jonners - 03-14-2022, 03:45 PM
RE: Official moOde 8 support thread - by jonners - 03-14-2022, 10:31 PM
RE: Official moOde 8 support thread - by Mr.R0b0t - 03-14-2022, 06:10 PM
RE: Official moOde 8 support thread - by Mr.R0b0t - 03-15-2022, 09:25 AM
RE: Official moOde 8 support thread - by Mr.R0b0t - 03-14-2022, 06:43 PM
RE: Official moOde 8 support thread - by carmol - 03-14-2022, 08:50 PM
RE: Official moOde 8 support thread - by carmol - 03-14-2022, 11:08 PM
RE: Official moOde 8 support thread - by carmol - 03-16-2022, 02:03 PM
RE: Official moOde 8 support thread - by swizzle - 03-16-2022, 11:02 PM
RE: Official moOde 8 support thread - by DRONE7 - 03-14-2022, 10:47 PM
RE: Official moOde 8 support thread - by jonners - 03-15-2022, 09:09 AM
RE: Official moOde 8 support thread - by pimvd - 03-15-2022, 09:55 AM
RE: Official moOde 8 support thread - by pimvd - 03-15-2022, 01:12 PM
RE: Official moOde 8 support thread - by Mr.R0b0t - 03-15-2022, 04:12 PM
RE: Official moOde 8 support thread - by Mr.R0b0t - 03-15-2022, 04:27 PM
RE: Official moOde 8 support thread - by Sunfish - 03-15-2022, 08:20 PM
RE: Official moOde 8 support thread - by Sunfish - 03-16-2022, 08:25 PM
RE: Official moOde 8 support thread - by Falco - 03-16-2022, 08:41 AM
RE: Official moOde 8 support thread - by Falco - 03-16-2022, 09:07 AM
RE: Official moOde 8 support thread - by carmol - 03-16-2022, 04:39 PM
RE: Official moOde 8 support thread - by silver12 - 03-16-2022, 06:12 PM
RE: Official moOde 8 support thread - by DRONE7 - 03-16-2022, 06:20 PM
RE: Official moOde 8 support thread - by DRONE7 - 03-16-2022, 09:45 PM
RE: Official moOde 8 support thread - by Sunfish - 03-17-2022, 09:01 AM
RE: Official moOde 8 support thread - by Frank79 - 03-23-2022, 05:59 PM
RE: Official moOde 8 support thread - by UpsiUps - 03-17-2022, 11:22 AM
RE: Official moOde 8 support thread - by UpsiUps - 03-17-2022, 02:46 PM
RE: Official moOde 8 support thread - by bitlab - 03-17-2022, 09:43 PM
RE: Official moOde 8 support thread - by UpsiUps - 03-18-2022, 08:20 AM
RE: Official moOde 8 support thread - by UpsiUps - 03-18-2022, 08:15 AM
RE: Official moOde 8 support thread - by bitlab - 03-18-2022, 08:52 AM
RE: Official moOde 8 support thread - by Mr.R0b0t - 03-17-2022, 03:40 PM
RE: Official moOde 8 support thread - by Mr.R0b0t - 03-19-2022, 07:34 PM
RE: Official moOde 8 support thread - by Malefoda - 03-18-2022, 09:25 PM
RE: Official moOde 8 support thread - by zOr7gA8 - 03-20-2022, 09:09 AM
Composer begin with A, An, the etc - by El bubar - 03-20-2022, 09:17 AM
DSD blues - by cofot28 - 03-20-2022, 12:05 PM
RE: DSD blues - by MikeyFresh - 03-20-2022, 02:16 PM
Overlay issue? - by Marrahm - 03-20-2022, 10:19 PM
RE: Overlay issue? - by Tim Curtis - 03-20-2022, 10:45 PM
RE: Overlay issue? - by JanneP - 03-21-2022, 05:33 AM
RE: Overlay issue? - by Marrahm - 03-21-2022, 02:37 PM
RE: Overlay issue? - by Tim Curtis - 03-21-2022, 02:41 PM
RE: Overlay issue? - by JanneP - 03-21-2022, 03:52 PM
RE: Overlay issue? - by Tim Curtis - 03-21-2022, 06:15 PM
RE: Overlay issue? - by Marrahm - 03-21-2022, 12:36 PM
RE: Official moOde 8 support thread - by hui13 - 03-21-2022, 01:47 AM
RE: Official moOde 8 support thread - by s_mury - 03-21-2022, 11:13 AM
RE: Official moOde 8 support thread - by s_mury - 03-22-2022, 10:00 PM
RE: Official moOde 8 support thread - by Frank79 - 03-22-2022, 05:07 PM
RE: Official moOde 8 support thread - by Frank79 - 03-22-2022, 07:33 PM
RE: Official moOde 8 support thread - by s_mury - 03-23-2022, 07:29 AM
RE: Official moOde 8 support thread - by maartin - 03-23-2022, 02:48 PM
RE: Official moOde 8 support thread - by s_mury - 03-23-2022, 03:36 PM
RE: Official moOde 8 support thread - by maartin - 03-23-2022, 04:32 PM
RE: Official moOde 8 support thread - by DRONE7 - 03-23-2022, 06:05 PM
RE: Official moOde 8 support thread - by s_mury - 03-23-2022, 06:43 PM
RE: Official moOde 8 support thread - by maartin - 03-24-2022, 06:59 AM
RE: Official moOde 8 support thread - by DRONE7 - 03-23-2022, 06:23 AM
RE: Official moOde 8 support thread - by DRONE7 - 03-23-2022, 09:50 PM
RE: Official moOde 8 support thread - by Marrahm - 03-24-2022, 03:23 AM
RE: Official moOde 8 support thread - by patrik96 - 03-25-2022, 07:03 AM
RE: Official moOde 8 support thread - by patrik96 - 03-25-2022, 01:36 PM
RE: Official moOde 8 support thread - by patrik96 - 03-26-2022, 07:40 AM
RE: Official moOde 8 support thread - by drfous - 03-26-2022, 04:49 PM
RE: Official moOde 8 support thread - by fdealexa - 03-27-2022, 08:29 PM
RE: Official moOde 8 support thread - by fdealexa - 03-28-2022, 05:46 PM
RE: Official moOde 8 support thread - by fdealexa - 04-02-2022, 03:54 PM
RE: Official moOde 8 support thread - by Pbnmjk - 03-29-2022, 03:48 AM
RE: Official moOde 8 support thread - by Pbnmjk - 03-29-2022, 10:14 PM
RE: Official moOde 8 support thread - by Pbnmjk - 03-29-2022, 11:13 PM
RE: Official moOde 8 support thread - by Pbnmjk - 03-30-2022, 12:56 AM
RE: Official moOde 8 support thread - by Pbnmjk - 03-30-2022, 08:45 PM
RE: Official moOde 8 support thread - by abigor - 03-30-2022, 04:18 PM
RE: Official moOde 8 support thread - by abigor - 03-30-2022, 05:46 PM
RE: Official moOde 8 support thread - by OldNick - 04-01-2022, 11:43 PM
RE: Official moOde 8 support thread - by Frank79 - 04-02-2022, 07:42 AM
RE: Official moOde 8 support thread - by Frank79 - 04-04-2022, 01:34 PM
RE: Official moOde 8 support thread - by rmh1922 - 04-03-2022, 04:03 PM
RE: Official moOde 8 support thread - by dad33 - 04-04-2022, 06:18 AM
RE: Official moOde 8 support thread - by dad33 - 04-04-2022, 02:50 PM
RE: Official moOde 8 support thread - by dad33 - 04-05-2022, 08:02 AM
RE: Official moOde 8 support thread - by Mr.R0b0t - 04-04-2022, 07:09 PM
RE: Official moOde 8 support thread - by jonners - 04-04-2022, 08:52 PM
RE: Official moOde 8 support thread - by charlesky - 04-07-2022, 11:01 AM
RE: Official moOde 8 support thread - by Marrahm - 04-15-2022, 06:30 PM
RE: Official moOde 8 support thread - by Jedrek - 04-21-2022, 05:17 PM
RE: Official moOde 8 support thread - by Busybox - 04-22-2022, 06:10 PM
RE: Official moOde 8 support thread - by PERRLA - 04-23-2022, 05:06 AM
RE: Official moOde 8 support thread - by DRONE7 - 04-23-2022, 08:36 AM
RE: Official moOde 8 support thread - by PERRLA - 04-23-2022, 01:08 PM
RE: Official moOde 8 support thread - by fdealexa - 04-23-2022, 11:28 PM
RE: Official moOde 8 support thread - by Jedrek - 04-23-2022, 06:48 PM
RE: Official moOde 8 support thread - by Busybox - 05-15-2022, 09:43 PM
RE: Official moOde 8 support thread - by Busybox - 05-17-2022, 12:35 AM
RE: Official moOde 8 support thread - by Pbnmjk - 06-19-2022, 04:47 AM
RE: Official moOde 8 support thread - by Pbnmjk - 06-20-2022, 11:10 PM
RE: Official moOde 8 support thread - by arnes - 06-25-2022, 01:29 AM
RE: Official moOde 8 support thread - by Pbnmjk - 06-25-2022, 02:00 AM
RE: Official moOde 8 support thread - by Pbnmjk - 06-26-2022, 05:45 AM
No Virtual Keyboard - by Macdelf - 06-28-2022, 06:16 PM
RE: No Virtual Keyboard - by TheOldPresbyope - 06-28-2022, 07:16 PM
RE: No Virtual Keyboard - by Macdelf - 06-29-2022, 12:11 AM
RE: No Virtual Keyboard - by Macdelf - 06-29-2022, 03:46 PM
RE: No Virtual Keyboard - by Nutul - 06-29-2022, 04:20 PM
RE: Official moOde 8 support thread - by maartin - 06-29-2022, 10:08 AM
RE: Official moOde 8 support thread - by maartin - 06-29-2022, 12:02 PM
RE: Official moOde 8 support thread - by maartin - 06-29-2022, 03:50 PM
RE: Official moOde 8 support thread - by maartin - 06-30-2022, 01:18 PM
RE: Official moOde 8 support thread - by pimvd - 07-02-2022, 09:02 PM
RE: Official moOde 8 support thread - by Mr.R0b0t - 07-13-2022, 03:02 PM
RE: Official moOde 8 support thread - by Mr.R0b0t - 07-14-2022, 03:00 PM
RE: Official moOde 8 support thread - by ciro73 - 07-14-2022, 08:52 PM
RE: Official moOde 8 support thread - by ciro73 - 07-15-2022, 01:57 PM
RE: Official moOde 8 support thread - by ciro73 - 07-15-2022, 05:56 AM
RE: Official moOde 8 support thread - by DRONE7 - 07-15-2022, 07:02 AM
RE: Official moOde 8 support thread - by ciro73 - 07-15-2022, 08:44 PM
RE: Official moOde 8 support thread - by Mr.R0b0t - 07-15-2022, 09:58 PM
RE: Official moOde 8 support thread - by Busybox - 07-19-2022, 04:31 AM
RE: Official moOde 8 support thread - by Busybox - 07-19-2022, 09:46 PM
Unable to edit playlists - by duke.g - 07-19-2022, 10:13 PM
RE: Official moOde 8 support thread - by duke.g - 07-22-2022, 09:49 PM
RE: Official moOde 8 support thread - by duke.g - 07-23-2022, 11:37 AM
RE: Official moOde 8 support thread - by duke.g - 07-23-2022, 12:36 PM
RE: Official moOde 8 support thread - by duke.g - 07-24-2022, 09:12 AM
RE: Official moOde 8 support thread - by duke.g - 07-24-2022, 09:24 AM
RE: Official moOde 8 support thread - by drfous - 07-24-2022, 05:32 PM
RE: Official moOde 8 support thread - by drfous - 07-24-2022, 06:39 PM
RE: Official moOde 8 support thread - by drfous - 07-24-2022, 08:24 PM
RE: Official moOde 8 support thread - by drfous - 07-25-2022, 05:24 PM
RE: Official moOde 8 support thread - by chaos333 - 09-12-2022, 01:51 PM
RE: Official moOde 8 support thread - by elf55 - 09-18-2022, 02:39 PM
RE: Official moOde 8 support thread - by DRONE7 - 09-19-2022, 09:24 AM
RE: Official moOde 8 support thread - by fdealexa - 09-19-2022, 10:35 PM
RE: Official moOde 8 support thread - by fdealexa - 09-19-2022, 11:09 PM
RE: Official moOde 8 support thread - by ycdtosa - 09-24-2022, 02:52 PM
8.1.2 does not update to 8.2.0 - by Sander - 09-25-2022, 08:58 AM
RE: Official moOde 8 support thread - by Sander - 09-25-2022, 01:16 PM
RE: Official moOde 8 support thread - by Marrahm - 09-09-2023, 04:58 PM
RE: Official moOde 8 support thread - by jenzd - 09-14-2023, 08:27 PM
RE: Official moOde 8 support thread - by Nutul - 01-16-2024, 07:40 PM
RE: Official moOde 8 support thread - by fdealexa - 01-17-2024, 12:11 AM
RE: Official moOde 8 support thread - by jenzd - 01-17-2024, 12:21 AM
RE: Official moOde 8 support thread - by Nutul - 01-17-2024, 12:47 PM
RE: Official moOde 8 support thread - by jenzd - 01-17-2024, 11:37 PM
RE: Official moOde 8 support thread - by Nutul - 01-28-2024, 12:50 AM
RE: Official moOde 8 support thread - by jenzd - 02-01-2024, 12:24 AM
RE: Official moOde 8 support thread - by Nutul - 01-24-2024, 02:43 AM
RE: Official moOde 8 support thread - by Nutul - 01-24-2024, 06:22 AM
RE: Official moOde 8 support thread - by neoresin - 01-31-2024, 07:49 PM
RE: Official moOde 8 support thread - by neoresin - 01-31-2024, 08:47 PM
RE: Official moOde 8 support thread - by neoresin - 01-31-2024, 09:10 PM
RE: Official moOde 8 support thread - by Nutul - 01-31-2024, 09:49 PM
RE: Official moOde 8 support thread - by Nutul - 01-31-2024, 10:52 PM
RE: Official moOde 8 support thread - by neoresin - 02-01-2024, 10:15 PM
RE: Official moOde 8 support thread - by Nutul - 02-01-2024, 10:55 PM
RE: Official moOde 8 support thread - by Nutul - 01-31-2024, 11:21 PM
RE: Upcoming moOde 8.2.0 release (Q3) - by Mattt - 09-17-2022, 11:30 PM
RE: Upcoming moOde 8.2.0 release (Q3) - by Mattt - 09-18-2022, 02:14 AM

Forum Jump: