#!/mod/bin/jimsh

package require cgi
source /mod/webif/lib/setup
require tvdb.class

set file [cgi_get file "-"]
if {$file eq "-"} { exit }

if {![file exists "$::tvdb::icache/$file"]} {
	tvdb cachebanner $file
}

httpredirect "/cache/tvdb/img/$file"

