User(s) browsing this thread: 1 Guest(s)
[AUDIO] lastfm script (bookmarks, auto-login, etc.)
|
|
02-25-2009, 09:03 PM
|
|||
|
|||
|
RE: [AUDIO] lastfm script (bookmarks, auto-login, etc.)
Script works fine for me
many tnx!but there is just one problem.... I put the hole thing in the folder Music/Last.fm Changed the CACHE path in the config.txt to: CACHE_DIR='/share/Music/Last.fm/lastfm-cli-cache' Edited the .html for the url to: http://localhost.drives:8883/HARD_DISK/M...?bookmarks I added a link in the web services page to: http://localhost.drives:8883/HARD_DISK/M...marks.html This is the link I use to start the html and cgi etc.. Works fine, but when I stop using it and want to start it again the error appears and have to reboot the popcorn... anyone? |
|||
|
02-25-2009, 09:56 PM
|
|||
|
|||
RE: [AUDIO] lastfm script (bookmarks, auto-login, etc.)
(02-25-2009 09:03 PM)Boui Wrote: Script works fine for me There is a bug in the script -- you cannot play anything anymore after playing a last.fm station. I've solved it already and will post a new version after some testing (but so far everything seems to work fine). |
|||
|
02-26-2009, 11:09 AM
|
|||
|
|||
|
RE: [AUDIO] lastfm script (bookmarks, auto-login, etc.)
I'm looking forward to it.
|
|||
|
02-27-2009, 02:47 PM
|
|||
|
|||
|
RE: [AUDIO] lastfm script (bookmarks, auto-login, etc.)
Can i use this to scrobble my music on the local NMT system to the last.fm site?
or is there a way to get such a script? |
|||
|
03-01-2009, 01:50 AM
(This post was last modified: 03-01-2009 11:43 AM by tonne.)
|
|||
|
|||
|
RE: [AUDIO] lastfm script (bookmarks, auto-login, etc.)
Hi,
when I use this app, the songs are downloaded to the cache dir but they are not played. Code: /opt/sybhttpd/localhost.drives/HARD_DISK/Music/lastfm-cli-cache # ls -lThe pch screen is shown for a short time, then the message "Could not play" appears. Any hints to figure out the problem? [/solved] Solution: A command in last-cli.cgi is pointed to php5-cgi, but php5-cgi, that seems to be located in Code: /mnt/syb8634/server/Code: cd /mnt/syb8634/server
tonne ~~~~~~~~~~~ Popcornhour A100 dbox2 |
|||
|
03-01-2009, 03:40 PM
(This post was last modified: 03-01-2009 03:42 PM by wickedgame76.)
|
|||
|
|||
|
RE: [AUDIO] lastfm script (bookmarks, auto-login, etc.)
Really cool this script is working again a little. I'm doing something stupid somehow; I've ftped everything to my PCH, have setted the specific attributes. But when displaying the lastfm bookmark file displays the contents of the cgi file on my tv. What do i do wrong?
And another question: http://<ip pch>:8883/HARD_DISK/lastfm-bookmarks.html gives me a 404 page not found. Am i looking at the wrong location? |
|||
|
03-01-2009, 08:49 PM
|
|||
|
|||
|
RE: [AUDIO] lastfm script (bookmarks, auto-login, etc.)
Version 0.2.1 is now available -- see the first post. Anyone willing to make some nice CSS style for that?
|
|||
2 users say Thank You to mk11 for this post |
|
03-01-2009, 10:30 PM
|
|||
|
|||
RE: [AUDIO] lastfm script (bookmarks, auto-login, etc.)
(03-01-2009 08:49 PM)mk11 Wrote: Version 0.2.1 is now available -- see the first post. Anyone willing to make some nice CSS style for that? Hi mk11, works fine, thank you. ![]() A little bit "off topic": Usually I'm using mpd as my favorite player on Ubuntu. This script (mcf) worked fine for playing lastfm stations but a few weeks ago it stopped working. I think lastfm did some changes. I've read in this thread that your script stopped working too a few weeks ago, so I hope you can help. Some info: Code: mympd:/tmp# ./mcf a stingIt seems to work, but nothing happens. mpd / mpc shows this stream url, but mpd does not play: Code: http://195.24.233.49:80/last.mp3?Session=003c30787fb63c36fe1688d46f4988mpd error log Code: Input does not appear to be a mp3 bit stream.tonne ~~~~~~~~~~~ Popcornhour A100 dbox2 |
|||
|
03-01-2009, 10:53 PM
|
|||
|
|||
|
RE: [AUDIO] lastfm script (bookmarks, auto-login, etc.)
@tonne: indeed, there was some change in the last.fm protocol. If you want to use mpd, you can either (1) modify the mcf script (you can see my script for reference -- the protocol is pretty simple and most of the "hacks" that are there are because of the bugs in "mono", the NMT media player), or (2) feed the playlists generated by my script to mpd (if you run the script from the command-line, with a station name as an argument, then it will output a list of links for the next few songs to play -- take the string up to the first '>' and then the stream url of a given song is http://play.last.fm/user/{the string}.mp3).
|
|||
|
03-02-2009, 12:18 AM
(This post was last modified: 03-02-2009 07:18 AM by tonne.)
|
|||
|
|||
|
RE: [AUDIO] lastfm script (bookmarks, auto-login, etc.)
Hi mk11,
thank you for your quick answer. I tried to figure out what went wrong with the mcf script and followed this guide. But the returned stream url from last.fm doesn't play any music. ![]() In fact I think the mcf script does exactly what the guide describes. I hope to get the mcf script working again because it is a slim possibility to play last.fm stations and I don't want to use LastfmProxy. What are the changes in the last.fm protocol? Unfortunately I'm not very familiar with shell or cgi programming. Please can you tell me what the important sections are (in your script) in relation to the mcf script? tonne ~~~~~~~~~~~ Popcornhour A100 dbox2 |
|||
|
03-02-2009, 10:10 AM
|
|||
|
|||
RE: [AUDIO] lastfm script (bookmarks, auto-login, etc.)
(03-02-2009 12:18 AM)tonne Wrote: Hi mk11, If you skip the parts of the script written in awk and php, then the rest is very short and describes the protocol pretty well. Otherwise, you can still use the script as it is and feed its output directly to mpd -- you just have to parse the output of the script run from the command-line, e.g., "lastfm-cli.cgi globaltags/jazz" (see my previous post). |
|||
|
03-02-2009, 01:01 PM
|
|||
|
|||
RE: [AUDIO] lastfm script (bookmarks, auto-login, etc.)
Quote:Anyone willing to make some nice CSS style for that? willing, yes, but it don't work like it should
|
|||
|
03-02-2009, 01:06 PM
|
|||
|
|||
| RE: [AUDIO] lastfm script (bookmarks, auto-login, etc.) | |||
|
03-02-2009, 01:23 PM
|
|||
|
|||
|
RE: [AUDIO] lastfm script (bookmarks, auto-login, etc.)
if I add something to the config.txt nothing happend, when I reload the html,
I know very little about css, so I try somthin easy like background-color: #3366FF but nothing change
|
|||
|
03-02-2009, 09:14 PM
(This post was last modified: 03-02-2009 09:16 PM by wickedgame76.)
|
|||
|
|||
|
RE: [AUDIO] lastfm script (bookmarks, auto-login, etc.)
Hmm. Can anyone explain why i just see the source code of the cgi file on my tv? (if you help me out i can do some css styling ;-)
|
|||
|
« Next Oldest | Next Newest »
|

Twitter
Facebook
NMT Wiki
Search
Member List
Help
A-400 [13 May 2013]

[AUDIO] lastfm script (bookmarks, auto-login, etc.)


many tnx!
![[+]](images/collapse_collapsed.gif)




