Closed GoogleCodeExporter closed 9 years ago
Poked around in the code a little bit and it seems to be a problem with the
initial
request for the tracks. I get a FileNotFound Exception for the requested url.
So
maybe something is wrong with the connection String? Actually i just understand
bits
of it but not all. Why are you acessing something inside of the
databases/DataBaseID/? When requesting an Album you don't need a specific
Database? That is something i'm completly in the dark right now.
PS:This is the Full URL he is trying to connect to
http://192.168.1.35:3689/databases/35/items?session-
id=272309376&meta=dmap.itemname,dmap.itemid,daap.songartist,daap.songalbu
m,daap.songalbum,daap.songtime,daap.songtracknumber&type=music&sort=album
&query='daap.songalbumid:13923728203654300696'
Original comment by matthias...@gmail.com
on 21 Feb 2010 at 6:28
Found the Bug the line
byte[] raw =
RequestHelper.request(String.format("%s/databases/%d/containers/%d/items?
session-
id=%s&meta=dmap.itemname,dmap.itemid,daap.songartist,daap.songalbum,daap.so
ngalbum,daap.songtime,daap.songtracknumber&type=music&sort=album&query='d
aap.songalbumid:%s'", session.getRequestBase(),
session.databaseId, session.musicId, session.sessionId, albumid), false);
should read:
byte[] raw = RequestHelper.request(String.format("%s/databases/%d/items?session-
id=%s&meta=dmap.itemname,dmap.itemid,daap.songartist,daap.songalbum,daap.so
ngalbum,daap.songtime,daap.songtracknumber&type=music&sort=album&query='d
aap.songalbumid:%s'", session.getRequestBase(),
session.databaseId, session.sessionId, albumid), false);
Should i commit the change? CAN i commit the change? I'm not really into the
whole
OpenSource thingy :/
Original comment by matthias...@gmail.com
on 21 Feb 2010 at 10:00
I can commit the change if you can't. I didn't notice this problem in my
testing?
I test and get tracks in my albums. Very strange.
Original comment by mellowaredev
on 26 Feb 2010 at 5:15
Did you try and download the latest code here from SVN with the changes I have
made
and bugs fixed?
Original comment by mellowaredev
on 26 Feb 2010 at 5:16
Yes, i downloaded the latest version.
In the meantime i added a couple of things i wanted to have, like adding
Albums/Artists to the queue instead of replacing them and in the AlbumsActivity
a
ALL Category to view all songs of an Artist.
I also changed a little bit in the connection system. because i had major
problems
connecting to my library. To be specific i save the connection values always
and not
only if they don't exist. There is no harm in that and it helps if there is
something
wrong stored in there.
What can't get to work is queuing a single track. I don't have a clue why it's
not
working.
Another thing i try to get working is the Complilation grouping. I wonder if
there is a
flag you can send with the requests to get the already grouped reults from
iTunes.
Original comment by matthias...@gmail.com
on 28 Feb 2010 at 12:30
I don't think Itunes has any concept of queuing a single track. When you
select a
track from an album Itunes always queues the entire album and then just starts
playing the track that you selected. This is just the way the Itunes Remote was
designed to work. Not sure why they made that design decision.
How did you add Artists/Albums in the queue instead of replacing them? Did you
remove the call to "cue?command=clear"?? If so I would be hesitant to leave
this in
there since it goes against the Apple protocol. What I did in MonkeyTunes is I
handled this on the server side by having a flag that allowed MonkeyTunes to
ignore
the calls to "cue?command-clear".
What Mr Sharkey built in TunesRemote was an EXACT replica of exactly what the
iPhone
Apple Remote calls are doing.
When you are all done do you want to send me your changes and I will check them
into
SVN? I can't add you as a committer because I don't have those privileges only
Jeff
Sharkey can do that.
Original comment by mellowaredev
on 28 Feb 2010 at 1:16
I use cue?command=add,t he rest is the same as in the play command.. that works
perfectly for artists and albums but not for a single track. (and i don't call
command=clear)..
Yea, i will send you the updated code. I just have to clean up the mess i
created a little
bit.. ;)
Original comment by matthias...@gmail.com
on 28 Feb 2010 at 1:24
ok sounds good. Once you get it all cleaned up I will put it in.
What is funny is I use the Apple Remote to debug my code and I never once got
it to
call cue?command=add. I thought I tried every single feature! How did you
know
there was an "add" command?
Original comment by mellowaredev
on 28 Feb 2010 at 3:14
OK, cleaned up the stuff i did now. Where should i send the files? Is
i...@melloware.com your real adress?
Well the add i know from trying.. there was a clear and a play command. so i
just
tried add and it worked ;)
Another thing i forgot: the search method was also a little bit whacky, Also i
added a
jump to artist context menu to the search elements (coudn't add a jump to album
since i don't know the album id. don't ask me why it is wrong there)
You have an iPhone or iPod Touch? Does the Remote App on there actually group
Compilations? and if yes, is that a setting on the Library or in the remote app?
Original comment by matthias...@gmail.com
on 28 Feb 2010 at 4:22
Yep my address is info @ melloware you can send there.
Compilations in the remote app are treated as normal artist album in the Remote
app
in the iPhone. So i think what you are saying is if you have say a Soundtrack
with
Various Artists each song is a different Artist etc. They show up under the
Artist
in the iPhone and when you drill down into that Artist you will see that
Soundtrack
listed and when you click on it just that one track appears for that Artist. I
think
anyway, I don't group my collection like that anyway, if it is compilation for a
Soundtrack or Various Artists I make the Artist "Soundtrack" or "Various
Artists".
What I will do is I will get your changes and compile them and try them against
my
MonkeyTunes app to make sure everything is still working and also compare to the
Itunes commands. You have tested it against ITunes right so I don't need to do
that
correct?
Original comment by mellowaredev
on 28 Feb 2010 at 6:14
Well Compilations should show up as an Artist called "compilations" AND Artists
containing only tracks from Compilations should be removed from the artist
list. My
guess is there should be a additional switch for the artists? command,
something
like compilations=true or something. But since i don't have an iPhone or
something i
can't sniff that one out.
Yes, i test it with the latest iTunes Version. I will pack it now.
Original comment by matthias...@gmail.com
on 28 Feb 2010 at 6:41
I am positive there is no Compilations flag. The compilation show up under each
artist. So if a compilation album has 10 different artists that album shows up
under
the 10 different artists.
Original comment by mellowaredev
on 28 Feb 2010 at 7:52
I sent you an email...it looks like you forgot the /res folder when you sent me
the
changes.
Original comment by mellowaredev
on 1 Mar 2010 at 5:31
This has been checked into SVN.
Original comment by mellowaredev
on 1 Mar 2010 at 6:15
Original comment by mellowaredev
on 1 Mar 2010 at 6:17
Has the "no tracks found" issue been resolved yet? I'm running the latest
Market version and can get my artists
and albums listed but not the tracks. (Nexus One, 2.2).
Original comment by foob...@gmail.com
on 1 Jun 2010 at 9:21
It has not been release on Android Market but you can load the compiled APK
into your
phone. I have compiled the APK and put the binary on the Downloads page of this
Google Code project.
Original comment by mellowaredev
on 1 Jun 2010 at 10:32
Original issue reported on code.google.com by
matthias...@gmail.com
on 21 Feb 2010 at 5:27