LastFMProxy » Diskussionen

lastFmProxy version 1.4c

 
    • jbond schrieb...
    • Benutzer
    • 20. Jul. 2010, 14:33

    lastFmProxy version 1.4c

    Congrats to Gabi for the latest version.

    1. main.py around line 528. This seems backwards. If peerip isn't equal to config address we need to download lastfm.m3U

    2. line 221 and 234 Hard coded disk locations? Windows specific calls?
    I'm running lastfmproxy on a remote buffalo linkstation so it doesn't bother me...

    3. line 387 is causing me problems with utf decode errors. haven't found the problem yet but this fixes it temporarily.
    cont = cont + "np_" + tmp + " = '" + string.replace(m[tmp], "'", "\\'") + "';\n"

    Just Say No To DRM skype:julian.bond?chat
  • jbond's comment on lastFmProxy version 1.4c

    Hi jbond,

    thanks for your congrats.

    You exactly pointed out (1.+2.) the experimental enhancement I tried to start the proxy remotely via http from an other machine. I have a server running for this purpose that is listening on the 1881 port and then starts the python scripts. If I open the m3u file on Windows WinAmp gets fired up. If a shoutcast server is running it connects automatically and you can listen to last.fm with several internet radios.

    Are you a programmer? If there's any idea to avoid the Windows path, let me know.

    ad 3.: This is from vidarino's code. I can include the fix in the next version v1.4e.

    Version 1.4d is available now, it contains a minor fix for cable modem users. It's based on vladale's questions.

    You say yor are running it on a remote buffalo linkstation. Quite interesting! I have one, too. How did you do that?

    Gabi

    • pravussum schrieb...
    • Benutzer
    • 24. Jul. 2010, 12:57

    where can I get it?

    Hi there,

    where can I get the 1.4 version of lastfmproxy? The modifications at
    http://voidstar.com/downloads or
    http://github.com/php1/lastfmproxy-2.0/

    seem to be pretty old?

  • Download it here

    Hi pravussum,
    lastFmProxy version 1.4d is available at http://www.gabifrings.de/download.html .
    Gabi

    • jbond schrieb...
    • Benutzer
    • 26. Jul. 2010, 9:58

    Programming!

    I'm a programmer but a real novice at python. I can just about read it, but I don't know enough to really work at it. I was the one who fixed 1.3 to partially work with the new API.

    On the Buffalo Linkstation (LS-CH500) I eventually found a way of getting a command line and getting it set up to allow optware with ssh. Then it was fairly simple to install python, copy lastfmproxy over and create a script to run it.
    Try http://buffalo.nas-central.org/wiki/Category:LS-CHL
    http://forum.buffalo.nas-central.org/viewtopic.php?f=37&t=11391

    Here's my script to kickstart the proxy
    #!/bin/sh
    if [ -n "`pidof python`" ] ;then
    killall python > /dev/null
    fi
    nohup python /mnt/disk1/share/lastfm/lastfmproxy/main.py & > /dev/null

    Just Say No To DRM skype:julian.bond?chat
    • jbond schrieb...
    • Benutzer
    • 26. Jul. 2010, 10:04

    Love and Ban

    I haven't been able to get love and ban working yet. They both return INTERNALERROR.

    I've copied my API key and secret into config.py
    The command line says
    Please point your browser to the following url for authentication:
    http://www.last.fm/api/auth?api_key=d50ed5584be64a1564a5d1a12e3fef7f
    But when i hit "yes, allow access" I get 404 page not found.
    Looks like a last.fm problem. Anyone made it work?

    Just Say No To DRM skype:julian.bond?chat
    • jbond schrieb...
    • Benutzer
    • 26. Jul. 2010, 10:05

    APi key

    BTW. I see an API account for lastfmproxy
    Your API Key is d50ed5584be64a1564a5d1a12e3fef7f
    Your secret is 57cf4bdb963f822c0dfca58f5afe8eaa

    Just Say No To DRM skype:julian.bond?chat
    • jbond schrieb...
    • Benutzer
    • 26. Jul. 2010, 10:39

    OK. Sussed it, I think

    You're using web appplication auuthentication. So the call to http://www.last.fm/api/auth?api_key= needs to be done every time the proxy starts up. It then needs to callback to /callback and the session key is then stored.

    Perhaps we'd be better off using http://www.last.fm/api/auth?api_key=
    http://www.last.fm/api/mobileauth
    Then everything needed for the authentication can be stored in config.py and it can be done with no user interaction because we calreayd have the userid and password (from config.py)

    Just Say No To DRM skype:julian.bond?chat
    • kiai72 schrieb...
    • Benutzer
    • 1. Okt. 2010, 6:28

    problem with 1.4d authorisation

    hello,

    i'm running lastfmproxy on a fritz 7270 (cross compiled python for MIPS).
    actually it's almost running, but i have a problem with the auth, how 1.4d is doing it:
    1. it tries to open a browser at startup - of course the fritzbox can not ope a browser.
    but this is a minor problem - of course i can open this URL manually at my PC.
    2. this is a big problem:
    i need to set up my fritzbox portforwarding to forward 1881 to the machine, where the lastfmproxy is running.
    How should i do this ? the machine, where the proxy is running - is the fritzbox itself!
    the fritz configuration utility does not allow a portforwarding to the box itself - and without port-forwarding it dows not work either.

    does anybody have a solution for this ? or isn't there a simpler way to solve this auth-problem ?

    thank you in advance.

    • HelgeBS schrieb...
    • Benutzer
    • 2. Okt. 2010, 18:44

    Re: problem with 1.4d authorisation

    Hello kiai72,

    I have a Fritz!Box 7170 but don't have python running on it. So just from my understanding:
    1. Just find the place in the code and comment out the browser startup code.
    2. Portforwarding is not required at all. Just make sure not to listen on localhost (127.0.0.1) only but on the lan network. Go to the config.py and edit the bind_address to match the IP of your lan card (use ifconfig on the box to find out).

  • do I need to apply for my own api_key and api_secret?

    Brothers
    I do respect all the evolution you provided for LastFMProxy project.

    I just still need to clarify a small question - do I need to apply for my own api_key and api_secret?

    Or I can simply reuse API Key d50ed5584be64a1564a5d1a12e3fef7f mentioned above. And what about secret one?

    Any help on this will be much appreciated

Anonyme Benutzer dürfen keine Beiträge schreiben. Bitte log dich ein oder registriere dich, um Beiträge in den Foren schreiben zu können.