Open moszeed opened 11 years ago
@moszeed I think I see the problem. It seems to be with the artist name "(+44)". You notice that the payload has the artist set to "(+44)". The the data the server actually tried to parse (the "to add data" line is what the server says it actually recieved) doesn't have the "+" symbol. This leads me to believe there is an issue with the "+" symbol. This doesn't surprise me either. Properly communicating library contents to the server have been an issue that has plagued this client from day one. It's an issue that I'm really struggling at the moment of how to fix (and suggestions would be welcome :) ).
I'll investigate and see if I can fix the issue but I can't give you a good time frame since I'm currently on vacation. In the mean time, what you can do is try removing all of the songs by (+44) from your library. They won't show up in the program though. You'll have to go into the sqlite database itself and delete them using sql. Do you know how to do that?
@klnusbaum i think i know how to to this, but is the sqllite database on server or on my pc ??
In addition to the big ass database that the server has, each player client has it's own small little sqlite database for keeping track of things and making sure all of the songs are actually synced.
What you'll wanna do is go find the sqlite database. I believe on windows it's in your home directory. Somewhere in the hidden AppData directory (or maybe it's not AppData, but something like that). Either way, you're looking a file called playerdb.
sqlite3 playerdb
Once you're in the db, I think the following sql will help alliveate the issue:
DELETE FROM library WHERE artist=='(+44)';
Let me know if that works.
(Note you'll need to install the sqlite shell if you haven't already. You can get it here: https://www.sqlite.org/sqlite-shell-win32-x86-3071501.zip)
@klnusbaum there was nothing on my PC called "playerdb" so no, it`s not working.
... btw. maybe it helps you, to solve the communication problem, if i see it correctly the communication works with JSON, i don`t know much about Phyton (the truth: nothing :P). But i had these issues also in Ajax and there you put simply a "\" to escape those parts of the JSON string ... (example: "+44" to "+44") and if that doesnt work i convert special chars to ASCII or HTML code ...
@moszeed If you don't have a file called playerdb somewhere on your computer, then UDJ wouldn't even be getting to the point in the program where you would get this error. It's on there somewhere. I don't know where it is on windows 8 because I don't have access to a windows 8 machine. But on pervious versions of windows you could find it somewhere in "C:\Documents and Settings\user\Application Data" where "user" is of course your user name.
Simply putting a "\" won't work here unfortunately (I think). I think this is because we're sending the JSON via a POST request. The plus probably needs to be url-encoded which I may not be doing correctly. We have to do our own specific URL encoding because some times the way Qt does url-encoding in a way that our Server doesn't like.
I'll look more into it a.s.a.p.
Hi, i'm getting following error under Windows 8 on Startup: