namespace eval ::ngBot::TVRage { variable events variable tvrage ## Config Settings ############################### ## set tvrage(sections) { "" } ## ## Timeout in milliseconds. set tvrage(timeout) 10000 ## ## Date format (URL: http://tcl.tk/man/tcl8.3/TclCmd/clock.htm) set tvrage(date) "%Y-%m-%d" ## ## Genre splitter set tvrage(splitter) " / " ## ## Pre line regexp ## We need to reconstruct the full path to the release. Since not all ## pre scripts use the same format we'll use regexp to extract what we ## need from the pre logline and reconstuct it ourselves. ## set tvrage(pre-regexp) {^".[^"]*" "(.[^"]+)"} set tvrage(pre-path) "%1" ## ## Default f00-pre example: #set tvrage(pre-regexp) {^"(.[^"]+)" ".[^"]*" ".[^"]*" "(.[^"]+)"} #set tvrage(pre-path) "%2/%1" ## ## Default eur0-pre example: #set tvrage(pre-regexp) {^"(.[^"]+)"} #set tvrage(pre-path) "%1" ## ################################################## set events [list "NEWDIR" "TV-PRE"] variable scriptName [namespace current]::LogEvent bind evnt -|- prerehash [namespace current]::DeInit }