Last.fm streams not working: Error parsing tracklist
#16
Just tested and a HEAD request for this url does not return a content-length header.

So, it seems like that option won't work if all it does is send a HEAD request.
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#17
Nope :-(
Code:
haggy@dredg ~ $ curl -I "http://ws.audioscrobbler.com/radio/xspf.php?sk=aef5798f6ef9dc43078d842af7e452c4&discovery=0&desktop="
HTTP/1.0 200 OK
Date: Mon, 16 Mar 2009 17:24:28 GMT
Server: Apache/1.3.39 (Unix)
Connection: close
Content-Type: text/plain;charset=utf-8
Reply
#18
tslayer: I wanted to assist you with this issue and found some example code in C on the web. Unfortunately i am no skilled C/C++ coder, but i do understand this implementation, and perhaps it is some sort of help for you. Looks like the whole read stuff is done by one curl call and the output buffer gets returned as a whole.
Reply
#19
I attached a full debug log to the ticket, but i think you already found the problem.
Reply
#20
XBMC has a different implementation as we have a callback.

Check xbmc/FileSystem/FileCurl.cpp if you want to see how it is done.
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#21
I did a little bit of debugging with my libcurl version.

CURLINFO_CONTENT_LENGTH_DOWNLOAD actually doesn't return the length. It returns 0.

So, I was wrong there.
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#22
Should hopefully be fixed with r18614. Please update your SVN and let us know.

Thanks.
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#23
Thanks, will merge into xbmc-vdpau branch and have a look at it. So your older libcurl also does not reply a meaningful content length? I looked at the callback implementation and i think i got it. Looks like on several checks length becomes zero thus returning to early from the callback. Will have a look at your patch and learn from it - perhaps one day i'm able to give something back to xbmc. As i'm a professional Web developer, perhaps i can assist with something online!?
Reply
#24
If you do try it, make sure to try r18616.

Thanks.
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#25
Thanks, i just compiled r18621 so it includes your revision. Will report back tonight.
Reply
#26
We know it hangs up after the first song Wink
Reply
#27
Hehe, and we do know a solution for this? :-)
Reply
#28
Not yet.
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#29
althekiller Wrote:We know it hangs up after the first song Wink
and if i tell you it doesn't? Laugh
Reply
#30
It should stop at 0:00 if you let it play through the first song. Skipping to the next song will work. Are you saying it works if you just let it play through?

Anyhow, OT...
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply

Logout Mark Read Team Forum Stats Members Help
Last.fm streams not working: Error parsing tracklist0