Giter Site home page Giter Site logo

nning / transmission-rss Goto Github PK

View Code? Open in Web Editor NEW
436.0 20.0 48.0 285 KB

Adds torrents from RSS feeds to Transmission web frontend

License: GNU General Public License v3.0

Ruby 93.65% Shell 4.65% Dockerfile 1.70%
transmission ruby feed torrent torrentbox torrent-management

transmission-rss's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

transmission-rss's Issues

Self-signed cert problem

When retrieving RSS feed from an url with a self-signed cert the error
"retrieval error (OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed)" is logged.

The way i'm circumvented this was in agregator.rb put require 'openssl'

and modified

content = open(feed.url, allow_redirections: :safe).read

to

content = open(feed.url, {ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE, allow_redirections: :safe}).read

But a nicer approach would be to have a configurable (per feed) to not verify ssl cert

Can not read the Feeds

Good afternoon,

I did the transmission-rss setup and I noticed (last week) that sometimes he can not recognize some series of these feed links, in case, I went to the site and searched the series and group ([Erai-raws] 1080p).

https://nyaa.si/?page=rss&q=%5BErai-raws%5D+1080p&c=0_0&f=0
https://anidex.info/rss/?cat=0&q=[Erai-raws]%201080p

After many tests I got to this config of the post that was working, but today, tried to add new series I noticed that, he can not read these two links, at least here I can not do it, but I decided to test the link below, from the same site and no filter, and the feed was read, the same series that were at the top of both feeds were recognized, but only at the link below.

https://anidex.info/rss/?cat=0

The big problem, the first two links filter exactly everything that was posted by [Erai-raws] in 1080p, without this filter, without this filtering the feed will also display links in 720p outside the series of other groups.

  1. Am I doing something wrong?
  2. Is it possible to filter names through regexps? (from what I read the flexget does this, but it is terribly difficult

Example: Download only torrents that contain only X, Y or X words in the name in case knowing the base structure of the torrent name I could ask him to identify and download only what has Erai-raws + Mahoutsukai + 1080p.

You would not need a filter in your feed.

Please include the following information in new issues:

  • ruby -v >>> ruby 2.1.5p273 (2014-11-13) [arm-linux-gnueabihf]
  • transmission-rss -v >>>> 0.2.6
  • The content for your configuration file. You can anonymize URLs if the
feeds:
  - url: https://nyaa.si/?page=rss&q=%5BErai-raws%5D+1080p&c=0_0&f=0
  - url: https://anidex.info/rss/?cat=0&q=[Erai-raws]%201080p
# - url: https://anidex.info/rss/?cat=0
    regexp:
      - matcher: Mahoutsukai no Yome
        download_path: /mnt/Downloads/SERIES/The Ancient Magus Bride
      - matcher: Just Because!
        download_path: /mnt/Downloads/SERIES/Just Because!
      - matcher: Houseki no Kuni
        download_path: /mnt/Downloads/SERIES/Houseki no Kuni
      - matcher: Dragon Ball Super
        download_path: /mnt/Downloads/SERIES/Dragon Ball Super
      - matcher: 3-gatsu no Lion 2nd Season
        download_path: /mnt/Downloads/SERIES/March Comes in Like a Lion/Season 2
      - matcher: Inuyashiki
        download_path: /mnt/Downloads/SERIES/Inuyashiki
      - matcher: Code Realize Sousei no Himegimi
        download_path: /mnt/Downloads/SERIES/Code Realize Sousei no Himegimi
    validate_cert: true

update_interval: 1

add_paused: false

server:
  host: 192.168.1.11
  port: 9091
  rpc_path: /transmission/rpc

log_target: /home/pi/.config/transmission/transmissiond-rss.log

privileges:
  user: pi
  group: pi

fork: false

pid_file: false

seen_file: /home/pi/.config/transmission/seen

issue is independent of the feed contents.

  • Relevant lines from log output.

https://paste.ubuntu.com/26095790/

Error when running transmission-rss

When launching transmission-rss I get the following error:

~$ transmission-rss
/usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': /var/lib/gems/2.1.0/gems/transmission-rss-0.2.1/lib/transmission-rss/client.rb:65: syntax error, unexpected ':', expecting => (SyntaxError)
          'seedRatioLimit': options[:seed_ratio_limit].to_f,
                           ^
/var/lib/gems/2.1.0/gems/transmission-rss-0.2.1/lib/transmission-rss/client.rb:66: syntax error, unexpected ':', expecting :: or '[' or '.'
          'seedRatioMode': 1
                          ^
/var/lib/gems/2.1.0/gems/transmission-rss-0.2.1/lib/transmission-rss/client.rb:140: syntax error, unexpected end-of-input, expecting keyword_end
	from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /var/lib/gems/2.1.0/gems/transmission-rss-0.2.1/lib/transmission-rss.rb:9:in `block in <top (required)>'
	from /var/lib/gems/2.1.0/gems/transmission-rss-0.2.1/lib/transmission-rss.rb:8:in `each'
	from /var/lib/gems/2.1.0/gems/transmission-rss-0.2.1/lib/transmission-rss.rb:8:in `<top (required)>'
	from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /usr/local/lib/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /var/lib/gems/2.1.0/gems/transmission-rss-0.2.1/bin/transmission-rss:7:in `<top (required)>'
	from /usr/local/bin/transmission-rss:22:in `load'
	from /usr/local/bin/transmission-rss:22:in `<main>'

Please include the following information in new issues:

  • ruby -v
    ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]

  • transmission-rss -v
    See error above.

Socket Error

Hi,
I am getting the following errors in /var/log/transmissiond-rss.log

1478152683(debug) aggregate http://showrss.info/user/1234.rss?magnets=true&namespaces=true&name=null&quality=null&re=null
1478152686(debug) retrieval error (SocketError: Failed to open TCP connection to showrss.info:80 (getaddrinfo: Name or service not known))
1478153286(debug) aggregate http://showrss.info/user/1234.rss?magnets=true&namespaces=true&name=null&quality=null&re=null
1478153290(debug) retrieval error (SocketError: Failed to open TCP connection to showrss.info:80 (getaddrinfo: Name or service not known))
1478153890(debug) aggregate http://showrss.info/user/1234.rss?magnets=true&namespaces=true&name=null&quality=null&re=null
1478153894(debug) retrieval error (SocketError: Failed to open TCP connection to showrss.info:80 (getaddrinfo: Name or service not known))
1478154494(debug) aggregate http://showrss.info/user/1234.rss?magnets=true&namespaces=true&name=null&quality=null&re=null
1478154497(debug) retrieval error (SocketError: Failed to open TCP connection to showrss.info:80 (getaddrinfo: Name or service not known))
1478155097(debug) aggregate http://showrss.info/user/1234.rss?magnets=true&namespaces=true&name=null&quality=null&re=null
1478155100(debug) retrieval error (SocketError: Failed to open TCP connection to showrss.info:80 (getaddrinfo: Name or service not known))

config

feeds:
  - url: http://showrss.info/user/1234.rss?magnets=true&namespaces=true&name=null&quality=null&re=null
    download_path: /mnt/data/Downloads/
update_interval: 600
add_paused: false

server:
  host: localhost
  port: 9091

login:
  username: xxxx
  password: xxxx

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


ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
transmission-rss -v: 0.1.26
OS: Fedora 24 server, Kernel 4.7.9-200

Firewall Issue? No, because it was working perfectly since a few days. No change, no reboot, no update.

Download by regex

Any chance we could add a new option where I can specify a regex expression. For example /world cup 2014/i ;)

Thanks!

retrieval error Errno::ENOENT: No such file or directory @ rb_sysopen

Please include the following information in new issues:

- ruby -v

ruby 2.4.1p111 (2017-03-22 revision 58053) [armv7l-linux-eabihf]

- transmission-rss -v

0.2.5.pre

- The content for your configuration file. You can anonymize URLs if the
issue is independent of the feed contents.

feeds:
- url:"http://showrss.info/user/123.rss?magnets=true&namespaces=true&name=null&quality=hd&re=yes"
download_path: /mnt/usb_1/downloads/tv

server:
  host: localhost
  port: 9091
  rpc_path: /transmission/rpc

login:
  username: xxx
  password: yyyy

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

privileges:
  user: root
  group: root
pid_file: false

seen_file:  /var/lib/transmission-daemon/info/seen

- Relevant lines from log output.

#Logfile created on 2017-04-04 14:32:44 +0200 by logger.rb/56815
1491309164(debug) version 0.2.5.pre
1491309164(debug) {"feeds"=>["url:\"http://showrss.info/user/123.rss?magnets=true&namespaces=true&name=null&quality=hd&re=yes\""], "update_interval"=>600, "add_paused"=>false, "server"=>{"host"=>"localhost", "port"=>9091, "rpc_path"=>"/transmission/rpc"}, "login"=>{"username"=>"elradix", "password"=>"athlon00"}, "log_target"=>"/var/log/transmissiond-rss.log", "fork"=>false, "pid_file"=>false, "privileges"=>{"user"=>"root", "group"=>"root"}, "seen_file"=>"/var/lib/transmission-daemon/info/seen", "download_path"=>"/mnt/usb_1/downloads/tv"}
1491309164(debug) dropped privileges root:root
1491309164(debug) 0 uris from seenfile
1491309164(debug) pid 30713
1491309164(debug) aggregator start
1491309164(debug) aggregate url:"http://showrss.info/user/123.rss?magnets=true&namespaces=true&name=null&quality=hd&re=yes"
1491309164(debug) retrieval error (Errno::ENOENT: No such file or directory @ rb_sysopen - url:"http://showrss.info/user/123.rss?magnets=true&namespaces=true&name=null&quality=hd&re=yes")
1491309222(info) interrupt caught

Can't start on raspbian system

ruby -v
ruby 1.8.7 (2012-02-08 patchlevel 358) [arm-linux-eabihf]

transmission-rss -v

/usr/local/bin/transmission-rss:23:in `load': /var/lib/gems/1.8/gems/transmission-rss-0.2.4/bin/transmission-rss:137: syntax error, unexpected ':', expecting ')' (SyntaxError)
aggregator = Aggregator.new(config.feeds, seen_file: config.seen_file)
                                                    ^
/var/lib/gems/1.8/gems/transmission-rss-0.2.4/bin/transmission-rss:137: syntax error, unexpected ')', expecting $end
	from /usr/local/bin/transmission-rss:23

systemctl status transmission-rss

● transmission-rss.service - Transmission RSS daemon.
   Loaded: loaded (/etc/systemd/system/transmission-rss.service; enabled)
   Active: failed (Result: exit-code) since Tue 2017-09-12 12:46:34 +03; 6s ago
  Process: 1095 ExecStart=/usr/local/bin/transmission-rss -f (code=exited, status=1/FAILURE)

Sep 12 12:46:34 dragonglass transmission-rss[1095]: /usr/local/bin/transmission-rss:23:in `load': /var/lib/gems/1.8/gems/transmission-rss-0.2.4/bin/transmission-rss:137: syntax error, unexpected ':', expecting ')' (SyntaxError)
Sep 12 12:46:34 dragonglass systemd[1]: transmission-rss.service: control process exited, code=exited status=1
Sep 12 12:46:34 dragonglass systemd[1]: Failed to start Transmission RSS daemon..
Sep 12 12:46:34 dragonglass systemd[1]: Unit transmission-rss.service entered failed state.
Sep 12 12:46:34 dragonglass transmission-rss[1095]: aggregator = Aggregator.new(config.feeds, seen_file: config.seen_file)
Sep 12 12:46:34 dragonglass transmission-rss[1095]: ^
Sep 12 12:46:34 dragonglass transmission-rss[1095]: /var/lib/gems/1.8/gems/transmission-rss-0.2.4/bin/transmission-rss:137: syntax error, unexpected ')', expecting $end
Sep 12 12:46:34 dragonglass transmission-rss[1095]: from /usr/local/bin/transmission-rss:23

Comments in config file?

Hey, boss.

I'm rocking 0.1.26 and I'm just wondering if there's a way to add comments in the config file. I tried using a pound sign like in Ruby, but it didn't work.

getting exception: `merge!': no implicit conversion of nil into Hash (TypeError)

I've installed this gem,
it runs very well when there is no /etc/transmission-rss.conf file but if i touch it or put simply YAML in it it crashes.

Config:

confiq@hometv:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 15.10
Release:    15.10
Codename:   wily
confiq@hometv:~$ ruby --version
ruby 2.1.5p273 (2014-11-13) [x86_64-linux-gnu]
confiq@hometv:~$ gem --version
2.2.2

Could it be that I missed to install some gem?

log

root@hometv:~# /usr/local/bin/transmission-rss
/etc/transmission-rss.conf
/var/lib/gems/2.1.0/gems/transmission-rss-0.1.26/lib/transmission-rss/config.rb:25:in `merge!': no implicit conversion of nil into Hash (TypeError)
    from /var/lib/gems/2.1.0/gems/transmission-rss-0.1.26/lib/transmission-rss/config.rb:25:in `merge_yaml!'
    from /var/lib/gems/2.1.0/gems/transmission-rss-0.1.26/lib/transmission-rss/config.rb:16:in `load'
    from /var/lib/gems/2.1.0/gems/transmission-rss-0.1.26/bin/transmission-rss:94:in `<top (required)>'
    from /usr/local/bin/transmission-rss:23:in `load'
    from /usr/local/bin/transmission-rss:23:in `<main>'

permissions

confiq@hometv:~$ ls -lah /etc/transmission-rss.conf
-rw-r--r-- 1 root root 5 Apr 12 22:49 /etc/transmission-rss.conf

Reset seenfile

Hi,
Thank you for the nice program. I've inserted a couple of feeds in my config file, however I did write the download folder incorrectly so transmission ended up refusing to put the files into queue. Transmission-rss, however, marked all torrents in the feed as seen and won't add them anymore to transmission.

Is there already possible to reset the seenfile list somehow? Or to force transmission-rss not to consider the seenfile list for one execution and add everything again? I've checked the options presented in -h, but I haven't noticed any way to do this.

Thank you,
Francesco.

  • ruby -v
    ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
  • transmission-rss -v
    0.1.25
  • Relevant lines from log output.
    1477580223(debug) 69 uris from seenfile

retrieval error (Errno::ENOENT: No such file or directory @ rb_sysopen - url)

Having this issue trying to get transmission up and running.
I've installed open_uri_redirections. Tried different rss feeds, same thing.

This is the message I'm getting:

1444179946(error) /etc/transmission-rss.conf not found
1444179946(debug) loading user config /home/r/.config/transmission-rss/config.yml
1444179946(debug) {"feeds"=>[{"url"=>"http://www.shanaproject.com/feeds/user/25005/", "regexp"=>".*"}], "update_interval"=>2, "add_paused"=>false, "server"=>{"host"=>"localhost", "port"=>9091}, "login"=>{"username"=>"umaru", "password"=>"taihei"}, "log_target"=>#IO:, "fork"=>false, "pid_file"=>false, "privileges"=>{}, "seen_file"=>nil}
1444179946(debug) no privilege dropping
1444179946(debug) 0 uris from seenfile
1444179946(debug) pid 19198
1444179946(debug) aggregator start
1444179946(debug) aggregate url
1444179946(debug) retrieval error (Errno::ENOENT: No such file or directory @ rb_sysopen - url)
1444179948(debug) aggregate url
1444179948(debug) retrieval error (Errno::ENOENT: No such file or directory @ rb_sysopen - url)
1444179950(debug) aggregate url
1444179950(debug) retrieval error (Errno::ENOENT: No such file or directory @ rb_sysopen - url)
^C1444179950(info) interrupt caught

Auto add fails with macOS

Torrents fail to add with torrent-add result: download directory path is not absolute using native macOS Transmission.

  • ruby -v: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
  • transmission-rss -v: 0.2.2
  • config:
feeds:
  - url: http://www.shanaproject.com/feeds/secure/user/XXXXX/XXXXXXXXXXX/

Default configuration files

I would like to suggest also looking in /usr/local/etc/...
to support BSD like namespacing

(sorry i do not know any ruby)

Question: What XML tags does transmission-rss look for in feeds?

I would like to automatically add new ISO torrents of Arch Linux releases whenever a new release comes out. An RSS feed of these releases can be found here: https://www.archlinux.org/feeds/releases/

I'm not sure I'm using the right term but here is an excerpt for an example feed item (tidyied):

<item>
  <title>2017.12.01</title>
  <link>
  https://www.archlinux.org/releng/releases/2017.12.01/</link>
  <description></description>
  <pubDate>Fri, 01 Dec 2017 00:00:00 +0000</pubDate>
  <guid isPermaLink="false">
  tag:www.archlinux.org,2017-12-01:/releng/releases/2017.12.01/</guid>
  <enclosure url="https://www.archlinux.org/iso/2017.12.01/archlinux-2017.12.01-x86_64.iso.torrent"
  length="541065216" type="application/x-bittorrent">
  </enclosure>
</item>

It seems the actual torrent URL is located in the enclosure XML tag, is there a way to make transmission-rss look for this tag? If it's with the regex directive, I'm not sure how to do it so I would be happy to get some help here :)

Here is my environment:

$ ruby -v
ruby 2.5.0p0 (2017-12-25 revision 61468) [x86_64-linux]
$ transmission-rss -v
0.2.6

Relevant bit from the configuration file:

feeds:
    - url: https://www.archlinux.org/feeds/releases/
      regexp: x86_64.iso.torrent

select execution expired

1427987459(debug) got session id ji08i1RbvO3ChpTf1oh9kHGNCxXr8siU4MraY1Skfxfw1Adg
1427987464(debug) connection timeout
/home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/protocol.rb:155:in `select': execution expired (Timeout::Error)
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/protocol.rb:155:in `rescue in rbuf_fill'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/protocol.rb:152:in `rbuf_fill'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/protocol.rb:134:in `readuntil'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/protocol.rb:144:in `readline'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/http/response.rb:39:in `read_status_line'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/http/response.rb:28:in `read_new'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/http.rb:1414:in `block in transport_request'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/http.rb:1411:in `catch'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/http.rb:1411:in `transport_request'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/http.rb:1384:in `request'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.20/lib/transmission-rss/client.rb:89:in `block (2 levels) in request'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/net/http.rb:853:in `start'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.20/lib/transmission-rss/client.rb:88:in `block in request'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/timeout.rb:89:in `block in timeout'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/timeout.rb:34:in `block in catch'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/timeout.rb:34:in `catch'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/timeout.rb:34:in `catch'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/2.2.0/timeout.rb:104:in `timeout'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.20/lib/transmission-rss/client.rb:87:in `request'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.20/lib/transmission-rss/client.rb:51:in `add_torrent'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.20/bin/transmission-rss:138:in `block in <top (required)>'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.20/lib/transmission-rss/callback.rb:12:in `call'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.20/lib/transmission-rss/callback.rb:12:in `block (3 levels) in callback'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.20/lib/transmission-rss/aggregator.rb:97:in `block (2 levels) in run'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.20/lib/transmission-rss/aggregator.rb:75:in `each'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.20/lib/transmission-rss/aggregator.rb:75:in `block in run'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.20/lib/transmission-rss/aggregator.rb:63:in `each'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.20/lib/transmission-rss/aggregator.rb:63:in `run'
    from /home/andrewhood125/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.20/bin/transmission-rss:154:in `<top (required)>'
    from /home/andrewhood125/.rbenv/versions/2.2.1/bin/transmission-rss:23:in `load'
    from /home/andrewhood125/.rbenv/versions/2.2.1/bin/transmission-rss:23:in `<main>'

I got this dump while running transmission-rss. Any ideas?

parse error (ArgumentError: Bad encoding name utf8)

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)

  • ruby -v: ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux]
  • transmission-rss -v: 0.2.6
  • The content for your configuration file.
feeds:
  - url: https://xxxx.xxx/?page=rss&u=xxxxxxxxxxxx
    validate_cert: false
    download_path: /home/plex/shows
  - url: http://xxxx.xxx/rss.php?cats=1,2,5,13&type=dl&passkey=x0x0x0x0x0x0x0x0x0x0x0x
    download_path: /home/plex/shows
  - url: http://xxxx.xxx/rss.php?cats=2,3,18&type=dl&passkey=x0x0x0x0x0x0x0x0x0x0x
    download_path: /home/plex/movies

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)

"getaddrinfo: Name or service not known" until I restart the daemon

This issue has similar symptoms to but not the same cause as #32. After leaving the daemon alone for a few days, I come back to find that it gets stuck on something, and new items are not added. The most recent logs are filled with things like this

Feb 26 19:05:44 transmission-rss[565]: 1488153944(debug) aggregate <SOME_RSS_URL>
Feb 26 19:05:44 transmission-rss[565]: 1488153944(debug) retrieval error (SocketError: Failed to open TCP connection to <SOME_RSS_DOMAIN>:443 (getaddrinfo: Name or service not known))

Which means the DNS address lookup failed somehow. This continues forever until I restart the daemon. There are two reasons why I think transmission-rss is at fault for this behavior:

  • dig <THAT_SAME_DOMAIN> gives good results meanwhile.
  • Upon systemctl restarting the daemon, I IMMEDIATELY see backed-up items come flooding in.
Feb 26 19:11:21 transmission-rss[12044]: 1488154281(debug) aggregate <SOME_RSS_URL>
Feb 26 19:11:22 transmission-rss[12044]: 1488154282(debug) on_new_item event <SOME_RSS_ITEM>

Other notes:

  • ruby -v is ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux]
  • transmission-rss -v is 0.2.2
  • My config file has 8 urls and transmission-daemon login creds, nothing else of interest.

RSS under FreeNAS

Hi, i hope you can help me.
First off I'm running this in a FreeNAS Jail, i managed to install it via gem but it did not create the config file for me so i did it myself. Sadly i now get this error below and i can not figure out what is going on.

Maybe you have an idear?

  • 2.2.6
  • 0.2.2

`#

Indent consistently with spaces!

Format documentation on http://www.yaml.org/.

List of feeds to watch.

feeds:

Feed probing interval in seconds. Default is 600.

#update_interval: 600

Whether to add torrents paused. Default is false.

#add_paused: false

The transmission server to connect to. Default is localhost:9091.

#server:

host: localhost

port: 9091

rpc_path: /transmission/rpc

Uncomment if transmission server requires login.

#login:

username: transmission

password: transmission

Where to log. Default is stderr.

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

Drop privileges. If omitted, privileges are not dropped.

#privileges:

user: nobody

group: nobody

Fork?

#fork: false

Save PID.

#pid_file: false`

root@transmission_1:/etc # transmission-rss /usr/local/lib/ruby/2.2/psych.rb:370:in parse': (/etc/transmission-rss.conf): d
id not find expected '-' indicator while parsing a block collection at line 9 co
lumn 3 (Psych::SyntaxError)
from /usr/local/lib/ruby/2.2/psych.rb:370:in parse_stream' from /usr/local/lib/ruby/2.2/psych.rb:318:in parse'
from /usr/local/lib/ruby/2.2/psych.rb:245:in load' from /usr/local/lib/ruby/2.2/psych.rb:464:in block in load_file'
from /usr/local/lib/ruby/2.2/psych.rb:464:in open' from /usr/local/lib/ruby/2.2/psych.rb:464:in load_file'
from /usr/local/lib/ruby/gems/2.2/gems/transmission-rss-0.2.2/lib/transm
ission-rss/config.rb:59:in merge_yaml!' from /usr/local/lib/ruby/gems/2.2/gems/transmission-rss-0.2.2/lib/transm ission-rss/config.rb:32:in load'
from /usr/local/lib/ruby/gems/2.2/gems/transmission-rss-0.2.2/bin/transm
ission-rss:83:in <top (required)>' from /usr/local/bin/transmission-rss:22:in load'
from /usr/local/bin/transmission-rss:22:in <main>' '

Broken library?

dobber@pi ~ $ /usr/local/bin/transmission-rss -f
/usr/local/bin/transmission-rss:23:in `load': /var/lib/gems/1.8/gems/transmission-rss-0.1.25/bin/transmission-rss:147: syntax error, unexpected ':', expecting ')' (SyntaxError)
aggregator = Aggregator.new(config.feeds, seen_file: config.seen_file)

I keep getting the above error. What could be wrong? Running on a RPi2 Raspbian
Tried building from code and installing from gem.

Issues with chinese IP address trying to ssh in as root.

Installed this package on arch through the AUR which links to https://rubygems.org/downloads/transmission-rss-0.1.25.gem and I am forced to assume that this is your project. Just wanted to let you know that this is my journalctl -xe output. Checked a few times and there should be absolutely no connection to that IP in RSS feeds nor any other location in relevance to transmission. Not saying it's your code, but assuming it's your name on this project, I thought you deserved to know.

May 06 08:37:35 transmission systemd[1]: transmission-rss.service: Unit entered failed state.
May 06 08:37:35 transmission systemd[1]: transmission-rss.service: Failed with result 'exit-code'.
May 06 08:37:35 transmission sshd[26755]: Failed password for root from 116.31.116.50 port 48529 ssh2
May 06 08:37:35 transmission sshd[26755]: Received disconnect from 116.31.116.50 port 48529:11: [preauth]
May 06 08:37:35 transmission sshd[26755]: Disconnected from authenticating user root 116.31.116.50 port 48529 [preauth]
May 06 08:37:35 transmission sshd[26755]: PAM 2 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.31.116.50 user=root
May 06 08:37:42 transmission sudo[26781]: kdb424 : TTY=pts/0 ; PWD=/home/kdb424 ; USER=root ; COMMAND=/usr/bin/systemctl status transmission-rss.service
May 06 08:37:42 transmission sudo[26781]: pam_unix(sudo:session): session opened for user root by kdb424(uid=0)
May 06 08:37:46 transmission sudo[26781]: pam_unix(sudo:session): session closed for user root
May 06 08:38:00 transmission systemd[1]: Time has been changed
-- Subject: Time change
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Using Transmission-rss on transmission-gtk --> wrong port

Hi everyone

I m trying to use transmission-rss on my transmission-gtk
i open the web frontend on the port 8888 but seems like is connecting only on port 9091.
Here's my config:

ruby -v
ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

transmission-rss -v
0.2.3

My config.yml file is:

# Indent consistently with spaces!
# Format documentation on http://www.yaml.org/.
#

# List of feeds to watch.

feeds:
  - url: http://myurlforfeed.com/
    download_path: /home/user/myfolder

# Feed probing interval in seconds. Default is 600.

update_interval: 300

# Whether to add torrents paused. Default is false.

#add_paused: false

# The transmission server to connect to. Default is localhost:9091.

server:
  host: localhost
  port: 8888
  rpc_path: /transmission/rpc

# Uncomment if transmission server requires login.

login:
  username: myusername
  password: mypassword

# Where to log. Default is stderr.

log_target: /home/user/transmission-rss/log/transmissiond-rss.log

# Drop privileges. If omitted, privileges are not dropped.

#privileges:
#  user: nobody
#  group: nobody

# Fork?

fork: false

# Save PID.

pid_file: false
`

All i can see from the log is:

1487246958(debug) on_new_item event magnet:?xt=mymagnet
1487246958(debug) request localhost:9091
1487246958(debug) connection refused
1487246958(debug) not added to seen file magnet:?xt=mymagnet

I don't want to use transmission-daemon, i used from a long time transmission-gtk and it was fine to me.
I m using the web frontend with user and password correctly.

On top of the log i can see also:
1487244132(debug) loading user config /home/user/.config/transmission-rss/config.yml
1487244132(debug) watch_file /home/user/.config/transmission-rss/config.yml
1487244132(debug) version 0.2.3
1487244132(debug) {"feeds"=>[{"url"=>" [here i can find all the correct settings on the yml file]
1487244132(debug) no privilege dropping
1487244132(debug) 51 uris from seenfile
1487244132(debug) pid 7604
1487244132(debug) aggregator start

Seems like the "connection refused" goes on port 9091
Is there something i could do to make it work?

Thanks

URI needs to be encoded in aggregator.rb

If the RSS URL includes some special characters, the open in aggregator will fail. You first need to encode the URI and then everything works fine.

--- aggregator.rb.orig  2014-04-15 07:38:34.199838045 -0600
+++ aggregator.rb   2014-04-15 07:43:06.833372374 -0600
@@ -49,10 +49,13 @@
         @log.debug 'aggregate ' + url

         begin
+          url = URI.encode(url)
           content = open(url).readlines.join("\n")
           items = RSS::Parser.parse(content, false).items
-        rescue
+        rescue Exception => e
           @log.debug 'retrieval error'
+          @log.debug e.message
+          @log.debug e.backtrace.inspect
           next
         end

Can't use systemctl on this device.

I'd like to daemonize this, but I can't use the method described in the readme. I handle all of my other daemons on this device with "sudo service ". Is there a way to set up transmission-rss to work this way as well?

Stopped working recently

No sure why, but this stopped working the past few weeks. I am seeing this in the logs:

1459773315(debug) {"feeds"=>[{"url"=>"http://showrss.info/rss.php?user_id=REMOVED&hd=1&proper=1"}], "update_interval"=>600, "add_paused"=>false, "server"=>{"host"=>"localhost", "port"=>9091}, "login"=>{"username"=>"transmission", "password"=>"transmission"}, "log_target"=>"/usr/local/var/log/transmissiond-rss.log", "fork"=>false, "pid_file"=>false, "privileges"=>{}, "seen_file"=>nil}
1459773315(debug) no privilege dropping
1459773315(debug) 286 uris from seenfile
1459773315(debug) pid 10715
1459773315(debug) aggregator start
1459773315(debug) aggregate http://showrss.info/rss.php?user_id= REMOVED&hd=1&proper=1

If I wget the URL manually, I can see a bunch of magnet links. If I open localhost:9091 I can see the transmission web interface, version 2.92 (14714), but no new items are added :(

Any ideas how to troubleshoot further?

EDIT: If I delete /Users/Hackeron/.config/transmission/seen-torrents.conf then I see this in the logs:

1459773862(debug) on_new_item event magnet:?xt=urn:bite:[REMOVED]
1459773862(debug) request localhost:9091
1459773862(debug) got session id 6W5ME7L2n530Yqws0y3VNESFAD7JVR6bZWyConr8RGHrDg73
1459773862(debug) request localhost:9091
1459773862(debug) add_torrent result: download directory path is not absolute

EDIT 2: It seems to be an issue with Transmission: https://github.com/SickRage/sickrage-issues/issues/1071

More secure and efficient seen torrents lookup.

  1. The seen file unnecessarily logs the URIs of torrents transmission-rss processed. This compromises users privacy if the file contents somehow leak. Can be solved by using hashes.
  2. An ordinary file containing seen torrent URIs becomes less efficient with every added torrent. The lookup could be more performant by checking if the hash of an URI exists in the filesystem (comparable to the git object storage).

New release

is it possible to make a new release? last release was in April :)

initialize': no implicit conversion of nil into String (TypeError)

I get this when I try to start transmission-rss:

$ transmission-rss                   
/usr/local/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.24/lib/transmission-rss/aggregator.rb:26:in `initialize': no implicit conversion of nil into String (TypeError)
    from /usr/local/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.24/lib/transmission-rss/aggregator.rb:26:in `new'
    from /usr/local/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.24/lib/transmission-rss/aggregator.rb:26:in `block in initialize'
    from /usr/local/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.24/lib/transmission-rss/aggregator.rb:25:in `map'
    from /usr/local/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.24/lib/transmission-rss/aggregator.rb:25:in `initialize'
    from /usr/local/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.24/bin/transmission-rss:147:in `new'
    from /usr/local/lib/ruby/gems/2.2.0/gems/transmission-rss-0.1.24/bin/transmission-rss:147:in `<top (required)>'
    from /usr/local/bin/transmission-rss:23:in `load'   from /usr/local/bin/transmission-rss:23:in `<main>'

This is my /etc/transmission-rss.conf

feeds:
  - url: http://showrss.info/rss.php?user_id=184054&hd=2&proper=1

update_interval: 600

add_paused: false

server:
  host: localhost
  port: 9091

login:
  username: transmission
  password: transmission

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

fork: false

pid_file: false

Any ideas?

Regex with ruby 2.3 ??

Hello I'm trying to get my regex to work. Everything else is working but the regex doesn't make any sense to me.
This is the type of line I want to regex: "South Park S21E10 Stick of truth 1080p"

I want to download season 21 (S21) and only 1080p quality (1080p).

If I do regexp: (South Park S21).*(1080p)
I get all episodes with 1080p. Not only season 21. I'm running out of ideas. Have tried every thinkable combination by now :)

Any suggestions or tips?

THanks in advance

-BerraKode

ruby -v = ruby 2.3.3p222
transmission-rss -v = 0.2.6

exclude filter?

Just wondering if it'd be worth adding an exclude configuration option? Something like:

feeds:
  - url: http://www.somesite.com/feed.rss
    regexp: cool-package
    exclude: i386

Rather than needing some awkward negation on a regexp like ^(.(?!i386))*$

Trouble with new Transmission version?

All my feeds now look like this...

1452395988(debug) request localhost:9091
1452395988(debug) got session id DMdtO9GREfG6E8588owg1g1OPAydP6rIulIdebW7tPZ4f5mN
1452395988(debug) request localhost:9091
1452395989(debug) add_torrent result: gotMetadataFromURL: http error 0: No Response

Since this started, no new torrents get added.

I'm going to investigate on my end, but wanted to open the issue here.

Service suddenly stops and can't restart.

Hi,
First of all thank you for this great software,
I was using 0.2.6 release for a few months with no errors but it stopped a few days ago, today I installed latest version from github, still the same. Can you tell anything from the journal -xe output or do you need anything more?

ruby 2.3.3p222 (2016-11-21) [arm-linux-gnueabihf]

0.2.7.pre

Log output:● transmission-rss.service - Transmission RSS daemon.
Loaded: loaded (/etc/systemd/system/transmission-rss.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2017-12-05 00:01:35 +03; 9s ago
Process: 776 ExecStart=/usr/local/bin/transmission-rss -f (code=exited, status=1/FAILURE)

Dec 05 00:01:34 dragonglass transmission-rss[776]: 2017-12-05 00:01:34 (debug) 15475 uris from seenfile
Dec 05 00:01:34 dragonglass transmission-rss[776]: /var/lib/gems/2.3.0/gems/transmission-rss-0.2.7.pre/lib/transmission-rss/client.rb:19:in initialize': private method Dec 05 00:01:34 dragonglass transmission-rss[776]: from /var/lib/gems/2.3.0/gems/transmission-rss-0.2.7.pre/bin/transmission-rss:146:in new'
Dec 05 00:01:34 dragonglass transmission-rss[776]: from /var/lib/gems/2.3.0/gems/transmission-rss-0.2.7.pre/bin/transmission-rss:146:in <top (required)>' Dec 05 00:01:34 dragonglass transmission-rss[776]: from /usr/local/bin/transmission-rss:22:in load'
Dec 05 00:01:34 dragonglass transmission-rss[776]: from /usr/local/bin/transmission-rss:22:in `

'
Dec 05 00:01:35 dragonglass systemd[1]: transmission-rss.service: Control process exited, code=exited status=1
Dec 05 00:01:35 dragonglass systemd[1]: Failed to start Transmission RSS daemon..
Dec 05 00:01:35 dragonglass systemd[1]: transmission-rss.service: Unit entered failed state.
Dec 05 00:01:35 dragonglass systemd[1]: transmission-rss.service: Failed with result 'exit-code'.

mistake operating ,ingore it

Please include the following information in new issues:

  • ruby -v
  • transmission-rss -v
  • The content for your configuration file. You can anonymize URLs if the
    issue is independent of the feed contents.
  • Relevant lines from log output.

Hi everyone

Please include the following information in new issues:

  • ruby -v
  • transmission-rss -v
  • The content for your configuration file. You can anonymize URLs if the
    issue is independent of the feed contents.
  • Relevant lines from log output.

error with new config

first, i'm sorry if my english is bad.

ruby 2.1.5p273
transmission-rss 0.2.4
i run two transmission daemon ( 9091 & 9092 ) .
i've change the transmission port from 9091 to 9092 in transmission-rss.conf. but the rss still send to transmission 9091 not 9092 . here is the log

~$ sudo tail -f /var/log/transmissiond-rss.log
1493934651(debug) aggregate http://www.test.com
1493935252(debug) aggregate http://www.test.com
1493935853(debug) aggregate http://www.test.com
1493936078(debug) version 0.2.3
1493936078(debug) {"feeds"=>[{"url"=>"http://www.test.com"}], "update_interval"=>600, "add_paused"=>false, "server"=>{"host"=>"localhost", "port"=>9092, "rpc_path"=>"/transmission/rpc"}, "login"=>{"username"=>"transmission", "password"=>"test"}, "log_target"=>"/var/log/transmissiond-rss.log", "fork"=>false, "pid_file"=>false, "privileges"=>{}, "seen_file"=>nil}
1493936078(debug) no privilege dropping
1493936078(debug) 138 uris from seenfile
1493936078(debug) forked 31611
1493936078(debug) aggregator start
1493936078(debug) aggregate http://www.test.com
1493936678(debug) aggregate http://www.test.com
1493936679(debug) on_new_item event magnet:?xt=urn:btih:C5TPUEKIXXNBLXHTIKZY22CVJJQ425V5&tr=udp://tracker.coppersurfer.tk:6969/announce&tr=udp://tracker.internetwarriors.net:1337/announce&tr=udp://tracker.leechers-paradise.org:6969/announce&tr=http://tracker.internetwarriors.net:1337/announce&amp;tr=udp://tracker.opentrackr.org:1337/announce&amp;tr=http://tracker.opentrackr.org:1337/announce&amp;tr=udp://tracker.zer0day.to:1337/announce&amp;tr=udp://tracker.pirateparty.gr:6969/announce&amp;tr=http://explodie.org:6969/announce&amp;tr=http://p4p.arenabg.com:1337/announce&amp;tr=http://mgtracker.org:6969/announce
1493936679(debug) request localhost:9091
1493936679(debug) got session id wgI02Dql8WCK1DgouO3W20apj5cIsACBzk37zvgeN9TQJ5P5
1493936679(debug) request localhost:9091
1493936679(debug) torrent-add result: success (id 565)

undefined method `seed_ratio_limit'

I receive the following error using the latest docker images.

rss_1           | 1507067211(debug) watch_file /etc/transmission-rss.conf
rss_1           | 1507067211(debug) version 0.2.6.pre
rss_1           | 1507067211(debug) {"feeds"=>["http://showrss.info/user/xxxxxx.rss?magnets=true&namespaces=true&name=null&quality=null&re=null"], "update_interval"=>600, "add_paused"=>false, "server"=>{"host"=>"transmission"}, "login"=>nil, "log_target"=>#<IO:<STDERR>>, "fork"=>false, "pid_file"=>false, "privileges"=>{}, "seen_file"=>nil}
rss_1           | 1507067211(debug) no privilege dropping
rss_1           | 1507067211(debug) 0 uris from seenfile
rss_1           | {"host"=>"transmission"}
rss_1           | 1507067211(debug) pid 6
rss_1           | 1507067211(debug) aggregator start
rss_1           | 1507067211(debug) aggregate http://showrss.info/user/xxxxxx.rss?magnets=true&namespaces=true&name=null&quality=null&re=null
rss_1           | 1507067211(debug) aggregate certificate validation: false
rss_1           | 1507067216(debug) on_new_item event magnet:?xt=urn:btih:46F76D82BDEC439540F8A575276B92E36BBFDA2B&&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969%2Fannounce&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=http%3A%2F%2Ftracker.trackerfix.com%3A80%2Fannounce
rss_1           | ./bin/transmission-rss:158:in `block in <main>': undefined method `seed_ratio_limit' for nil:NilClass (NoMethodError)
rss_1           | 	from /home/ruby/transmission-rss/lib/transmission-rss/callback.rb:12:in `block (3 levels) in callback'
rss_1           | 	from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:111:in `process_link'
rss_1           | 	from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:72:in `block (3 levels) in run'
rss_1           | 	from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:71:in `each'
rss_1           | 	from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:71:in `block (2 levels) in run'
rss_1           | 	from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:44:in `each'
rss_1           | 	from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:44:in `block in run'
rss_1           | 	from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:43:in `loop'
rss_1           | 	from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:43:in `run'
rss_1           | 	from ./bin/transmission-rss:186:in `<main>'

Depfu Error: Found both *.gemspec and Gemfile.lock

Hello,

We've tried to activate or update your repository on Depfu and found something odd:

Your repo contains both a *.gemspec file and a Gemfile.lock.

Depfu can't really handle that right now, unfortunately, and it's also not best practice:

If your repo contains a *.gemspec that usually means it is meant to be used as a Gem, or put differently, a library. Locking dependencies on a library (via Gemfile.lock) doesn't really make sense, especially since the Gemfile.lock can't and won't be honored when building and installing the gem.

Instead, you should declare your dependencies as specifically as needed (but as loose as possible) in the *.gemspec and add the Gemfile.lock to your .gitignore.

By checking in the Gemfile.lock, you will not only break Depfu (which we might fix at some point, maybe), but you will also keep your CI from testing against real life sets of dependencies.


This is an automated issue by Depfu. You're getting it because someone configured Depfu to automatically update dependencies on this project.

Torrent add confirmation

There is no confirmation that the torrent was successfully add, so sometimes the transmission-daemon isn't up and the transmission-rss don't add the torrents but wrongly puts the link in the seen-torrents.conf.

docker container stop unexpected overnight

aggregate https://xxx/torrentrss.php?
1503150700(debug) on_new_item event https://xxx/download.php?
1503150700(debug) request :19091
1503150704(debug) got session id xx
1503150704(debug) request :19091
1503150709(debug) connection timeout
1503150709(debug) request :19091
/usr/local/bundle/gems/json-2.1.0/lib/json/common.rb:156:in parse': 765: unexpected token at '<h1>409: Conflict</h1><p>Your request had an invalid session-id header.</p><p>To fix this, follow these steps:<ol><li> When reading a response, get its X-Transmission-Session-Id header and remember it<li> Add the updated header to your outgoing requests<li> When you get this 409 error message, resend your request with the updated header</ol></p><p>This requirement has been added to help prevent <a href="http://en.wikipedia.org/wiki/Cross-site_request_forgery">CSRF</a> attacks.</p><p><code>X-Transmission-Session-Id: xxx</code></p>' (JSON::ParserError) from /usr/local/bundle/gems/json-2.1.0/lib/json/common.rb:156:in parse'
from /home/ruby/transmission-rss/lib/transmission-rss/client.rb:37:in rpc' from /home/ruby/transmission-rss/lib/transmission-rss/client.rb:56:in add_torrent'
from ./bin/transmission-rss:150:in block in <main>' from /home/ruby/transmission-rss/lib/transmission-rss/callback.rb:12:in block (3 levels) in callback'
from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:103:in process_link' from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:64:in block (3 levels) in run'
from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:63:in each' from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:63:in block (2 levels) in run'
from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:43:in each' from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:43:in block in run'
from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:42:in loop' from /home/ruby/transmission-rss/lib/transmission-rss/aggregator.rb:42:in run'
from ./bin/transmission-rss:181:in `

'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.