Sorry, but this error occur only if in url exist the char "?".scotteh wrote:@testebr
Somewhere in your config you're missing a }
Try this RSS http://www.vbulletin.com/forum/external.php?type=RSS2 and you will see the error.
Thanks.
Sorry, but this error occur only if in url exist the char "?".scotteh wrote:@testebr
Somewhere in your config you're missing a }
Code: Select all
set rss(name) {
"url" "http://www.vbulletin.com/forum/external.php?type=RSS2"
"channels" "#channel"
"database" "./scripts/feeds/name.db"
"output" "\00300,14\[\00308\002!\002\00300\] \00300\002\00308NAME\00300\002 \[\00308\002!\002\00300\] @@item!title@@ \[\00308\002!\002\00300\] @@item!link@@ \[\00308\002!\002\00300\]\003"
"trigger" "!@@feedid@@"
}
Code: Select all
set rss(wikipedia) {
"url" "http://en.wikipedia.org/w/index.php?title=Special:Recentchanges&feed=rss"
"database" "scripts/wikipedia.db"
"trigger" "!wiki"
"output" "[\002@@title@@\002] @@entry!title@@ - @@entry!link!=href@@"
"update-interval" 5
"charset" "utf-8"
}
Code: Select all
set data [encoding convertto [string tolower $feed(charset)] $data]
Code: Select all
set data [encoding convertfrom [string tolower $feed(charset)] $data]
Code: Select all
set rss(форум) {
"url" "http://172.16.3.132/forum/?act=rssout&id=1"
"database" "./scripts/feeds/forum.db"
"output" "3@@item!poster@@@@entry!poster@@ оставил новое сообщение в теме \"3@@item!title@@@@entry!title@@\". Подробнее: 3@@item!link@@@@entry!link!=href@@&view=getlastpost"
"trigger" "!@@feedid@@"
}
set rss(snmg) {
"url" "http://snmg.iwan.ru/?type=rss;action=.xml"
"charset" "cp1251"
"database" "./scripts/feeds/snmg.db"
"output" "Кто-то написал сообщение с темой \"3@@item!title@@@@entry!title@@\". Подробнее: 3@@item!link@@@@entry!link!=href@@"
"trigger" "!@@feedid@@"
}
...
set default {
"announce-output" 3
"trigger-output" 3
"remove-empty" 1
"trigger-type" 0:2
"announce-type" 0
"max-depth" 5
"evaluate-tcl" 0
"update-interval" 1
"output-order" 0
"timeout" 60000
"channels" "#main"
"trigger" "!rss @@feedid@@"
"output" "\[\002@@channel!title@@@@title@@\002\] @@item!title@@@@entry!title@@ - @@item!link@@@@entry!link!=href@@"
"user-agent" "Eggdrop RSS Syndication"
}
I worked out the issue, the following regex was incorrectly splitting the url at the colon in the address, substituting this character for it's html equivalent was all that was needed.scotteh wrote:@Rocky
Ill look into it, but using an rss feed when the only cookies in your output are for Atom's wont work.
Code: Select all
regexp -nocase -inline -- {(http(?:s?))://(?:(.[^:]+:.[^@]+)?)(?:@?)(.*)} $tmp(url)
Fixed, thanksRocky wrote:I worked out the issue, the following regex was incorrectly splitting the url at the colon in the address, substituting this character for it's html equivalent was all that was needed.scotteh wrote:@Rocky
Ill look into it, but using an rss feed when the only cookies in your output are for Atom's wont work.Code: Select all
regexp -nocase -inline -- {(http(?:s?))://(?:(.[^:]+:.[^@]+)?)(?:@?)(.*)} $tmp(url)