Sort by Year

Got an idea? Missing something? Post your feature request here.

Moderator: moderators

Sort by Year

Postby Leo » Sat Jun 04, 2011 8:29 am

Hello,

if you select an artist which have multiple albums these are sorted by name in the main window. Is there a modification to change the sort order by year of the album ?
Or maybe is this an function in a future realease ?

Many thanks
regards Leo
Leo
 
Posts: 7
Joined: Sat Jun 04, 2011 8:24 am

Re: Change sort order in browser list ?

Postby Leo » Sun Aug 28, 2011 8:22 am

Hi

is there really nobody which have the same problem with the sortorder ?
I don't want to rename my albums like
1979 abc
1980 def ...

to see it in chronological order ...

regards
Leo
Leo
 
Posts: 7
Joined: Sat Jun 04, 2011 8:24 am

Re: Change sort order in browser list ?

Postby BKKKPewsey » Sun Aug 28, 2011 12:01 pm

I think that the various discussions regarding using track tags will cover this point. If subsonic made better use of the tag info we would be able to search for genre/year etc.
It would be easy to implement show albums in alphabetical / chronological order option then.
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Change sort order in browser list ?

Postby Leo » Wed Aug 31, 2011 6:52 pm

BKKKPewsey wrote:I think that the various discussions regarding using track tags will cover this point. If subsonic made better use of the tag info we would be able to search for genre/year etc.
It would be easy to implement show albums in alphabetical / chronological order option then.


Does that mean that Subsonic display albums ordered by name from filesystem ? If yes, it is clear that a sortorder using ID Tags (e.g. year of album)
is not working :(

regards
Leo
Leo
 
Posts: 7
Joined: Sat Jun 04, 2011 8:24 am

Re: Change sort order in browser list ?

Postby potatiking » Fri Sep 23, 2011 11:00 am

You can do it like this to solve this little problem. I have made this on all my albums:

Artist/[year] Album/Title.mp3

e.g like this :)

Image
potatiking
 
Posts: 19
Joined: Thu Sep 11, 2008 5:26 am

Re: Change sort order in browser list ?

Postby Leo » Fri Oct 07, 2011 8:53 am

potatiking wrote:You can do it like this to solve this little problem. I have made this on all my albums:

Artist/[year] Album/Title.mp3

e.g like this :)

Image


Hello,

yes i know that, but i don't want to rename all my albums. Because the Album year is stored in the ID tag of the mp3's and i look for a
solution to use theses information for display.

regards
Leo
Leo
 
Posts: 7
Joined: Sat Jun 04, 2011 8:24 am

Re: Change sort order in browser list ?

Postby mcnater » Tue Oct 11, 2011 2:35 pm

I agree with Leo. I'd love to be able to have automatically sort by year without resorting to putting the year into the albums title. Thats what the tags are for.
mcnater
 
Posts: 12
Joined: Tue Apr 12, 2011 2:52 am

Re: Change sort order in browser list ?

Postby BKKKPewsey » Tue Oct 11, 2011 5:02 pm

On the grounds of housekeeping I have moved this thread to the Request Section.
:mrgreen:
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Sort by Year

Postby jmeb » Mon Oct 24, 2011 1:38 pm

Excuse the self-promotion -- but if your subsonic is hosted on linux or mac osx, symmusic (https://github.com/jmeb/symmusic) might help solve your problem -- and I'd love to see it tested by others. Its a little python thing I hacked together to list my music folder sorted a few different ways based on tags (ID3, FLAC, OggVorbis supported.)

To sort it by year, then artist and album the syntax would be:
Code: Select all
symmusic.py --dn %y %a %l --fn %n %t --src /music/path --dst /music/by-year
Last edited by jmeb on Wed Oct 26, 2011 1:10 am, edited 1 time in total.
jmeb
 
Posts: 13
Joined: Sun Oct 23, 2011 6:58 pm

Re: Sort by Year

Postby monkey » Tue Oct 25, 2011 6:13 pm

Mine is hosted on Linux.

Is there a way to get the output to a file rather than reordering them all?

Would be great if subsonic could handle this without messing around with all my music folders!
monkey
 
Posts: 34
Joined: Sun Oct 16, 2011 9:57 am

Re: Sort by Year

Postby monkey » Tue Oct 25, 2011 6:20 pm

I've tried the latest script and with

Code: Select all
python symmusic.py --dh %y %a %l --fn %n %t --src /media/Storage/Music --dst /media/Storage/Music2



I get

Code: Select all
Traceback (most recent call last):
File "symmusic.py", line 16, in <module>
import mutagen


I'd like to give this script a try, purely because I want a list of everything I've got from the 90's!

[EDIT]
OK, total noob!
Code: Select all
sudo apt-get install python-mutagen

first then I might have some more luck!

However, there is a typo in the example given

it should be

Code: Select all
python symmusic.py  --dn %y %a %l --fn %n %t --src /media/Storage/Music --dst /media/Storage/Music2


not --dh

However, the script does run, and now I've got

Number of .mp3 found: 13398
Number of .flac found: 0
Number of .ogg found: 0
Succesful .mp3 makes: 13134
Succesful .flac makes: 0
Succesful .ogg makes: 0


And all my MP3s neatly copied over into my music2 directory all placed under "unknown". Out of all those files, which are correctly tagged, it couldn't read a single year..... Is there an issue with the script or the commands into it?
monkey
 
Posts: 34
Joined: Sun Oct 16, 2011 9:57 am

Re: Sort by Year

Postby jmeb » Wed Oct 26, 2011 1:08 am

Whoops! Sorry about the syntax error. Glad you figured out the right one.

I dropped the ball big time in the date thing. I had the wrong thing feeding into the functions ("year" where i needed "date").

I've posted the new version onto github (https://github.com/jmeb/symmusic) or you can edit the existing script you have setup to say "date" where it now says "year" in the first dictionary. Just tested and its working.

Thanks for being brave enough to test it out. Hope this works.
jmeb
 
Posts: 13
Joined: Sun Oct 23, 2011 6:58 pm

Re: Sort by Year

Postby wowo » Wed Oct 26, 2011 9:11 am

Little bit of topic.
What do you mean by year ?
For instance I have my music tags with a year-tag that normally means the release date of the ripped album.
I also have a origyear tag that of course means the original date = the first release date of an album.
Squeezebox Server can sorts my albums with either tag. Standard it uses the year tag and if there is an origtag this would be used for sorting. Everything is customizable by the way.

I am happy that Subsonic does not read many tags because it would make the program slower.
Reading all of my different tags in my music-files (I am using more than 30 tags: album, albumartist, albumartistsort, artist, artistsort, ASIN, BARCODE, genre, grouping etc etc) should cost much scanning time.

The strength of SubSonic is that it is fast and easy.
Subsonic 4.7 (build 3105) running on QNAP TS-239 Pro II (Intel Atom 1.8GHz Single-core ; 1GB RAM)
wowo
 
Posts: 25
Joined: Mon Oct 24, 2011 9:27 pm

Re: Sort by Year

Postby monkey » Wed Oct 26, 2011 9:22 am

AFAIK it just picks up the year tag.

The modified script works perfectly and the unknowns it has found, are correct as they have no year tag on them at the moment, over 13000 have been sorted just as I want them for a specific purpose.

Stumbling across this script has saved me a major headache, so firstly thanks for providing it, and secondly thanks for fixing it so quickly! :D
monkey
 
Posts: 34
Joined: Sun Oct 16, 2011 9:57 am

Re: Sort by Year

Postby jmeb » Wed Oct 26, 2011 12:42 pm

wowo wrote:I am happy that Subsonic does not read many tags because it would make the program slower.
Reading all of my different tags in my music-files (I am using more than 30 tags: album, albumartist, albumartistsort, artist, artistsort, ASIN, BARCODE, genre, grouping etc etc) should cost much scanning time.

The strength of SubSonic is that it is fast and easy.


There are tons of tag options in the mp3 world. The script uses mutagen to extract tags. Mutagen has two mp3 interfaces, and easy one (easyid3) and a complex one (id3). Currently the script uses the former as it accesses the most commonly used task in an intuitive way (using labels like 'artist' 'album' 'date') instead of using those strange id3 abbreviations (TIT2, TDAT, TDEN). This means currently it only has access to the basic 'date' tag (not sure which ID3 abbreviation this corresponds to.) In the long run it could access other tags if it used the id3 module instead. I'm probably not likely to implement it soon because i have no use for it as these tags don't exist in my mixed collections of FLACs, Oggs and Mp3s. It is possible though (with a fair bit of work arounds.)

Two: there is nothing about using symmusic that would make subsonic slower. It does all the processing outside of subsonic. To subsonic your folder sorted by album, genre, or artist look exactly like any other media folder you've given it. Furthermore symmusic doesn't read every tag, only the specified ones.

(Sidenote: subsonic does read your tags, but only to update your search index. )

Monkey glad you found it of use -- always a good thing to know your work is in use by someone else. I also just thought of it, but one cool sort might be to look at an artists history by:
Code: Select all
symmusic.py --dn %a %y --fn %l %n %t --src --dst
jmeb
 
Posts: 13
Joined: Sun Oct 23, 2011 6:58 pm

Next

Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 4 guests