nning / transmission-rss

Adds torrents from RSS feeds to Transmission web frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid option when using -s

dangerman200k opened this issue · comments

I'm running on BSD, therefore no Systemd. Cron seems like it should be an easy and acceptable solution so I thought I'd set it up that way, but running transmission-rss -s results in:

root@transmission:/ # /usr/local/bin/transmission-rss -s
/usr/local/bin/transmission-rss: invalid option -- s
/usr/local/lib/ruby/2.4/getoptlong.rb:395:in `set_error': invalid option -- s (GetoptLong::InvalidOption)
	from /usr/local/lib/ruby/2.4/getoptlong.rb:572:in `get'
	from /usr/local/lib/ruby/2.4/getoptlong.rb:603:in `block in each'
	from /usr/local/lib/ruby/2.4/getoptlong.rb:602:in `loop'
	from /usr/local/lib/ruby/2.4/getoptlong.rb:602:in `each'
	from /usr/local/lib/ruby/gems/2.4/gems/transmission-rss-1.0.0/bin/transmission-rss:55:in `<top (required)>'
	from /usr/local/bin/transmission-rss:23:in `load'
	from /usr/local/bin/transmission-rss:23:in `<main>'

Running without options I get:

2019-04-08 12:21:05 (info) transmission-rss 1.0.0
2019-04-08 12:21:05 (debug) {"feeds"=>[{"url"=>"https://example.com", "download_path"=>"/mnt/path"}], "update_interval"=>600, "add_paused"=>false, "server"=>{"host"=>"localhost", "port"=>9091, "rpc_path"=>"/transmission/rpc"}, "login"=>nil, "log"=>{"target"=>#<IO:<STDERR>>, "level"=>:debug}, "fork"=>false, "pid_file"=>false, "privileges"=>{}, "seen_file"=>nil, "single"=>false}
2019-04-08 12:21:05 (debug) no privilege dropping
2019-04-08 12:21:05 (debug) 0 uris from seenfile
2019-04-08 12:21:05 (debug) pid 41212
2019-04-08 12:21:05 (debug) aggregator start
2019-04-08 12:21:05 (debug) aggregate https://example.com

It then sits like this indefinitely - not sure what the log output should ordinarily look like. Adding single: true to the config and then running without options doesn't change anything (apart from the config value being correctly logged).

Any ideas if this is something I'm doing wrong or a bug?

  • ruby 2.4.5p335 (2018-10-18 revision 65137) [amd64-freebsd10]
  • transmission-rss -v: 1.0.0
  • Config:
feeds:
  - url: https://example.com
    download_path: /mnt/my/path

Ah, I see, the README documents features available in master and I'm installing the stable 1.0.0 version. Could it be made clear in the README that some of the things it refers to are not released to stable yet?

I am in the exact same boat, have you found a work around for this?

I'm sorry, a release was overdue!
https://github.com/nning/transmission-rss/releases/tag/v1.1.0

Version v1.1.0 contains the single run mode. Therefor, I'm closing this issue; feel free to re-open if it does not work for you!

I added a note about the README.

Thanks for reaching out!