egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Find part of a word/url
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Nov 06, 2009 4:36 pm    Post subject: Reply with quote

Well, I just copied and pasted that code, and it works just fine. Check that there's no accidental newlines in the pasted code...
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
JKM
Voice


Joined: 06 Dec 2008
Posts: 30

PostPosted: Sat Nov 07, 2009 3:12 pm    Post subject: Reply with quote

Oh, sorry about that.
Code:
set data_lines [grab_http_data 2  http://mysite.com/spotInfo.php?uri=${track} "" ""]
returns:

[20:10] Tcl error [SpotInfo_proc]: Unsupported URL: http://mysite.com/spotify.php?uri=4SwVcoBjjawbnexIiUDLc5?=
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Nov 07, 2009 3:52 pm    Post subject: Reply with quote

That error originates from the http-package... Most likely due to the second ? in the URI...
Try using this instead then:
Code:
set data_lines [grap_http_data 2 "http://mysite.com/spotInfo.php" "uri" $track]

That should build the url http://mysite.com/spotify.php?uri=4SwVcoBjjawbnexIiUDLc5
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
JKM
Voice


Joined: 06 Dec 2008
Posts: 30

PostPosted: Sat Nov 07, 2009 4:22 pm    Post subject: Reply with quote

Yeah, I tried hundreds of ways, but it turned out that it was the puthelp line (I replaced it with putquick "PRIVMSG $chan :$line").

Thanks for your help! Smile
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Nov 07, 2009 4:37 pm    Post subject: Reply with quote

Ehhm?
puthelp vs putquick should'nt matter, most certainly not cause an error like that. Happy you got it sorted in the end though...
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
JKM
Voice


Joined: 06 Dec 2008
Posts: 30

PostPosted: Sat Nov 07, 2009 4:41 pm    Post subject: Reply with quote

Ah, I used '"http://mysite.com/spotInfo.php" "uri" $track' and putquick. I tried '"http://mysite.com/spotInfo.php" "uri" $track' a lot of times before you wrote it, but it didn't return any message or errors.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber