Thank you for your donation!


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


Sort albums by year
#6
(05-09-2018, 05:24 PM)Tim Curtis Wrote: Hi Mario,

Its not been a common request but you could try modifying the code yourself.

/var/www/inc/playerlib.php


function genLibrary($flat) {

Add the date to the line of code below, then reboot, open Sources and RESET the Library cache, then open the Library.

$album = $flatData['Album'] ? $flatData['Date'] . '-' . $flatData['Album'] : 'Unknown';

-Tim

Tim, thank you soooo much, this works great! I am in heaven using moOde now Big Grin

Very tiny change to :
$album = $flatData['Album'] ? $flatData['Date'] . ' - ' . $flatData['Album'] : 'Unknown';

[Image: kbya6v.png]


Of course this now look a bit strange if you have selected more than one artist, like a hole genre but i would also not want to search through a ton of albums sorted alphabetically without selecting an artist anyway.

Also at Eric: yes it will not look nice if there are tracks of an album with different year dates. But i dont have that in my whole collection - since its fully CD based with one year date for all tracks of ar CD. I guess an individual track will only occur on mp3 collections not based on CDs. Then using "AlbumSort" tag instead of "date minus album" would probably be a better idea.
And yes, mp3tag is THE tag editor, I am using it for more than 15 years now Big Grin  Especially mass tagging, actions, regex... are sooo cool...

Mario
Reply


Messages In This Thread
Sort albums by year - by deztiny - 05-09-2018, 12:31 PM
RE: Sort albums by year - by Tim Curtis - 05-09-2018, 02:32 PM
RE: Sort albums by year - by deztiny - 05-09-2018, 03:17 PM
RE: Sort albums by year - by Koda59 - 05-09-2018, 05:39 PM
RE: Sort albums by year - by Tim Curtis - 05-09-2018, 05:24 PM
RE: Sort albums by year - by deztiny - 05-10-2018, 07:36 AM
RE: Sort albums by year - by Tim Curtis - 05-10-2018, 12:12 PM
RE: Sort albums by year - by kris_jag - 10-17-2018, 03:55 PM
RE: Sort albums by year - by BlackSmile - 10-23-2018, 09:50 PM
RE: Sort albums by year - by JohnM73 - 11-23-2018, 03:28 PM
RE: Sort albums by year - by Tim Curtis - 11-23-2018, 05:01 PM
RE: Sort albums by year - by deztiny - 09-05-2019, 09:31 PM
RE: Sort albums by year - by Tim Curtis - 09-14-2019, 06:03 PM
RE: Sort albums by year - by Tim Curtis - 09-14-2019, 06:13 PM
RE: Sort albums by year - by gbh_uk - 09-15-2019, 10:38 PM
RE: Sort albums by year - by deztiny - 09-26-2019, 09:03 AM
RE: Sort albums by year - by myravian - 09-14-2019, 08:37 AM
RE: Sort albums by year - by Tim Curtis - 09-14-2019, 11:51 AM
RE: Sort albums by year - by TheOldPresbyope - 09-14-2019, 06:20 PM
RE: Sort albums by year - by myravian - 09-15-2019, 10:45 AM
RE: Sort albums by year - by Tim Curtis - 09-15-2019, 11:22 PM
RE: Sort albums by year - by LianenSchwinger - 09-23-2019, 01:53 PM
RE: Sort albums by year - by Tim Curtis - 09-23-2019, 03:15 PM
RE: Sort albums by year - by LianenSchwinger - 09-24-2019, 05:36 AM
RE: Sort albums by year - by Tim Curtis - 09-24-2019, 11:25 AM
RE: Sort albums by year - by gbh_uk - 12-02-2019, 08:14 PM
RE: Sort albums by year - by Tim Curtis - 02-23-2020, 03:44 PM
RE: Sort albums by year - by gbh_uk - 02-23-2020, 04:51 PM
RE: Sort albums by year - by DRONE7 - 12-02-2019, 09:25 PM
RE: Sort albums by year - by Tim Curtis - 12-02-2019, 09:47 PM
RE: Sort albums by year - by CallMeMike - 12-03-2019, 06:16 AM
RE: Sort albums by year - by grumbleweed - 12-03-2019, 11:23 AM
RE: Sort albums by year - by TheOldPresbyope - 12-03-2019, 02:41 PM
RE: Sort albums by year - by owsla - 02-21-2020, 07:56 PM
RE: Sort albums by year - by owsla - 02-23-2020, 02:40 PM
RE: Sort albums by year - by owsla - 02-23-2020, 05:53 PM

Forum Jump: