View Full Version : ListenTo this.
Brandon Martus
04-10-2002, 03:18
You can now have what song you are lisetning to automatically appended each and every time you post something on the forums.
You need Winamp3, and a little Maki script I wrote, called ListenTo.
go here for details & instructions (http://www.chiefdelphi.com/listento/)
It will append the song name when replying and posting new threads. It will not change when editing.
It only will show a song that was recorded being played in the past 4 minutes. (time subject to change)
If you'd like to make something like this for your favorite mp3 player, send me an e-mail, and I will give you all the information necessary to make it happen.
Yes, there will be more website-side features, but its 3:30am.. yikes.
Trashed20
05-10-2002, 11:09
are you going to be really cool and make the source for the maki and php script available? cause this would be cool for many sites, with due credit of course :)
Jeff Waegelin
05-10-2002, 12:35
How do I put this in my signature? It's not working for me.
Brandon Martus
05-10-2002, 14:17
Originally posted by Trashed20
are you going to be really cool and make the source for the maki and php script available? cause this would be cool for many sites, with due credit of course :)
Eventually, yes.
I have to take out the hard-coded URL in the script, so that other people can use it.
That will happen next version. :-)
Jeff Rodriguez
05-10-2002, 16:11
Anyway to make it work for winamp 2.8x?
Brandon Martus
05-10-2002, 17:08
A plug-in will have to be written for Winamp 2.x, if you want it to work.
I don't plan on doing a 2.x version. If anybody is interested, I will tell them what all is required to be sent to the URL to make it work correctly.
Same with any other media player.
For all you Mac users: I have an AppleScript I may try to modify, so this will work with iTunes. We'll see.
Clark Gilbert
06-10-2002, 15:52
Is this just random and it puts it in only sometimes? I've posted about 4 times since i've been using it and none of them have showed up...
Anyone wanna help me out?
oh ya..if i look under my history it puts
(fixed)
Could it be that i'm editing the xml thingy wrong?
Originally posted by Clark Gilbert
Is this just random and it puts it in only sometimes? I've posted about 4 times since i've been using it and none of them have showed up...
Anyone wanna help me out?
oh ya..if i look under my history it puts
http://www.chiefdelphi.com/forums/postmp3.php?USER=Username%20Here&PASS=123123_brandon_was_here&ARTIST=Alien%20Breed&ALBUM=Visit%20alienbreed.com&TITLE=Crackling&GENRE=Alternative&YEAR=2001
Could it be that i'm editing the xml thingy wrong? I think you forgot to put in your CD username.. instead of saying USER=Clark%20Gilbert it says USER=Username%20Here
Clark Gilbert
06-10-2002, 16:20
But the XML says
<container id="CDBrow" name="Browser">
<layout id="normal" drawbackground="0" desktopalpha="1">
<layer id="move" x="2" y="2" image="CDBrow.move"/>
<text id="cdUSER" default="Clark Gilbert"/>
<text id="cdPASS" default="PASSWORD REMOVED BY BRANDON :)"/> <--i was wondering about that :D (fixed)-clark
<browser id="brow" x="0" y="0"/>
</layout>
</container>
Brandon Martus
06-10-2002, 18:58
It works like this:
Song plays and Winamp MiniBrowser opens a URL (out of sight)
In the next 4 minutes, any post on the forums will contain that song. Unless of course, another song starts -- in which case that song will show up (for 4 minutes).
I will be making a page on here soon, to show your last 4-5 songs .. and what you are currently listening to. So, if you post, and nothing shows up -- you will be able to go to that page and see if a song was recorded in the past 4 minutes.
So, I don't know why yours is randomly not showing up. I'll make that page right now, so we can make sure stuff is recording properly. ;)
Brandon Martus
07-10-2002, 07:12
Oh yeah.
The following are required for the song to be logged:
username
password
title (id3)
artist (id3)
That could explain why some songs are not being logged.
Yan Wang
07-10-2002, 18:27
Yay, the winamp script is working though the 4min thing makes it so the song doesn't register sometimes.
Chris Nowak
07-10-2002, 18:34
just a thought but is it censored if you are listening to a song with "bad" words in the title? I'm not planning on listening to anything like that but im interested b/c its a mistake someone might make.
Brandon Martus
07-10-2002, 23:04
Originally posted by Brandon Martus
Yes, there will be more website-side features, but its 3:30am.. yikes.
Look up in the 'Site Navigation' drop-down. I threw an item up there so you can see some ListenTo stats.
Or, go to http://www.chiefdelphi.com/forums/mp3list.php
More may be added, thats all I got for now. Time for some TextTwist (http://games.yahoo.com/games/downloads/tx.html)
Brandon, if you'd like to send the stuff my way (evulish[at]epix.net) I could make an attempt to make a plugin for XMMS for the...what? 3 linux users here :) Not that I'll ever use it or anything...but just to make an attempt at programming C :)
Auhg. GTK will be the death of me :rolleyes:
Brandon Martus
08-10-2002, 17:25
oops.. sent it to the registered yahoo address, for your forum account...
o0o. Ok, I got it. I figured it out, actually. Well, besides the md5'd password :) Anyone know how to create md5 sums in C? :P
The configuration is working...now I need to just create the socket stuff (since there's no default browser or anything...the HTTP protocol is simple enough.)
I wish I had a better understanding of C. I don't totally get header files yet :P Though I must say I'm not doing too bad since my own teacher knows nothing about C (yeah...I'm teaching myself...like everything else I have ever learned about computers). Well, it's being created from the helloword plugin on the xmms.org plugins page. But I'm still doing a bit of the work. Most of the plugin layout was done for me...but now it's modified.
I should be done within a week. Or not. I seem to never finish stuff :P (I might actually be done tonight...figuring my headache goes away and I get all nicely registered for the SATs...gotta raise that 1210 into the 1300'S!)
Brandon Martus
08-10-2002, 19:13
The winamp script does not md5.
I store the md5 password in the config file. Use this utility (http://www.chiefdelphi.com/forums/generate.php) to md5 a text string.
You may just wanna do that, instead of actually doing the md5()... unless you want to :)
Well, I'd like to do it in C...just because I can :P Well, at least I might. I'll try. Hehe. Not sure what header file it's in. *Googles* I don't believe it's standard...probably in a crypt package or something. Kernel header? Huh. Whatever.
Auhg...running into major problems...and no clue how to debug :/ Sockets in C suck bad...I WANNA GO BACK TO PERL(#&$(*#$&
Ok...problem with this.
I directly entered this URL into my browser:
http://www.chiefdelphi.com/forums/postmp3.php?USER=evulish?PASS=0c[...]53?ARTIST=dmb?TITLE=dmbljlj
The server replies with 200 (OK). The server didn't update my sig or that page with recently played music. Are you sure it can receive GET? Or did I just b0rk something up. (God I hope it was me...Else I've been working on my program for a few hours for nothing :))
Brandon Martus
08-10-2002, 23:35
url is formed wrong.
filename.extension?var=value&var=value&var=value
you had all ?'s, when you should've only had the first one as a ?.
Ahh...that could be the problem :) I'm so incredibly tired.
Brandon Martus
09-10-2002, 00:05
You may or may not have to url-encode the string, as well.
ie: spaces = %20, etc..
SCORE! I'm on the way. I've got my socket stuff working perfectly. Now I need to get the Title and Artist from the playlist. Not sure if I can figure out when the mp3 changes. Maybe just check to see the location of the playlist. Hmm. I'll dig around the header files tomorrow. I need sleep. Been working too many hours on this.
Most of the problem was due to my ignorance. I forgot all the extra crap HTTP/1.1 needed. After hours on end of figuring out what was wrong, I got the idea to check the RFC. Now it's all clear :)
It's about 300 lines right now. Eek. I figure it won't break 400.
Not sure how I'll do md5 crap. I don't want to really use the stuff on this site. That would be a lot of work. (Open a socket, send the data, retrieve the data) It's harder than it sounds...especially for me...who has only being programming in C for about 3 days :P
Well, now I know I definitly don't want to be a programmer. Debugging sucks. It really does. Coding doesn't take long, but figuring out why it doesnt work is HARD($# (What with gcc errors like: "problem before line 300" and no, it's not talking about line 299. It's talking about some unknown line between 1 and 299)
Anyways, good night.
Auhg. Okay. I officially give up. I decided it's not worth the effort. It would be much of a pain to complete and no one would use it.
To complete it, I'd need to get the track title and artist. This may not seem hard, but it is. Basically, the closest I can get is getting "Artist - Title" from XMMS. So all I would have to do is seperate them, right? Wrong. What if there was a dash in the Artists' name...so it would be like "Ar-tist - Title" How would I be able to figure out which one was the actual Artist and Title? I don't know. If I were to get the filename, I know enough about MP3's to get all the data from the file. But I don't know enough C to be able to do that.
I would also need to be able to get the Md5 sum of the password. I would have to find a header file (or make one myself) for md5. Then I would have to find out how to use it. My other option would be to use Brandon's md5 thing...but that would require another socket...which took me 10 hours to do the first time. I'd rather not do it again.
If anyone knows C and would like this for XMMS, I'd be happy to send you the sourcecode and point you in the right direction. I just don't have enough time/effort/knowledge to complete this.
Brandon Martus
10-10-2002, 22:26
VERSION 1.1 has been released!
Go here (http://www.chiefdelphi.com/listento/) to download the new version.
To upgrade, just erase your 'ListenTo' directory in C:\Program Files\Winamp3\Scripts ... and then re-install. Don't forget to edit the XML file like before, and change your username/password.
Fixes/Updates
reports song after 10% of song has played, instead of instantly on song change
customizeable URL, in case it ever changes (which it shouldn't..but anyway)
open source. steal the script if you wish. its included in the zip (ListenTo.m)
reply here if you have any problems, etc.
Brandon Martus
17-10-2002, 01:40
Hey Mac users...
The iTunes 3 AppleScript is 99.5% done.
I just have to figure out a way to escape quotes in a string
with AppleScript, and it should be ready to distribute.
Anybody know how to escape quotes in a string with AppleScript? :D
Brandon Martus
17-10-2002, 18:50
ListenTo.mac :)
Its over on the ListenTo download page (http://www.chiefdelphi.com/listento/). Instructions are there also.
Kyle Fenton
17-10-2002, 19:06
Originally posted by Brandon Martus
ListenTo.mac :)
Its over on the ListenTo download page (http://www.chiefdelphi.com/listento/). Instructions are there also.
Thank you Brandon very much for writing this script for both Mac and PC. Keep up the good work.
:)
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.