Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unhandled error in plugin qbittorrent #2188

@thedavix12

Description

@thedavix12

Expected behavior:

the qbittorrent plugin should produce entries in qbittorrent

Actual behavior:

After upgrading to flexget 2.14.13 from 2.13.x, I am getting an unhandled error when flexget is trying to parse files via the qbittorrent plugin.

In order to check if the torrent files from torrentleech are ok, I changed the config.yml to download the torrents in a monitored folder by qbittorrent (instead of using the qbittorrent plugin) and this works fine, so I am using this workaround for the time being.

Steps to reproduce:

  • use qbittorrent plugin to automatically add torrents

Config:

web_server: yes

templates:

  global:
    notify:
      abort:
        via:
          - pushover:
              user_key: xxxxxxxxxxxxxx
              api_key: xxxxxxxxxxxxxxxxxx

  tv:
    thetvdb_lookup: yes

    regexp:
      reject:
        - French

    series:
      settings:
        default TV:
          quality: 720p hdtv+ <=ac3
          propers: 6 hours

      default TV:
        - The 100
        - Designated Survivor

tasks:
  torrentleech:
    cfscraper: yes
    rss: http://rss.torrentleech.org/xxxxxxxxxxxxxxxxxx
    headers:
      User-Agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36"
    template: tv
    qbittorrent:
      label: tv
      host: localhost
      port: 8080
    notify:
      task:
        via:
          - pushover:
              user_key: xxxxxxxxxxx
              api_key: xxxxxxxxxxxxxxx

Log:

2018-08-01 08:37 INFO     download      torrentleech    Downloading: The 100 S05E12 720p WEB x264-TBS
2018-08-01 08:37 CRITICAL task          torrentleech    BUG: Unhandled error in plugin qbittorrent: Trying to render non string template or unrecognized template format, got None
2018-08-01 08:37 CRITICAL manager       torrentleech    An unexpected crash has occurred. Writing crash report to /home/xxxxx/.flexget/crash_report.2018.08.01.083751273171.log. Please verify you are running the latest version of flexget by using "flexget -V" from CLI or by using version_checker plugin at http://flexget.com/wiki/Plugins/version_checker. You are currently using version 2.14.13
2018-08-01 08:37 WARNING  task          torrentleech    Aborting task (plugin: qbittorrent)
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flexget/task.py", line 486, in __run_plugin
    return method(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/clients/qbittorrent.py", line 172, in on_task_output
    self.add_entries(task, config)
  File "/usr/local/lib/python2.7/dist-packages/flexget/plugins/clients/qbittorrent.py", line 115, in add_entries
    save_path = entry.render(entry.get('path', config.get('path')))
  File "/usr/local/lib/python2.7/dist-packages/flexget/entry.py", line 292, in render
    'Trying to render non string template or unrecognized template format, got %s' % repr(template))
ValueError: Trying to render non string template or unrecognized template format, got None

Additional information:

  • FlexGet version: 2.14.13
  • Python version: 2.7.14
  • Installation method: pip
  • Using daemon (yes/no): yes
  • OS and version: Ubuntu 17.10
  • Link to crash log: see log above

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions