-
Notifications
You must be signed in to change notification settings - Fork 35
Reusing saved instances of Song doesn't work anymore #13
Comments
I had a 404 when I started with gmusic as well. I changed the ApiExample to this:
private static void testcase(PrintWriter out)
{
String password = "";
String username = "";
out.println(Calendar.getInstance().getTime()+"
|
I don't know what part you would like to reuse, probably the Url or something like that, and I think that could actually work. You do however need to remember that you still need to establish a session in order to use the url. Could that be the reason? |
I believe I had the same issue a while back. If memory serves correctly, you need to have a valid session for the url to be valid. I think the session token forms part of the url, so when you re-open the app, that session token is likely invalid. |
Thank you for your answers so far! vokke: To be complete in the prog state.
jkiddo, I double checked and I'm doing the same connection steps in both situation. SnoochieBoochies, It looks like you got an interesting point there, but I'm not sure I get it all. What is the session token and how is it represented in the connection/session ? Thanks for your quick answers ! :) |
The session token is established in memory when you log in - which means that it does not makes sense to serialize it as it is the tokes are produced serverside, not client side. You need to establish a session when using the API - and what is the library file? |
Damn - there definitely is an error! I was fooled by a cache - so are so true. It is currently not possible to get any urls and thereby not possible to download anything. I really need help to maintain this API. Does anyone of you guys have the time to help me out and get it up to date? It still seems like Simon Weber is keeping his implementation in Python up-to-date so apparently all the dirty work has already been done. |
Hi,
I finally found some time to work on my project using this api, repairing it from the last changes of google.
When I getAllSongs(...), I serialize them and save them into a file so that I don't have to download it all again next time I open the program. It used to work like a charm until now. I always receive a 404 when I reuse saved data.
Do you have any idea how to fix this ?
ps: I only serialize the Songs, I don't serialize the api.
Regards
The text was updated successfully, but these errors were encountered: