Bug/undesired Behaviour of Android Client when pinning
Hi,
I'm pretty new to Subsonic but it's awsome and since I did set it up I use it dailiy to servce my collection to various clients. One is a Galaxy Nexus with ICS. It works well, but today a stumbled over somthing
In my collection I have one directory for every album. If it is a two disc album I still have only one directory. The files a properly tagged with the CD tag so that they can be distinguished. Subsonic can handle this as long as the client is in online mode. If I pin a two disc album and use the client in offline mode the whole thing breaks. An example:
My file structure does look like this:
3,8M 2012-01-24 09:27 01 - Hey Baby.flac
22M 2012-01-24 09:25 01 - Jetzt Geht's Ab.flac
21M 2012-01-24 09:25 02 - Hausmeister Thomas D.flac
31M 2012-01-24 09:27 02 - Michi Gegen die Gesellschaft.flac
40M 2012-01-24 09:27 03 - Krieger.flac
14M 2012-01-24 09:25 03 - Mikrofonprofessor.flac
In online Mode the playlist is right, it plays track 1,2,3 from disc one and then track 1,2,3 from disk two. In offline mode it plays alphabetically which means track 1, track 1, track 2, track 2, track 3, track 3. It seems as if it doesn't honour the tags.
To make things worse, I have a two disc audiobook which has te following file structure:
1,1M 2012-01-29 17:23 01 - Pilzsaison Teil 1.mp3
5,8M 2012-01-29 17:23 01 - Pilzsaison Teil 2.mp3
5,5M 2012-01-29 17:23 02 - Pilzsaison Teil 1.mp3
5,2M 2012-01-29 17:23 02 - Pilzsaison Teil 2.mp3
7,9M 2012-01-29 17:23 03 - Pilzsaison Teil 1.mp3
7,9M 2012-01-29 17:23 03 - Pilzsaison Teil 2.mp3
The tags for the file are clean, but the title fiels only contains 'Pilzsaison', track tag and cd tag are corectly filled. Again, in online mode the playlist is right an all plays in the right order, however, if I pin this, it first downloads the three files from CD 1 and names them:
01 - Pilzsaison.mp3
02 - Pilzsaison.mp3
03 - Pilzsaison.mp3
and then loads the three files from the second CD and overwrites the first three.
So there are two problems:
1. the filesnames in the cache are created from the ID3 tags but the CD tag isn't used. This may lead to overwriting files in the cache if two tracks on the CDs have the same title in the title tag.
2. in offline mode the files are played in the wrong order because the playlist is not created from the tags, or the CD tag is missing or not used. I don't know what exactly causes this but I guess it's easy to see in the code. Btw. iSub has a similar problem when playing from it's cache.
I see, that I could workaround this by using an own directory for every CD, but we're talking of an over 200 GB collection which would take a lot of work to reorganize. And since the Andoid client handles it right if online I think it's the desired behaviour and the offline problem is a little bug
As last I have a small feature request. Would it be possible to show the track number in the online mode. This would make it easier to navigate in audiobooks.
Cheers
Chrissi
I'm pretty new to Subsonic but it's awsome and since I did set it up I use it dailiy to servce my collection to various clients. One is a Galaxy Nexus with ICS. It works well, but today a stumbled over somthing
In my collection I have one directory for every album. If it is a two disc album I still have only one directory. The files a properly tagged with the CD tag so that they can be distinguished. Subsonic can handle this as long as the client is in online mode. If I pin a two disc album and use the client in offline mode the whole thing breaks. An example:
My file structure does look like this:
3,8M 2012-01-24 09:27 01 - Hey Baby.flac
22M 2012-01-24 09:25 01 - Jetzt Geht's Ab.flac
21M 2012-01-24 09:25 02 - Hausmeister Thomas D.flac
31M 2012-01-24 09:27 02 - Michi Gegen die Gesellschaft.flac
40M 2012-01-24 09:27 03 - Krieger.flac
14M 2012-01-24 09:25 03 - Mikrofonprofessor.flac
In online Mode the playlist is right, it plays track 1,2,3 from disc one and then track 1,2,3 from disk two. In offline mode it plays alphabetically which means track 1, track 1, track 2, track 2, track 3, track 3. It seems as if it doesn't honour the tags.
To make things worse, I have a two disc audiobook which has te following file structure:
1,1M 2012-01-29 17:23 01 - Pilzsaison Teil 1.mp3
5,8M 2012-01-29 17:23 01 - Pilzsaison Teil 2.mp3
5,5M 2012-01-29 17:23 02 - Pilzsaison Teil 1.mp3
5,2M 2012-01-29 17:23 02 - Pilzsaison Teil 2.mp3
7,9M 2012-01-29 17:23 03 - Pilzsaison Teil 1.mp3
7,9M 2012-01-29 17:23 03 - Pilzsaison Teil 2.mp3
The tags for the file are clean, but the title fiels only contains 'Pilzsaison', track tag and cd tag are corectly filled. Again, in online mode the playlist is right an all plays in the right order, however, if I pin this, it first downloads the three files from CD 1 and names them:
01 - Pilzsaison.mp3
02 - Pilzsaison.mp3
03 - Pilzsaison.mp3
and then loads the three files from the second CD and overwrites the first three.
So there are two problems:
1. the filesnames in the cache are created from the ID3 tags but the CD tag isn't used. This may lead to overwriting files in the cache if two tracks on the CDs have the same title in the title tag.
2. in offline mode the files are played in the wrong order because the playlist is not created from the tags, or the CD tag is missing or not used. I don't know what exactly causes this but I guess it's easy to see in the code. Btw. iSub has a similar problem when playing from it's cache.
I see, that I could workaround this by using an own directory for every CD, but we're talking of an over 200 GB collection which would take a lot of work to reorganize. And since the Andoid client handles it right if online I think it's the desired behaviour and the offline problem is a little bug
As last I have a small feature request. Would it be possible to show the track number in the online mode. This would make it easier to navigate in audiobooks.
Cheers
Chrissi