felosi   -  Jun 29, 2013

Simply doesnt work. I have tried adding various rss like slashdot, fark, etc; Sometimes when I do addxml it will paste to the channel like this - [19:08:50] <@Inter123Bot> fark Fark.com RSS http://tinyurl.com/7cq
and thats it, it never posts anything after that. Is there a way to incorporate this tinyurl feature into the rss-synd.tcl? I have followed all instructions on this, added the proper way and even added them both ways, still no progress. Any ideas?

PackardBell  -  Jul 01, 2013

Wich script do u use?
I use this one : http://www.hawkee.com/snippet/9654/ . And it works great. Just find the correct RSS page.
try the script with : http://rss.cnn.com/rss/edition.rss
it's better to take the RSS's from the original site.

felosi  -  Jul 01, 2013

No the eggdrop script does not work. No matter added as xml or regular. sometimes will spit out index after that nothing. I found an extension to rss-synd.tcl that does work -

tinyurl expansion for rss-synd.tcl

@see http://forum.egghelp.org/viewtopic.php?p=66327#66327

proc ::rss-synd::tinyurl {url} {

tinyurls are currently 26 chars at most

if {[string length $url] <= 26} { return $url; }
set tinyurl "http://tinyurl.com/api-create.php";
set query [::http::formatQuery "url" $url];

since this connection is synchronous and blocks

the timeout should be relatively small.

set token [::http::geturl "$tinyurl?$query" -timeout 5000];
set url [::http::data $token];
::http::cleanup $token;
return $url;
}

With this there is no reason to use the script here

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.