Page 1 of 2

Sort by Year

PostPosted: Sat Jun 04, 2011 8:29 am
by Leo
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

Re: Change sort order in browser list ?

PostPosted: Sun Aug 28, 2011 8:22 am
by Leo
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

Re: Change sort order in browser list ?

PostPosted: Sun Aug 28, 2011 12:01 pm
by BKKKPewsey
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.

Re: Change sort order in browser list ?

PostPosted: Wed Aug 31, 2011 6:52 pm
by Leo
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

Re: Change sort order in browser list ?

PostPosted: Fri Sep 23, 2011 11:00 am
by potatiking
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

Re: Change sort order in browser list ?

PostPosted: Fri Oct 07, 2011 8:53 am
by Leo
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

Re: Change sort order in browser list ?

PostPosted: Tue Oct 11, 2011 2:35 pm
by mcnater
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.

Re: Change sort order in browser list ?

PostPosted: Tue Oct 11, 2011 5:02 pm
by BKKKPewsey
On the grounds of housekeeping I have moved this thread to the Request Section.
:mrgreen:

Re: Sort by Year

PostPosted: Mon Oct 24, 2011 1:38 pm
by jmeb
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

Re: Sort by Year

PostPosted: Tue Oct 25, 2011 6:13 pm
by monkey
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!

Re: Sort by Year

PostPosted: Tue Oct 25, 2011 6:20 pm
by monkey
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?

Re: Sort by Year

PostPosted: Wed Oct 26, 2011 1:08 am
by jmeb
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.

Re: Sort by Year

PostPosted: Wed Oct 26, 2011 9:11 am
by wowo
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.

Re: Sort by Year

PostPosted: Wed Oct 26, 2011 9:22 am
by monkey
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

Re: Sort by Year

PostPosted: Wed Oct 26, 2011 12:42 pm
by jmeb
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