| View previous topic :: View next topic |
| Author |
Message |
goalie204 Halfop
Joined: 28 Apr 2011 Posts: 44
|
Posted: Sun Dec 23, 2012 8:43 am Post subject: |
|
|
plz  |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Sun Jan 06, 2013 9:44 am Post subject: |
|
|
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
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
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 |
|
 |
Hellster Voice
Joined: 10 Aug 2006 Posts: 22
|
Posted: Thu Jan 10, 2013 12:32 pm Post subject: |
|
|
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  |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Fri Jan 11, 2013 1:53 am Post subject: |
|
|
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.  _________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
romprod Halfop
Joined: 19 Oct 2001 Posts: 49
|
Posted: Thu Jan 17, 2013 4:56 pm Post subject: |
|
|
| Has anyone been able to fix this yet? |
|
| Back to top |
|
 |
gr11x Voice
Joined: 28 Feb 2007 Posts: 3
|
Posted: Thu Jan 17, 2013 5:00 pm Post subject: |
|
|
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 |
|
 |
romprod Halfop
Joined: 19 Oct 2001 Posts: 49
|
Posted: Thu Jan 17, 2013 5:43 pm Post subject: |
|
|
| That works great, thanks! |
|
| Back to top |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Sat Jan 19, 2013 6:00 am Post subject: |
|
|
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 |
|
 |
goalie204 Halfop
Joined: 28 Apr 2011 Posts: 44
|
Posted: Sat Jan 19, 2013 8:57 am Post subject: |
|
|
| woot! thx bro! |
|
| Back to top |
|
 |
gr11x Voice
Joined: 28 Feb 2007 Posts: 3
|
Posted: Sat Jan 19, 2013 6:40 pm Post subject: |
|
|
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 |
|
 |
x0x Op
Joined: 10 Feb 2009 Posts: 140
|
Posted: Wed Jan 30, 2013 8:22 am Post subject: |
|
|
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 |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Thu Jan 31, 2013 6:03 am Post subject: |
|
|
Thank you, I updated the script with your edit gr11x  _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
sAnexeh Voice
Joined: 05 Dec 2013 Posts: 17
|
Posted: Thu Dec 05, 2013 6:41 am Post subject: |
|
|
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 |
|
 |
janari Voice
Joined: 12 Dec 2013 Posts: 4
|
Posted: Fri Dec 13, 2013 4:51 pm Post subject: |
|
|
| Yes, it really does help me, thank you. |
|
| Back to top |
|
 |
name Voice
Joined: 21 Apr 2014 Posts: 3
|
Posted: Mon Apr 21, 2014 6:57 pm Post subject: |
|
|
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
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 |
|
 |
|