Code: Select all
set imdbsearchurl "http://akas.imdb.com/find?tt=on;nm=on;mx=5;"
Code: Select all
set imdbsearchurl "http://akas.imdb.com/find?s=tt&exact=true&"
Code: Select all
if { ([regexp {<title>IMDb.*Search} $html] == 1) } {
Code: Select all
if { ([regexp {<title>Find - IMDb} $html] == 1) } {
Code: Select all
# 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 }
Code: Select all
# 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 }
Code: Select all
set imdbsearchurl "http://akas.imdb.com/find?s=tt&exact=true&"
Code: Select all
set imdbsearchurl "http://akas.imdb.com/find?s=tt&exact=false&"
Code: Select all
#searching for first ttcode
if [regexp {/title/tt[0-9]+} $temp ttcode] {
Code: Select all
#searching for first ttcode
if [regexp {\=\"/title/tt[0-9]+} $temp ttcode] {
Code: Select all
# 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"
Code: Select all
<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
Code: Select all
<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: Select all
http://pastebin.com/gfTjjADc