nning / transmission-rss

Adds torrents from RSS feeds to Transmission web frontend
GNU General Public License v3.0
448 stars 47 forks source link

parse error (ArgumentError: Bad encoding name utf8) #54

Closed gumieri closed 7 years ago

gumieri commented 7 years ago

I am having problem with the configuration below. The configuration file encoding is UTF-8 (fileencoding=utf-8). The error reported on log is: parse error (ArgumentError: Bad encoding name utf8)

log_target: /var/log/transmissiond-rss.log

- Relevant lines from log output.

1508446142(debug) no privilege dropping 1508446142(debug) 75 uris from seenfile 1508446142(debug) forked 25225 1508446142(debug) aggregator start 1508446142(debug) aggregate https://xxxx.xxx/?page=rss&u=xxxxxxxxxxxx 1508446142(debug) aggregate certificate validation: false 1508446144(debug) aggregate http://xxxx.xxx/rss.php?cats=1,2,5,13&type=dl&passkey=x0x0x0x0x0x0x0x0x0x0x0x 1508446145(debug) parse error (ArgumentError: Bad encoding name utf8) 1508446145(debug) aggregate http://xxxx.xxx/rss.php?cats=2,3,18&type=dl&passkey=x0x0x0x0x0x0x0x0x0x0x 1508446145(debug) parse error (ArgumentError: Bad encoding name utf8)

gumieri commented 7 years ago

Ok, nevermind... the problem is in the XML. utf8 is not valid, it should be utf-8. I will try figure out how deal with that, try to communicate with the tracker or just generate an version of the transmission-rss with content.sub(/utf8/, 'utf-8') for this case...

Sorry about that.

nning commented 7 years ago

No problem, thank you for reporting anyway. I am glad, you found a solution.