Here's a python script to monitor your folder tree and automatically enqueue downloaded tracks into winamp. It's not the same as listening while the songs stream, you'll have to give The Last Ripper a head start on the downloading, and it's very inefficient for large directory trees, so don't monitor your whole collection with it. It relies on CLAMP. Just change the path_to_watch and path_to_clampexe and run with python.
import os, time
path_to_watch = "."
path_to_clampexe = "c:\Program Files\Winamp\CLAmp.exe"
before = []
for path,dirs,files in os.walk("."): before.extend([os.path.join(path,f) for f in files])
while 1:
time.sleep (10)
after = []
for path,dirs,files in os.walk("."): after.extend([os.path.join(path,f) for f in files])
added = [f for f in after if not f in before]
removed = [f for f in before if not f in after]
if added:
print "Added: ", ", ".join (added)
for a in added:
if a.endswith("mp3"):
os.system('""%s" /pladd "%s"' % (path_to_clampexe, os.path.abspath(a)))
if removed: print "Removed: ", ", ".join (removed)
before = after
That code, by the way, is adapted from Tim Golden's site On the Win32 How Do I...? page he says "these are designed to be cut-and-pasted straight into a .py file", which isn't an official copyright statement. As far as I'm concerned, do what you want with the above, but if you're going to do anything commercial with it (why would you?) I'd talk to him.
this tool IS easy to use, just don't expect to hear anything, it's just recording. and it is NOT recording the music you are listening to on last.fm simultaneously, it's more like you start another player on last.fm, playing different songs. understood? so, when u first start it, enter your username and password form the last.fm account WHICH IS NEEDED!!! then go to the "storage" flag and browse a folder, you want to store the mp3s in. then (so damn easy folks) press LOGIN. now under "find music" you can use the same functions as on the last.fm site. just like "tag" search or so. try it. you can even copy the url you are listening to (like when you are listening to "U2" similar artists -> http://www.lastfm.de/listen/artist/U2/similarartists) to the URL flag. man..whatever...still don't get it? then please...go and play with barbie but don't break it's arms.
Nice app however the ability to click a button and say "Stop downloading after current song" would be nice as currently "quitting" the app will cut off a song.
Also a plugin to allow the user to hear the tune being downloaded would be nice (as the Love/Hate buttons are meaningless without this.)
Is there a way to download only songs by a specific artist? Or songs from a specific album? Or, even, specific songs? I have had little luck with any other than the "Artist" button for artists (which downloads from their "Similar Artist" radio.
I agree, according to laserc's cocky comments this should be easy. In fact took that exact url he suggested and pasted it in to the url block clicked tune in and nothing. so is this a bug?
"it is not intended to listen to the music with TheLastRipper??. So why are there buttons for Love/Hate/Skip?? "
was really a good one formusek..Totally agree with you..How could I know I'd hate or love a song while nNOT listening? My wish is if the Admins reading this comments: Please give us oportunity to listen what we're recording..Pleeasseee And few things...Some options with the recording place or name should be nice..Name is enhough with the "Artist - Song name" Seperate folders are needless I think..
"Admins"/developers are reading your comments... And the current beta version, not that I've worked on it, has playback support using a thirdparty player... It's not easy (as in userfriendly), but possible... And I think changing the directory scheme is possible too...
Its almost laughable that people haven't been able to figure this out yet...butttttt... if you log in on last.fm after you log in to the ripper then whatever your playin in last fm will record, try it it works. I started ripping from lastfm://artist/Seba/similarartists and then went to that on last.fm as well and whatever i do on last.fm goes along with the ripper, if you change songs itll continue ripping but it will be th ennew song, try it!!
it works for me, found out that u sample what u record after it's been recorded... may i suggest there be a sound so we can hear while we record, not after we record...
madhatr... wrote: "if you log in on last.fm after you log in to the ripper then whatever your playin in last fm will record... whatever i do on last.fm goes along with the ripper, if you change songs itll continue ripping but it will be th ennew song"
?? If I log in on the last.fm website after logging in witht he ripper (with the same username), the music plays fine from the website, and the ripper stops recording when finished witht he current song. I may be laughable, but can't make it work as you suggest.
I use this 'silent' app as follows: I create a PlayList? on the website, adding all the stuff I want to record, then start it playing from LastRipper? and leave the house for work, shopping, whatever. When I come back home, there's quite a lot of loot in my target dir.
If I want to record a specific song, I navigate as close to it as possible, opening the artist, let it play and skip every song I do NOT want. All this time I have "Audacity" recording from device "Stereomix".
Once my song has been played (which, of course, I don't skip ;) I stop Audacity and trim the WAV, then export it to MP3. Some songs you can even tell LastFM to play a specific song directly. (Up to 3 times)
Vista Users: Device Stereomix is not visible by default, so in settings, you'll first have to switch the "View disabled Devices" to ON, then enable the 'Stereomix'.
Thanks for a wounderful program, but why cant i save more than one song from each artist/album? It seeems LastRipper? overwrite the song i ripped before from the same album? Its seems to be a known issue since other versions of LastRipper? so when will it be fixed?
Play while ripping: TheLastInstaller?_v131b4 & MiniWebRadioPlayer?http://www.arpoon.de/downloads/WRPlayer.exe WebRadio? TheLastRipper?=http://localhost:8000 TheLastInstaller?_v131b4 works only on Port 8000 and it needs an path in "Quarantine" to "skip existing music". Thanks for the wounderful Work.
Play while ripping: TheLastInstaller?_v131b4? & MiniWebRadioPlayer?? http://www.arpoon.de/downloads/WRPlayer.exe WebRadio?? TheLastRipper??=http://localhost:8000 TheLastInstaller?_v131b4? works only on Port 8000 and it needs an path in "Quarantine" to "skip existing music". Thanks for the wounderful Work.
Please explain a bit more.. I get "Unable to connect" in MiniWebRadioPlayer? :(
great little app! for those who expected a version with live listening just download the latest beta (131b4) go to the network tab ...and read the instructions :)
Great little app - love it!! - excellent work, thanks a lot!!
To listen to the sound live in Itunes while recording (in beta version 131b5) open a new audio stream (top menu in Itunes) and enter 127.0.0.1:8000 - and viola! you can hear the sound. Hope this helps somebody.. :-)
it isn't working. there's a message, "no station found, please change and restart ripping". it doesn't matter how much times i change the station, it always appears this thing. what am i supposed to do ?
Is this project abandoned? It has such great potential, it would be great if some things could be updated and fixed... hope to see some help files soon
It's not completely abandoned... But I think some of the developers... Me included are busy with other projects for the moment being... And the current release works (not perfect), but it works... :)
it isn't working. there's a message, "no station found, please change and restart ripping". it doesn't matter how much times i change the station, it always appears this thing. what am i supposed to do ?
I have exactly the same problem. Does this have anything to do with the recent changes in last.fm (I don't live in the UK, US or DE) or is there another way to fix this?
Maybe I'm just slow, but what exactly happens when you press the love/hate button? Is there a way to blacklist a certain artist or tag? Is there an option to baloon/tooltip when a new track is started, so we don't have to check every so often to see what's playing right now?
Beside that undocumented information, nice program, works smooth with a minimum load.
I love the program, i discovered tons of artists i otherwise would never have heard of! But: an Autotstart- function would be great, so it just tunes in on my last entry (and setting) as i boot the computer. Instead of a Screen Message telling it didnt find a match id rather have it keep looking in intervalls, so i wont be bothered and it will eventiually find what im looking for.
While in the Currently Recording state, use a media player to listen to the stream directly from The Last Ripper process. In foobar2000, do ctrl+u, or Winamp ctrl+l to add an internet "location". By default, the address will be:
Remember that if you skip tracks, you'll hear any buffered music first before the player skips to the next track. You can also stop then play that stream to start listening to the "fresh" music that is coming down.
Remember also to stop listening via the last.fm website at the same time!
This Worked perfectly for me. Now I can hear what Im recording.
Hi, I have a problem with the program and G-Data Antivirus. Sometimes when the recording of a song has finished, the antivirus starts scanning the recorded file. The leads to a timeout error:
"Timeout for action in System.Net.HttpWebRequest?.GetResponse?() in LibLastRip?.LastManager?.StartRecording?"
how i can save the music file?
Cannot hear music
it is not intended to listen to the music with TheLastRipper?. So why are there buttons for Love/Hate/Skip??
cannot hear music
I have no clue how to use it. Some real help file would be most welcome.
Here's a python script to monitor your folder tree and automatically enqueue downloaded tracks into winamp. It's not the same as listening while the songs stream, you'll have to give The Last Ripper a head start on the downloading, and it's very inefficient for large directory trees, so don't monitor your whole collection with it. It relies on CLAMP. Just change the path_to_watch and path_to_clampexe and run with python.
import os, time path_to_watch = "." path_to_clampexe = "c:\Program Files\Winamp\CLAmp.exe" before = [] for path,dirs,files in os.walk("."): before.extend([os.path.join(path,f) for f in files]) while 1: time.sleep (10) after = [] for path,dirs,files in os.walk("."): after.extend([os.path.join(path,f) for f in files]) added = [f for f in after if not f in before] removed = [f for f in before if not f in after] if added: print "Added: ", ", ".join (added) for a in added: if a.endswith("mp3"): os.system('""%s" /pladd "%s"' % (path_to_clampexe, os.path.abspath(a))) if removed: print "Removed: ", ", ".join (removed) before = afterThat code, by the way, is adapted from Tim Golden's site On the Win32 How Do I...? page he says "these are designed to be cut-and-pasted straight into a .py file", which isn't an official copyright statement. As far as I'm concerned, do what you want with the above, but if you're going to do anything commercial with it (why would you?) I'd talk to him.
this tool IS easy to use, just don't expect to hear anything, it's just recording. and it is NOT recording the music you are listening to on last.fm simultaneously, it's more like you start another player on last.fm, playing different songs. understood? so, when u first start it, enter your username and password form the last.fm account WHICH IS NEEDED!!! then go to the "storage" flag and browse a folder, you want to store the mp3s in. then (so damn easy folks) press LOGIN. now under "find music" you can use the same functions as on the last.fm site. just like "tag" search or so. try it. you can even copy the url you are listening to (like when you are listening to "U2" similar artists -> http://www.lastfm.de/listen/artist/U2/similarartists) to the URL flag. man..whatever...still don't get it? then please...go and play with barbie but don't break it's arms.
Nice app however the ability to click a button and say "Stop downloading after current song" would be nice as currently "quitting" the app will cut off a song.
Also a plugin to allow the user to hear the tune being downloaded would be nice (as the Love/Hate buttons are meaningless without this.)
being able to listen would make this the perfect app!!!
Is there a way to download only songs by a specific artist? Or songs from a specific album? Or, even, specific songs? I have had little luck with any other than the "Artist" button for artists (which downloads from their "Similar Artist" radio.
I agree, according to laserc's cocky comments this should be easy. In fact took that exact url he suggested and pasted it in to the url block clicked tune in and nothing. so is this a bug?
running the ubuntu pkg on intrepid
The urls you can play starts with lastfm:// You can see some of them in appendix A here: http://code.google.com/p/thelastripper/wiki/LastFM12UnofficialDocumentation
"it is not intended to listen to the music with TheLastRipper??. So why are there buttons for Love/Hate/Skip?? "
was really a good one formusek..Totally agree with you..How could I know I'd hate or love a song while nNOT listening? My wish is if the Admins reading this comments: Please give us oportunity to listen what we're recording..Pleeasseee And few things...Some options with the recording place or name should be nice..Name is enhough with the "Artist - Song name" Seperate folders are needless I think..
"Admins"/developers are reading your comments... And the current beta version, not that I've worked on it, has playback support using a thirdparty player... It's not easy (as in userfriendly), but possible... And I think changing the directory scheme is possible too...
Its almost laughable that people haven't been able to figure this out yet...butttttt... if you log in on last.fm after you log in to the ripper then whatever your playin in last fm will record, try it it works. I started ripping from lastfm://artist/Seba/similarartists and then went to that on last.fm as well and whatever i do on last.fm goes along with the ripper, if you change songs itll continue ripping but it will be th ennew song, try it!!
this program downloads the whole songs or part of them?
It records the whole songs... unless there's a bug at last.fm serverside...
You could made that program also search entire albums in LastFM rather than separate songs, what do you think?
it works for me, found out that u sample what u record after it's been recorded... may i suggest there be a sound so we can hear while we record, not after we record...
madhatr... wrote: "if you log in on last.fm after you log in to the ripper then whatever your playin in last fm will record... whatever i do on last.fm goes along with the ripper, if you change songs itll continue ripping but it will be th ennew song"
?? If I log in on the last.fm website after logging in witht he ripper (with the same username), the music plays fine from the website, and the ripper stops recording when finished witht he current song. I may be laughable, but can't make it work as you suggest.
I use this 'silent' app as follows: I create a PlayList? on the website, adding all the stuff I want to record, then start it playing from LastRipper? and leave the house for work, shopping, whatever. When I come back home, there's quite a lot of loot in my target dir.
If I want to record a specific song, I navigate as close to it as possible, opening the artist, let it play and skip every song I do NOT want. All this time I have "Audacity" recording from device "Stereomix".
Once my song has been played (which, of course, I don't skip ;) I stop Audacity and trim the WAV, then export it to MP3. Some songs you can even tell LastFM to play a specific song directly. (Up to 3 times)
Vista Users: Device Stereomix is not visible by default, so in settings, you'll first have to switch the "View disabled Devices" to ON, then enable the 'Stereomix'.
Thanks for a wounderful program, but why cant i save more than one song from each artist/album? It seeems LastRipper? overwrite the song i ripped before from the same album? Its seems to be a known issue since other versions of LastRipper? so when will it be fixed?
Play while ripping: TheLastInstaller?_v131b4 & MiniWebRadioPlayer? http://www.arpoon.de/downloads/WRPlayer.exe WebRadio? TheLastRipper?=http://localhost:8000 TheLastInstaller?_v131b4 works only on Port 8000 and it needs an path in "Quarantine" to "skip existing music". Thanks for the wounderful Work.
Play while ripping: TheLastInstaller?_v131b4? & MiniWebRadioPlayer?? http://www.arpoon.de/downloads/WRPlayer.exe WebRadio?? TheLastRipper??=http://localhost:8000 TheLastInstaller?_v131b4? works only on Port 8000 and it needs an path in "Quarantine" to "skip existing music". Thanks for the wounderful Work.
Please explain a bit more.. I get "Unable to connect" in MiniWebRadioPlayer? :(
great little app! for those who expected a version with live listening just download the latest beta (131b4) go to the network tab ...and read the instructions :)
oops! make that 131b5
Great little app - love it!! - excellent work, thanks a lot!!
To listen to the sound live in Itunes while recording (in beta version 131b5) open a new audio stream (top menu in Itunes) and enter 127.0.0.1:8000 - and viola! you can hear the sound. Hope this helps somebody.. :-)
how to put songs under same folder?
it isn't working. there's a message, "no station found, please change and restart ripping". it doesn't matter how much times i change the station, it always appears this thing. what am i supposed to do ?
Is this project abandoned? It has such great potential, it would be great if some things could be updated and fixed... hope to see some help files soon
It's not completely abandoned... But I think some of the developers... Me included are busy with other projects for the moment being... And the current release works (not perfect), but it works... :)
it isn't working. there's a message, "no station found, please change and restart ripping". it doesn't matter how much times i change the station, it always appears this thing. what am i supposed to do ?
I have exactly the same problem. Does this have anything to do with the recent changes in last.fm (I don't live in the UK, US or DE) or is there another way to fix this?
you guys are absolutely awesome! Keep up the great work.
Maybe I'm just slow, but what exactly happens when you press the love/hate button? Is there a way to blacklist a certain artist or tag? Is there an option to baloon/tooltip when a new track is started, so we don't have to check every so often to see what's playing right now?
Beside that undocumented information, nice program, works smooth with a minimum load.
I love the program, i discovered tons of artists i otherwise would never have heard of! But: an Autotstart- function would be great, so it just tunes in on my last entry (and setting) as i boot the computer. Instead of a Screen Message telling it didnt find a match id rather have it keep looking in intervalls, so i wont be bothered and it will eventiually find what im looking for.
Keep up the good, its much appreciated!
Thanks to the great tip of thartmann. Listening to sound works great with that hint. I´m using VLC 0.9.8 as player.
" To listen to the sound live in Itunes (or VLC) while recording open a new audio stream and enter 127.0.0.1:8000 .."
" To listen to the sound live in Itunes (or VLC) while recording open a new audio stream and enter 127.0.0.1:8000 .."
doesn't work. cuts off connection.
IF YOU CAN'T HEAR THE MUSIC!!! :-) Try this:
While in the Currently Recording state, use a media player to listen to the stream directly from The Last Ripper process. In foobar2000, do ctrl+u, or Winamp ctrl+l to add an internet "location". By default, the address will be:
http://localhost:8000/
Remember that if you skip tracks, you'll hear any buffered music first before the player skips to the next track. You can also stop then play that stream to start listening to the "fresh" music that is coming down.
Remember also to stop listening via the last.fm website at the same time!
This Worked perfectly for me. Now I can hear what Im recording.
Awesome thanks for the tip mcaval !!
Hi, I have a problem with the program and G-Data Antivirus. Sometimes when the recording of a song has finished, the antivirus starts scanning the recorded file. The leads to a timeout error:
"Timeout for action in System.Net.HttpWebRequest?.GetResponse?() in LibLastRip?.LastManager?.StartRecording?"
How can this be fixed?