<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/19055" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2013-01-09T12:59:27-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/19055</id>

		<entry>
		<author><name><![CDATA[Tommyken]]></name></author>
		<updated>2013-01-09T12:59:27-04:00</updated>

		<published>2013-01-09T12:59:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100556#p100556</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100556#p100556"/>
		<title type="html"><![CDATA[Spotify artist / song info from URL to text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100556#p100556"><![CDATA[
too bad it don't works for me, i got this error<br>[17:57:23] &lt;SVG&gt; [18:03:21] [spotify] unable to get title/artist info from: <a href="http://open.spotify.com/track/6gotN2zpSrFblWw3qz63s1" class="postlink">http://open.spotify.com/track/6gotN2zpSrFblWw3qz63s1</a><br><br>i had set  .chanset #chan +spotify too (offcours the right chan)<br><br>do i something wrong ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9852">Tommyken</a> — Wed Jan 09, 2013 12:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doggo]]></name></author>
		<updated>2012-08-09T18:30:54-04:00</updated>

		<published>2012-08-09T18:30:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99844#p99844</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99844#p99844"/>
		<title type="html"><![CDATA[Spotify artist / song info from URL to text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99844#p99844"><![CDATA[
my understanding was<br><div class="codebox"><p>Code: </p><pre><code>bind pubm -|- "% *http://open.spotify.com/track/*" spotify:announce </code></pre></div>would only trigger the spotify:announce when it was needed.. and the regexp would pick out the part of the url i needed where as<br><div class="codebox"><p>Code: </p><pre><code>bind pubm -|- "% *" spotify:announce</code></pre></div><br>would trigger for everything typed in the enabled channel ??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11046">doggo</a> — Thu Aug 09, 2012 6:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-08-09T12:53:59-04:00</updated>

		<published>2012-08-09T12:53:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99842#p99842</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99842#p99842"/>
		<title type="html"><![CDATA[Spotify artist / song info from URL to text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99842#p99842"><![CDATA[
What's the point of the regexp if you already match that url in the pubm bind?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Aug 09, 2012 12:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[laikabaus]]></name></author>
		<updated>2012-08-09T06:05:55-04:00</updated>

		<published>2012-08-09T06:05:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99841#p99841</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99841#p99841"/>
		<title type="html"><![CDATA[Spotify artist / song info from URL to text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99841#p99841"><![CDATA[
Hi,<br><br>Thank you very much... made my day. Works well! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12049">laikabaus</a> — Thu Aug 09, 2012 6:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doggo]]></name></author>
		<updated>2012-08-09T18:31:55-04:00</updated>

		<published>2012-08-08T11:29:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99839#p99839</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99839#p99839"/>
		<title type="html"><![CDATA[Spotify artist / song info from URL to text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99839#p99839"><![CDATA[
try this  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> <br><br><div class="codebox"><p>Code: </p><pre><code># spotify.tcl # by doggo #omgwtfnzbs@EFNET #############################set logo "\002\00300,03 Spotify \017"proc spotify:announce {nick uhost hand chan text} { global logoif {[channel get $chan spotify] != 1 } { return }if {[regexp -nocase {http://open.spotify.com/track/([A-Za-z0-9]+)} $text match spotify]} {set html [spotify:getdata "http://open.spotify.com/track/$spotify"]regexp -nocase {&lt;meta property="og:description" content="(.*?), a song by\s(.*?)\son Spotify." /&gt;} $html match title artistif {![info exists title]} {putlog "\[spotify\] unable to get title/artist info from: http://open.spotify.com/track/$spotify"} else {putlog "\[spotify\] fetching: http://open.spotify.com/track/$spotify"puthelp "privmsg $chan :$logo $artist - $title"  } }}proc spotify:getdata {data} {::http::config -useragent "Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.8.1) Gecko/2006101023 Firefox/2.0"set url [::http::geturl $data -timeout 5000]set source_code [::http::data $url]::http::cleanup $source_code return $source_code }package require httpsetudef flag spotifybind pubm -|- "% *http://open.spotify.com/track/*" spotify:announceputlog "spotify.tcl loaded!"</code></pre></div>load the script on the bot, then from the partyline for the channels you want the script to work in<br><div class="codebox"><p>Code: </p><pre><code>.chanset #chan +spotify</code></pre></div>only tested on a few urls.. worked fine  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  enjoy<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11046">doggo</a> — Wed Aug 08, 2012 11:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[laikabaus]]></name></author>
		<updated>2012-08-08T09:20:17-04:00</updated>

		<published>2012-08-08T09:20:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99838#p99838</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99838#p99838"/>
		<title type="html"><![CDATA[Spotify artist / song info from URL to text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99838#p99838"><![CDATA[
Hi,<br><br>Sure thing... <a href="http://open.spotify.com/track/67vnqJqWWlhSSkBj3wUasJ" class="postlink">http://open.spotify.com/track/67vnqJqWWlhSSkBj3wUasJ</a>  , the first part till /track/ is always intact, but the rest depends on the song / artist I'm guessing...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12049">laikabaus</a> — Wed Aug 08, 2012 9:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doggo]]></name></author>
		<updated>2012-08-07T19:52:33-04:00</updated>

		<published>2012-08-07T19:52:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99836#p99836</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99836#p99836"/>
		<title type="html"><![CDATA[Spotify artist / song info from URL to text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99836#p99836"><![CDATA[
got an example of a url? i dont use spotify myself but ill have a look <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11046">doggo</a> — Tue Aug 07, 2012 7:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[laikabaus]]></name></author>
		<updated>2012-08-06T15:31:13-04:00</updated>

		<published>2012-08-06T15:31:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99828#p99828</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99828#p99828"/>
		<title type="html"><![CDATA[Spotify artist / song info from URL to text]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99828#p99828"><![CDATA[
Hi, <br><br>I've been looking for a script that would get the artist &amp; song from Spotify URL when pasted to channel ( <a href="http://open.spotify.com/track/" class="postlink">http://open.spotify.com/track/</a>... )  and type them in text to channel by the Bot. So pretty much similar functionality that is present in Youtube script that gets the video information from Youtube URL pasted on channel. Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12049">laikabaus</a> — Mon Aug 06, 2012 3:31 pm</p><hr />
]]></content>
	</entry>
	</feed>
