Author Topic: XMPlay Last.fm/Audioscrobbler plugin (xmp-scrobbler)  (Read 539816 times)

yagood

  • Posts: 215
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #200 on: 17 Aug '06 - 21:22 »
This is the output:
Code: [Select]
2006-08-17 17:07:33 [LIBSCROBBLER] Using proxy server: ca-proxy2.br.bosch.com:8080
2006-08-17 17:07:33 [LIBSCROBBLER] ...

I cleared all the text boxes and saved. Then disabled proxy and authentication and closed xmplay. When executed again, i enabled the options and filled the proxy, port, user and password boxes. Saved and the above message again :(


Hmmm, this is strange. I modified the message so it should say that authentication is used. I attach version with a slight change. Stupid question - are you sure that you replaced old xmp-scrobbler.dll with the new one?

adscvr

  • Posts: 14
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #201 on: 17 Aug '06 - 21:28 »
Now it changed:

Code: [Select]
2006-08-17 17:24:51 [LIBSCROBBLER] Using proxy server: ca-proxy2.br.bosch.com:8080 (with authentication - user and password are set in options)
2006-08-17 17:24:51 [CACHE] Resizing cache array - new length: 233
2006-08-17 17:24:51 [CACHE] Number of entries in cache: 233
2006-08-17 17:24:51 [LIBSCROBBLER] ...
2006-08-17 17:24:51 [DEBUG] DSP_SetFormat( 1, 44100, 2 )
2006-08-17 17:24:51 [DEBUG] XMP_SetTimer( 305 )
2006-08-17 17:24:51 [DEBUG] XMP_KillTimer
2006-08-17 17:24:51 [INFO] Next submission in 152 seconds... (xmpCounter = 13406400)
2006-08-17 17:24:51 [LIBSCROBBLER] The server reported a processing error.
2006-08-17 17:24:51 [LIBSCROBBLER] HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-17 17:24:51 [LIBSCROBBLER] Unable to handshake: sleeping...

I'm sure i replaced the other one. In fact, i did it two times. Don't know :P Well,  the new message appears but the issue persists.

yagood

  • Posts: 215
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #202 on: 17 Aug '06 - 21:48 »
Hm, OK, this is weird. I attach another version with some more debugging info being written in the log, please test it and paste log contents here.

adscvr

  • Posts: 14
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #203 on: 17 Aug '06 - 21:56 »
I've deleted the log file so it can be created again. Here it is:

Code: [Select]
2006-08-17 17:50:48 [DEBUG] DSP_New()
2006-08-17 17:51:01 [DEBUG] DSP_NewTrack (OPEN)
2006-08-17 17:51:01 [LIBSCROBBLER] Using proxy server: ca-proxy2.br.bosch.com:8080 (with authentication - user and password are set in options)
2006-08-17 17:51:01 [LIBSCROBBLER] ...
2006-08-17 17:51:01 [CACHE] Resizing cache array - new length: 234
2006-08-17 17:51:01 [CACHE] Number of entries in cache: 234
2006-08-17 17:51:01 [DEBUG] DSP_SetFormat( 1, 44100, 2 )
2006-08-17 17:51:01 [DEBUG] XMP_SetTimer( 500 )
2006-08-17 17:51:01 [DEBUG] XMP_KillTimer
2006-08-17 17:51:01 [INFO] Next submission in 240 seconds... (xmpCounter = 21168000)
2006-08-17 17:51:01 [LIBSCROBBLER] HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-17 17:51:01 [LIBSCROBBLER] The server reported a processing error.
2006-08-17 17:51:01 [LIBSCROBBLER] HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-17 17:51:01 [LIBSCROBBLER] Via:1.1 CA-PROXY2


2006-08-17 17:51:01 [LIBSCROBBLER] Proxy-Authenticate: NTLM


2006-08-17 17:51:01 [LIBSCROBBLER] Proxy-Authenticate: Kerberos


2006-08-17 17:51:01 [LIBSCROBBLER] Proxy-Authenticate: Negotiate


2006-08-17 17:51:01 [LIBSCROBBLER] Pragma: no-cache


2006-08-17 17:51:01 [LIBSCROBBLER] Cache-Control: no-cache


2006-08-17 17:51:01 [LIBSCROBBLER] Content-Type: text/html


2006-08-17 17:51:01 [LIBSCROBBLER] Content-Length: 2373 


2006-08-17 17:51:01 [LIBSCROBBLER]


2006-08-17 17:51:01 [LIBSCROBBLER] Unable to handshake: sleeping...
2006-08-17 17:52:41 [LIBSCROBBLER] HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-17 17:52:41 [LIBSCROBBLER] The server reported a processing error.
2006-08-17 17:52:41 [LIBSCROBBLER] HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-17 17:52:41 [LIBSCROBBLER] Via:1.1 CA-PROXY2


2006-08-17 17:52:41 [LIBSCROBBLER] Proxy-Authenticate: NTLM


2006-08-17 17:52:41 [LIBSCROBBLER] Proxy-Authenticate: Kerberos


2006-08-17 17:52:41 [LIBSCROBBLER] Proxy-Authenticate: Negotiate


2006-08-17 17:52:41 [LIBSCROBBLER] Pragma: no-cache


2006-08-17 17:52:41 [LIBSCROBBLER] Cache-Control: no-cache


2006-08-17 17:52:41 [LIBSCROBBLER] Content-Type: text/html


2006-08-17 17:52:41 [LIBSCROBBLER] Content-Length: 2373 


2006-08-17 17:52:41 [LIBSCROBBLER]


2006-08-17 17:52:41 [LIBSCROBBLER] Unable to handshake: sleeping...
2006-08-17 17:53:02 [DEBUG] DSP_SetFormat( 1, 0, 0 )
2006-08-17 17:53:02 [DEBUG] DSP_StopTrack
2006-08-17 17:53:02 [DEBUG] XMP_KillTimer
2006-08-17 17:53:02 [DEBUG] DSP_NewTrack (CLOSE)
2006-08-17 17:53:02 [DEBUG] DSP_NewTrack (OPEN)
2006-08-17 17:53:02 [DEBUG] DSP_SetFormat( 1, 44100, 2 )
2006-08-17 17:53:02 [DEBUG] XMP_SetTimer( 305 )
2006-08-17 17:53:02 [DEBUG] XMP_KillTimer
2006-08-17 17:53:02 [INFO] Next submission in 152 seconds... (xmpCounter = 13406400)

I played two songs...

yagood

  • Posts: 215
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #204 on: 17 Aug '06 - 22:30 »
 :(

I don't know why it's not working, there seems to be some problem with libcurl (library which I use to do all networking stuff). All I can do right now is try to get more information about this error, so please try attached version and paste contents of the log.


BTW I see on your profile that you are listetning to music with other player (since xmp-scrobbler doesn't work) and that you have some songs cached from the past in xmp-scrobbler. Well, I'm afraid this cache file is going to be useless when we solve this problem and you'll be able to connect with XMPlay, because Last.fm doesn't accept submissions timestamped before what was already submitted properly...

adscvr

  • Posts: 14
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #205 on: 17 Aug '06 - 22:54 »
Well, no problem with the played song in the cache.

I will try this and paste the log tomorow because now i'm at home (i have this issue in the computer at work).

Thanks!!

adscvr

  • Posts: 14
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #206 on: 18 Aug '06 - 13:27 »
This is the output it shows:
Code: [Select]
2006-08-18 09:23:49 [DEBUG] DSP_New()
2006-08-18 09:24:20 [DEBUG] DSP_NewTrack (OPEN)
2006-08-18 09:24:20 [LIBSCROBBLER] Using proxy server: ca-proxy2.br.bosch.com:8080 (with authentication - user and password are set in options)
2006-08-18 09:24:20 [LIBSCROBBLER] ...
2006-08-18 09:24:20 [DEBUG] DSP_SetFormat( 1, 44100, 2 )
2006-08-18 09:24:20 [DEBUG] XMP_SetTimer( 500 )
2006-08-18 09:24:20 [DEBUG] XMP_KillTimer
2006-08-18 09:24:20 [INFO] Next submission in 240 seconds... (xmpCounter = 21168000)
2006-08-18 09:24:21 About to connect() to proxy ca-proxy2.br.bosch.com port 8080

2006-08-18 09:24:21   Trying 10.21.240.21...
2006-08-18 09:24:21 connected

2006-08-18 09:24:21 Connected to ca-proxy2.br.bosch.com (10.21.240.21) port 8080

2006-08-18 09:24:21 Server auth using Basic with user 'sl88bua'

2006-08-18 09:24:21 GET http://post.audioscrobbler.com/?hs=true&p=1.1&c=xmp&v=0.1&u=adscvr HTTP/1.1

Authorization: Basic c2w4OGJ1YTpwYXRvbG9jbzAw

User-Agent: Mozilla/5.0 (compatible; libscrobbler 1.4; xmp 0.1)

Host: post.audioscrobbler.com

Pragma: no-cache

Accept: */*

Proxy-Connection: Keep-Alive




2006-08-18 09:24:21 HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-18 09:24:21 [LIBSCROBBLER] HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-18 09:24:21 [LIBSCROBBLER] The server reported a processing error.
2006-08-18 09:24:21 [LIBSCROBBLER] HTTP/1.1 407 Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )


2006-08-18 09:24:21 Via:1.1 CA-PROXY2


2006-08-18 09:24:21 [LIBSCROBBLER] Via:1.1 CA-PROXY2


2006-08-18 09:24:21 Proxy-Authenticate: NTLM


2006-08-18 09:24:21 [LIBSCROBBLER] Proxy-Authenticate: NTLM


2006-08-18 09:24:21 Proxy-Authenticate: Kerberos


2006-08-18 09:24:21 [LIBSCROBBLER] Proxy-Authenticate: Kerberos


2006-08-18 09:24:21 Proxy-Authenticate: Negotiate


2006-08-18 09:24:21 [LIBSCROBBLER] Proxy-Authenticate: Negotiate


2006-08-18 09:24:21 Pragma: no-cache


2006-08-18 09:24:21 [LIBSCROBBLER] Pragma: no-cache


2006-08-18 09:24:21 Cache-Control: no-cache


2006-08-18 09:24:21 [LIBSCROBBLER] Cache-Control: no-cache


2006-08-18 09:24:21 Content-Type: text/html


2006-08-18 09:24:21 [LIBSCROBBLER] Content-Type: text/html


2006-08-18 09:24:21 Content-Length: 2374 


2006-08-18 09:24:21 [LIBSCROBBLER] Content-Length: 2374 


2006-08-18 09:24:21 [LIBSCROBBLER]


2006-08-18 09:24:21 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML dir=ltr><HEAD><TITLE>The page cannot be displayed</TITLE>

<STYLE>A:link {

FONT: 8pt/11pt verdana; COLOR: #ff0000

}

A:visited {

FONT: 8pt/11pt verdana; COLOR: #4e4e4e

}

</STYLE>



<META content=NOINDEX name=ROBOTS>

<META http-equiv=Content-Type content="text-html; charset=Windows-1252">



<META content="MSHTML 5.50.4522.1800" name=GENERATOR></HEAD>

<BODY bgColor=#ffffff>

<TABLE cellSpacing=5 cellPadding=3 width=410>

  <TBODY>

  <TR>

    <TD vAlign=center align=left width=360>

      <H1 style="FONT: 13pt/15pt verdana; COLOR: #000000"><!--Problem-->The page

      cannot be displayed</H1></TD></TR>

  <TR>

    <TD width=400 colSpan=2><FONT

      style="FONT: 8pt/11pt verdana; COLOR: #000000">There is a problem with the

      page you are trying to reach and it cannot be displayed.</FONT></TD></TR>

  <TR>

    <TD width=400 colSpan=2><FONT

      style="FONT: 8pt/11pt verdana; COLOR: #000000">

      <HR color=#c0c0c0 noShade>



      <P>Please try the following:</P>

      <UL>

        <LI>Click the Refresh button,

        or try again later.<BR>

        <LI>Open the Web site

         home page, and then look for links to the information you want.

        <LI>If you typed the page address in the Address bar, make sure that it

        is spelled correctly.<BR>

        <LI>Verify that the Internet access policy on your network allows you

        to view this this page.</LI>

        <LI>If you believe you should be able to view this directory or page,

        please contact the Web site administrator by using the e-mail address or

        phone number listed on the Web site

         home page. </LI></UL>

      <H2 style="FONT: 8pt/11pt verdana; COLOR: #000000">HTTP 407 Proxy Authentication Required - The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied. (12209)<BR>Internet Security and Acceleration Server</H2>

      <HR color=#c0c0c0 noShade>



      <P>Technical Information (for support personnel)</P>

      <UL>

        <LI>Background:<BR>The gateway could not retrieve the requested page.<P></P></LI>

        <LI>ISA Server: ca-proxy2.br.bosch.com<BR>

        Via: <BR><BR>Time: 8/18/2006 12:24:21 PM GMT

        </LI></UL></FONT></TD></TR></TBODY></TABLE></BODY></HTML>


2006-08-18 09:24:21 Closing connection #0

2006-08-18 09:24:21 [LIBSCROBBLER] Unable to handshake: sleeping...

yagood

  • Posts: 215
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #207 on: 18 Aug '06 - 17:13 »
Thanks for that, now I have some more info to work with. I'll try to find a cause and fix it as soon possible... I'm sorry for inconvenience  ::)

adscvr

  • Posts: 14
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #208 on: 18 Aug '06 - 18:28 »
Thanks for that, now I have some more info to work with. I'll try to find a cause and fix it as soon possible... I'm sorry for inconvenience  ::)

No problem! Thank YOU!

yagood

  • Posts: 215
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #209 on: 18 Aug '06 - 22:59 »
I think I found the cause of this problem, it's a technical thing so I won't bore you with it. Bottom line is that it should be OK. Unfortunately I have another problem now and I can't build new version without fixing it, so please be patient, it shouldn't take long.

PS. If it's proxy at your workplace - will you be able to test it on weekend or on Monday?

yagood

  • Posts: 215
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #210 on: 18 Aug '06 - 23:44 »
OK, I managed to build new version for you - link. Try this and please report back with log contents. I hope it'll fix all problems with your proxy server.

adscvr

  • Posts: 14
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #211 on: 19 Aug '06 - 04:52 »
PS. If it's proxy at your workplace - will you be able to test it on weekend or on Monday?

On tuesday, because here we have a holiday on monday. I cannot wait to test it!! :D

OK, I managed to build new version for you - link. Try this and please report back with log contents. I hope it'll fix all problems with your proxy server.

Thanks!! I will try it as soon as i can!!
« Last Edit: 19 Aug '06 - 04:55 by adscvr »

adscvr

  • Posts: 14
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #212 on: 22 Aug '06 - 13:46 »
It didn't work... :'(

Something weird has happened: I closed xmplay but the log file kept growing in size. I checked the threads of the system and found that xmplay kept running. I didn't occur with the previous build of the plugin.

Attached is the log file.

Thanks!


yagood

  • Posts: 215
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #213 on: 22 Aug '06 - 14:08 »
 :o

There must be something wrong with this network library I'm using, it cannot handle your NTLM proxy properly, I'm going to have some chat with developers, maybe they can come up with something, maybe it's a bug in libcurl... Thanks for your report, I'll try to fix it as soon as possible.

yagood

  • Posts: 215
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #214 on: 22 Aug '06 - 14:33 »
OK, one more build to try, probably the last one. If this won't work, I'll need to find new way of doing network stuff...

adscvr

  • Posts: 14
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #215 on: 22 Aug '06 - 15:56 »
OK, one more build to try, probably the last one. If this won't work, I'll need to find new way of doing network stuff...

It has the same date, time and size that the previous one. Is it really a new build? :o

yagood

  • Posts: 215
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #216 on: 22 Aug '06 - 16:18 »
Hmm, yes, it's a new build. Try this link.

adscvr

  • Posts: 14
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #217 on: 22 Aug '06 - 16:31 »
Hmm, yes, it's a new build. Try this link.

It didn't work... :(

yagood

  • Posts: 215
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #218 on: 22 Aug '06 - 17:27 »
OK, thanks for testing, there's not much I can do as probably I'll need to rewrite some networking code and have no time for this right now, because of very important exam at the university coming in a week, so you'll have to be patient, sorry...

You can try using cache file - listen to music at work and then try to submit it at home just by copying xmp-scrobbler.cache.
« Last Edit: 22 Aug '06 - 17:29 by yagood »

adscvr

  • Posts: 14
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #219 on: 22 Aug '06 - 18:32 »
OK! Thank you and good luck with your exam!!

Torkell

  • Posts: 1169
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #220 on: 22 Aug '06 - 23:42 »
You could try using WinHTTP, Urlmon or similar. IIRC they use the Internet Explorer HTTP stack, and so should speak to all NTLM proxies (as well as detect your browser proxy settings).

yagood

  • Posts: 215
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #221 on: 23 Aug '06 - 01:00 »
Thanks for the advice. I'm considering using WinINet API as it works fine for Winamp plugin. I really wanted to make it work with libcurl, I talked to devs on IRC, but there was no clear solution... I'll post to their mailing list, because this behavior looks like some internal bug with handling NTLM authentication in libcurl. After the exam I'll decide how to resolve this situation.

nihq

  • Guest
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #222 on: 23 Aug '06 - 11:58 »
I have a strange problem that I didn't have with any previous versions. I'm on 0.5b, and each time it submits a track to last.fm, it freezes the whole computer (except for the mouse cursor) for a few seconds. I'm no computer wizard but it seems pretty self-evident that it's hogging up all system resources and/or bandwidth for itself while submitting. Is there a way I could overcome this or do I just wait for a new build?

The problem shouldn't be of system resources since previous versions have been pretty much invisible with regards to processor use. Anyhow, my setup is a Celeron 2800mhz, winXP, 256mb RAM.

yagood

  • Posts: 215
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #223 on: 23 Aug '06 - 12:56 »
Hm, strange indeed. So version 0.5 works fine, right? Not much has been changed from 0.5 to 0.5b, but if you could provide xmp-scrobbler.txt log file, that would be helpful, thanks.

nihq

  • Guest
Re: XMPlay Audioscrobbler plugin (xmp-scrobbler)
« Reply #224 on: 23 Aug '06 - 14:44 »
I think I jumped straight to 0.5b from some earlier one, might have been 0.2 or even 0.1. I had crashes with some version, but that has been sorted out already as I recall. I guess it might do good to test each version's functionality on this setup while waiting for a fix. :P

Here's a portion of the logfile (one day's content)

http://www.cerencenk.com/forumss/scrobblerlog.txt