📜 ⬆️ ⬇️

Last.FM and 3proxy

I did not find a suitable lotion to listen to Last.FM and save the received mp3s, so as not to miss a single introductory second inadvertently [Well, sometimes, a phone distracts there. And on the most interesting track] :)

I decided to try to make a simple version. I haven’t yet reached out to fully implement the HTTP proxy functionality - I’d need to read the RFC. So I decided to use the ready, my favorite, proxy implementation - 3proxy.

This is how the plugin for 3proxy turned out, which processes the HTTP stream passing through it and saves the received audio to files. The protocol itself is not complicated, and everything is obvious if you look at it under the sniffer.

The plugin is configured via text config. Now you can configure:

Config example:
external 0.0.0.0
127.0.0.1 internal
flush
auth iponly
allow *
')
plugin LastFripper.dll lfm_plugin
lfm_folder «mp3 \»
lfm_format "% a -% t.mp3"

proxy -p9393

I don’t know where to put such simple projects, therefore I used the People.
Here now the homepage with the plugin

By the way , the 3proxy build should be 02/26/2009 and fresh, otherwise the plugin will not work.
Thank you 3APA3A for your quick help.

Source: https://habr.com/ru/post/52942/


All Articles