Quote:
Originally posted by wicked
at first i'd like to thank f0xn3t for this excellent script!
i got one question tho...
does anyone know how to get the info for the show "24"?
it just doesnt work for me, i always get Epguides.com URL: http://epguides.com/SouthBankShow/ if i request "!ep 24"
using "!ep 24 +2004" also doesnt work, i just found out that works for "LOST" tho, which was another thing i wanted to ask here :P
the strange thing is, that 24 is listed on top position in the yahoo result the script queries for ( http://search.yahoo.com/search?_adv_...vc=&fl=0&n=10+ ) but its somehow not parsed the right way, it grabs southbankshow which is next in the list.
so would be nice if anyone could tell me how to fix this
thx
|
here is a quick fix for everybody...
When you write "!ep 24 +2004" or "!ep lost +2004" you'll get the right info
This part of the script:
Code:
if {[regexp {<div class=yschabstr>.*</div><em class=yschurl>.*</em>} $line] } {
regsub {<div class=yschabstr>.*</div><em class=yschurl>(.*)</em>} $line {\1} page
regsub -all "<b>" $page "" page
regsub -all "</b>" $page "" page
Change to this:
Code:
if {[regexp {(<div class=yschabstr>.*</div><em class=yschurl>.*</em>|<em class=yschurl>.*</em>)} $line] } {
regsub {(<div class=yschabstr>.*</div><em class=yschurl>(.*)</em>|<em class=yschurl>(.*)</em>)} $line {\1} page
regsub -all "<b>" $page "" page
regsub -all "</b>" $page "" page
regsub -all "<em class=yschurl>" $page "" page
regsub -all "</em>" $page "" page
regsub "<div class=yschabstr>.*</div>" $page "" page