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 

imdb-1.1.0.tcl help please
Goto page Previous  1, 2, 3 ... 16, 17, 18, 19, 20, 21  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
goalie204
Halfop


Joined: 28 Apr 2011
Posts: 44

PostPosted: Sun Dec 23, 2012 8:43 am    Post subject: Reply with quote

plz Smile
Back to top
View user's profile Send private message
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Sun Jan 06, 2013 9:44 am    Post subject: Reply with quote

maybe username cares to fix this script, I don't know yet.. I've sent him a private message to maintain it, or let me know how he fixed the other perplexa's imdb script so I can understand what he changed so I can fix it, I seem to be pointing to the wrong lines/issues Sad

Unfortunately I am not a coder but I am just trying to understand bits and parts of it and sometimes I succeed, that is all.

let us see Smile

I love this script.

anyway, it is still available and still not working here: http://phobos.bsdunix.info/imdb.tcl
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
Hellster
Voice


Joined: 10 Aug 2006
Posts: 22

PostPosted: Thu Jan 10, 2013 12:32 pm    Post subject: Reply with quote

I looked over the script many times, i've managed to edit TCL scripts before, but i have no idea with this one, would be awesome if someone could update it tho Smile
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Fri Jan 11, 2013 1:53 am    Post subject: Reply with quote

I bet ist's not working properly or at all mainly due to the simple fact that they (IMDB) may have changed the layout and thus killed the script.

I don't get it why isn't anyone doing something with this 3rd party IMDB API. It's a lot easier to fetch results from it.

Edit: Apparently isn't THAT good as I hoped, meaning that you can't search for instance "Batman" and see all results with that title, will just point you to the last one. Rolling Eyes
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
romprod
Halfop


Joined: 19 Oct 2001
Posts: 49

PostPosted: Thu Jan 17, 2013 4:56 pm    Post subject: Reply with quote

Has anyone been able to fix this yet?
Back to top
View user's profile Send private message
gr11x
Voice


Joined: 28 Feb 2007
Posts: 3

PostPosted: Thu Jan 17, 2013 5:00 pm    Post subject: Reply with quote

The IMDb seems to have changed just the search request and the title of the search page so it's quite easy to fix:

Search for
Code:
set imdbsearchurl "http://akas.imdb.com/find?tt=on;nm=on;mx=5;"
and change to
Code:
set imdbsearchurl "http://akas.imdb.com/find?s=tt&exact=true&"

Then search for
Code:
if { ([regexp {<title>IMDb.*Search} $html] == 1) } {
and change to
Code:
if { ([regexp {<title>Find - IMDb} $html] == 1) } {

Based on the last mentioned version (posted here), I put the changes on pastebin.
Back to top
View user's profile Send private message
romprod
Halfop


Joined: 19 Oct 2001
Posts: 49

PostPosted: Thu Jan 17, 2013 5:43 pm    Post subject: Reply with quote

That works great, thanks!
Back to top
View user's profile Send private message
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Sat Jan 19, 2013 6:00 am    Post subject: Reply with quote

you also need to comment out these lines:

Code:
    # channel_check permission
    if {$IMDB_DEBUG == 1} { putlog "IMDB_DEBUG permission_result == $permission_result" }
    if {$IMDB_DEBUG == 1} { putlog "IMDB_DEBUG instance == $instance" }
    if {![channel get $chan imdb]} { return }


I mean make it look like this:

Code:
    # channel_check permission
#    if {$IMDB_DEBUG == 1} { putlog "IMDB_DEBUG permission_result == $permission_result" }
#    if {$IMDB_DEBUG == 1} { putlog "IMDB_DEBUG instance == $instance" }
#    if {![channel get $chan imdb]} { return }


The script is updated in this url: http://phobos.bsdunix.info/imdb.tcl
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
goalie204
Halfop


Joined: 28 Apr 2011
Posts: 44

PostPosted: Sat Jan 19, 2013 8:57 am    Post subject: Reply with quote

woot! thx bro!
Back to top
View user's profile Send private message
gr11x
Voice


Joined: 28 Feb 2007
Posts: 3

PostPosted: Sat Jan 19, 2013 6:40 pm    Post subject: Reply with quote

If you feel that you don't get sufficient results e.g. for vague searches like "starship troopers 2012" you can disable exact title matching in the search url:

Instead of
Code:
set imdbsearchurl "http://akas.imdb.com/find?s=tt&exact=true&"
just use
Code:
set imdbsearchurl "http://akas.imdb.com/find?s=tt&exact=false&"
Back to top
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140

PostPosted: Wed Jan 30, 2013 8:22 am    Post subject: Reply with quote

IMDb changed it's HTML code again.

Last edited by x0x on Fri Feb 08, 2013 7:19 pm; edited 2 times in total
Back to top
View user's profile Send private message
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Thu Jan 31, 2013 6:03 am    Post subject: Reply with quote

Thank you, I updated the script with your edit gr11x Smile
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
sAnexeh
Voice


Joined: 05 Dec 2013
Posts: 17

PostPosted: Thu Dec 05, 2013 6:41 am    Post subject: Reply with quote

Hi,

imdb added some ads on their search page which in my case caused wrong search results. I've changed the following code to fix it:

Code:
#searching for first ttcode
if [regexp {/title/tt[0-9]+} $temp ttcode] {


Code:
#searching for first ttcode
if [regexp {\=\"/title/tt[0-9]+} $temp ttcode] {


Hope this helps someone.
Back to top
View user's profile Send private message
janari
Voice


Joined: 12 Dec 2013
Posts: 4

PostPosted: Fri Dec 13, 2013 4:51 pm    Post subject: Reply with quote

Yes, it really does help me, thank you.
Back to top
View user's profile Send private message
name
Voice


Joined: 21 Apr 2014
Posts: 3

PostPosted: Mon Apr 21, 2014 6:57 pm    Post subject: Reply with quote

Hi ppl, thanks for updating this script, i have a issue, hope somebody can help me.

I've made some changes on annouce format, but %genre not showing in the same line (it's supposed to do), dunno why, it's a script bug, or am i doing something wrong? Please help me Smile

Annouce format:
Code:
# set default announce format
set announce(IMDBIRC) "%bold%title%bold %url\n|%boldRATiNG:%bold %rating/10 (from %votes users) %boldRUNTiME:%bold %time\n|%boldGENRE:%bold %genre"


Output:
Code:
<bot> Limitless (2011) http://imdb.com/title/tt1219289/
<bot> RATiNG: 7.4/10 (from 294,562 users) RUNTiME: 105min
<bot> GENRE: Mystery |
<bot>  Sci-Fi |
<bot>  Thriller


How it should be:
Code:
<bot> Limitless (2011) http://imdb.com/title/tt1219289/
<bot> RATiNG: 7.4/10 (from 294,562 users) RUNTiME: 105min
<bot> GENRE: Mystery | Sci-Fi | Thriller


Code:
http://pastebin.com/gfTjjADc
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 -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 16, 17, 18, 19, 20, 21  Next
Page 17 of 21

 
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