Quantcast
Channel: help - Forum - FlexGet
Viewing all 837 articles
Browse latest View live

Help with irc_bot configuration

$
0
0

Hi! I’m struggling with the irc_bot config since a couple of days, can’t figure out why the following config is not downloading anything that matches the regexp:

irc:
  torrentsite:
    tracker_file: 'xxxx.tracker'
    nickname: 'xxxx' 
    nickserv_password: 'xxxx'
    port: 6667
    rsskey: 'xxxxx'
    task_re:
      - task: get_entry
        patterns:
          - regexp: .*Nintendo.*Switch.*
            field: irc_category
      - task: get_anime
        patterns:
          - regexp: .*HorribleSubs.*1080p.*
            field: irc_torrentname
    channels: ["xxxxxxx"]

templates:
  global:
    qbittorrent:
      host: localhost
      port: 8083
      username: "xxxxx"
      password: "xxxxxx"
  switch:
    qbittorrent:
      label: switch-release
    notify:
      entries:
        message: |+
          {% if irc_torrentname is defined -%}
          Nuovo download: {{irc_torrentname}}
          {%endif%}
        via:
          - telegram:
              bot_token: "xxxxxxxx"
              parse_mode: markdown
              recipients:
                - group: xxxxxx
  anime:
    qbittorrent:
      path: /mnt/downloads/qbittorrent/{{irc_torrentname}}
      label: anime-release
    notify:
      entries:
        message: |+
          {% if irc_torrentname is defined -%}
          Nuovo download: {{irc_torrentname}}
          {%endif%}
        via:
          - telegram:
              bot_token: "xxxxxxxxxxxxxxxxxxx"
              parse_mode: markdown
              recipients:
                - group: xxxxxxxxxxxxxx

tasks:
  get_entry:  
    accept_all: yes
    template: switch
  get_anime:  
    accept_all: yes
    template: anime

Also tried using ‘manual: yes’ but to no avail, IRC logs seem to be parsed correctly but it just won’t go past the “injecting 1 entry into task …” message

Any help is really appreciated :slight_smile:

1 post - 1 participant

Read full topic


RSS still showing all entries with `all_entires: no`

$
0
0

I’m not sure if this is a bug or just an issue on my end, but with the following config:

        movie-rss-golden:
                priority: 16
                template: movie
                parsing:
                        movie: guessit
                imdb_lookup: yes
                rss:
                        url: '{? ptp.rss_1080_golden ?}'
                        all_entries: no

It seems like all_entries: no isn’t getting respected.

I’ll do a first run, and it will accept and success, but subsequent runs will produce output like

2020-08-27 06:17:38 VERBOSE  details       movie-rss-golden Produced 50 entries.

Which, I would expect it to produce 0 entries if run immediately after the first run.

This normally wouldn’t be a huge deal, but I’m running into https://github.com/Flexget/Flexget/issues/2701 which is causing the entire task to fail and it’s not grabbing new RSS entries.

6 posts - 2 participants

Read full topic

Plugin remove stale torrents Error connecting to transmission: Network is unreachable

$
0
0

Hello, I am a Chinese user, using the from_transmission plugin prompts the following error.

2020-09-17 08:06:31 INFO manager Test mode, creating a copy from database …
2020-09-17 08:06:31 INFO manager Test database created
2020-09-17 08:06:33 VERBOSE task_queue There are 1 tasks to execute. Shutdown will commence when they have completed.
2020-09-17 08:06:33 INFO transmission remove stale torrents Trying to connect to transmission…
2020-09-17 08:06:33 CRITICAL plugin remove stale torrents Error connecting to transmission: Network is unreachable
2020-09-17 08:06:33 WARNING task remove stale torrents Aborting task (plugin: transmission)
2020-09-17 08:06:34 INFO manager Removed test database

here’s the congfig.yml:

templates:
tr:
transmission:
path: /data
host: localhost
port: 9091
username: myusername
password: mypassword

tasks:
HD dolby:
rss:
url: https://www.xxx.com
accept_all: yes

free_space:
  path: /data
  space: 10240

seen: local

content_size:
  min: 1000
  max: 51200
  strict: no

download: /data/t

template: tr

tasks:
remove stale torrents:
from_transmission:
host: localhost
port: 9091
username: myusername
password: mypassword
disable: [seen, seen_info_hash]
if:
- transmission_date_done > now - timedelta(days=3): reject
transmission:
host: localhost
port: 9099
username: hacker2k
password: caoxiong1
action: purge

1 post - 1 participant

Read full topic

Series: Regex for title that searches outside of the series name/id?

$
0
0

I would like to use the series plugin, but I only want it to download a show from a certain group. This question would also apply to, say, only wanting HDR, or only a release from a certain website, etc. Anything that can be determined from the title of a release that isn’t in the name or episode identifier.

The series plugin has name_regexp, id_regexp, and ep_regexp, but I don’t want to modify how the plugin matches any of those things. I just want to accept or reject entries based on other free text in the title. And only this series, not all series.

Is there an existing plugin I can use for this? I can’t seem to find one in the docs. I assume that using name regexp for this would break things like series detection because the name is before the series identifier and the text I want to search for is after the series identifier, but maybe that isn’t the case?

Example: Show Name S01E02 Some Interesting Data - Group
I want to filter by only accepting an entry if Some Interesting Data contains something.

Thanks!

1 post - 1 participant

Read full topic

Problem to rename file

$
0
0

hi all master here.i wish to change this file name after download from:
[在一起.With.You.2020.E01.WEB-DL.4k.H265.AAC]
to
[在一起.With.You.S01E01.WEB-DL.4k.H265.AAC]

but i fail.
my config can download, but cannot change the file name.
anyone can help me ?

templates:
  tr:
    transmission:
      host: xx
      port: xx
      username: admin
      password: xx

tasks:
  HDSky-在一起:
      rss:xxxx
    seen:
      fields:
        - url
    regexp:
      accept:
        - HDSWEB
    template: tr
    set:
      path: /volume1/Media/陆剧
    content_size:
      min: 1000
      max: 4000
      strict: no
    manipulate:
    - filename:
        replace:
          regexp: '\b2020.\b'
          format: 'S01'

the error return is like this.

2020-10-03 01:34:33 CRITICAL manager                       [/tasks/HDSky-在一起-sort/filesystem/path] `/volume1/Media/陆剧/在一起.With.You.2020.WEB-DL.4k.H265.AAC-HDSWEB` does not exist

but this folder is actually exist.

can anyone help ?

1 post - 1 participant

Read full topic

Could not parse rfc1738 URL from string

$
0
0

Hi, I just see this error, I don’t know what happen now, all seems like always but I get this error

Traceback (most recent call last):
  File "/data/Varie/virtualenvs/flexget/bin/flexget", line 8, in <module>
    sys.exit(main())
  File "/data/Varie/virtualenvs/flexget/lib/python3.7/site-packages/flexget/__init__.py", line 44, in main
    manager.start()
  File "/data/Varie/virtualenvs/flexget/lib/python3.7/site-packages/flexget/manager.py", line 372, in start
    self.initialize()
  File "/data/Varie/virtualenvs/flexget/lib/python3.7/site-packages/flexget/manager.py", line 224, in initialize
    self.init_sqlalchemy()
  File "/data/Varie/virtualenvs/flexget/lib/python3.7/site-packages/flexget/manager.py", line 809, in init_sqlalchemy
    connect_args={'check_same_thread': False, 'timeout': 10},
  File "/data/Varie/virtualenvs/flexget/lib/python3.7/site-packages/sqlalchemy/engine/__init__.py", line 479, in create_engine
    return strategy.create(*args, **kwargs)
  File "/data/Varie/virtualenvs/flexget/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 54, in create
    u = url.make_url(name_or_url)
  File "/data/Varie/virtualenvs/flexget/lib/python3.7/site-packages/sqlalchemy/engine/url.py", line 229, in make_url
    return _parse_rfc1738_args(name_or_url)
  File "/data/Varie/virtualenvs/flexget/lib/python3.7/site-packages/sqlalchemy/engine/url.py", line 291, in _parse_rfc1738_args
    "Could not parse rfc1738 URL from string '%s'" % name
sqlalchemy.exc.ArgumentError: Could not parse rfc1738 URL from string ''

Any idea?

2 posts - 2 participants

Read full topic

trakt_list watched/shows

$
0
0

Plugin do not produce entries from

trakt_list:
  account: '{? trakt.account ?}'
  list: watched
  type: shows

1 post - 1 participant

Read full topic

Getting Timeout error

$
0
0

Pyhon 3.6
Flexget 3.1.85

I am getting the following bug reports and can’t seem to figure this out.


2020-11-07 11:28:08 CRITICAL task          YIFY task       BUG: Unhandled error in plugin transmission: timed out
Traceback (most recent call last):

  File "/usr/local/lib/python3.6/threading.py", line 884, in _bootstrap
    self._bootstrap_inner()
    |    -> <function Thread._bootstrap_inner at 0x7f65228e7e18>
    -> <Thread(task_queue, started daemon 140072175621888)>
  File "/usr/local/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
    |    -> <function Thread.run at 0x7f65228e7bf8>
    -> <Thread(task_queue, started daemon 140072175621888)>
  File "/usr/local/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
    |    |        |    |        |    -> {}
    |    |        |    |        -> <Thread(task_queue, started daemon 140072175621888)>
    |    |        |    -> ()
    |    |        -> <Thread(task_queue, started daemon 140072175621888)>
    |    -> <bound method TaskQueue.run of <flexget.task_queue.TaskQueue object at 0x7f6518edcdd8>>
    -> <Thread(task_queue, started daemon 140072175621888)>
  File "/usr/local/lib/python3.6/site-packages/flexget/task_queue.py", line 46, in run
    self.current_task.execute()
    |    |            -> <function Task.execute at 0x7f651bfb4d90>
    |    -> <flexget.task.Task object at 0x7f651c97e5c0>
    -> <flexget.task_queue.TaskQueue object at 0x7f6518edcdd8>
  File "/usr/local/lib/python3.6/site-packages/flexget/task.py", line 87, in wrapper
    return func(self, *args, **kw)
           |    |      |       -> {}
           |    |      -> ()
           |    -> <flexget.task.Task object at 0x7f651c97e5c0>
           -> <function Task.execute at 0x7f651bfb4d08>
  File "/usr/local/lib/python3.6/site-packages/flexget/task.py", line 722, in execute
    self._execute()
    |    -> <function Task._execute at 0x7f651bfb4c80>
    -> <flexget.task.Task object at 0x7f651c97e5c0>
  File "/usr/local/lib/python3.6/site-packages/flexget/task.py", line 688, in _execute
    self.__run_task_phase(phase)
    |                     -> 'output'
    -> <flexget.task.Task object at 0x7f651c97e5c0>
  File "/usr/local/lib/python3.6/site-packages/flexget/task.py", line 514, in __run_task_phase
    response = self.__run_plugin(plugin, phase, args)
               |                 |       |      -> (<flexget.task.Task object at 0x7f651c97e5c0>, {'host': '127.0.0.1', 'port': 8181, 'username': 'admin', 'password': 'admin', ...
               |                 |       -> 'output'
               |                 -> <PluginInfo(name=transmission)>
               -> <flexget.task.Task object at 0x7f651c97e5c0>
> File "/usr/local/lib/python3.6/site-packages/flexget/task.py", line 547, in __run_plugin
    result = method(*args, **kwargs)
             |       |       -> {}
             |       -> (<flexget.task.Task object at 0x7f651c97e5c0>, {'host': '127.0.0.1', 'port': 8181, 'username': 'admin', 'password': 'admin', ...
             -> <Event(name=plugin.transmission.output,func=on_task_output,priority=135)>
  File "/usr/local/lib/python3.6/site-packages/flexget/event.py", line 20, in __call__
    return self.func(*args, **kwargs)
           |    |     |       -> {}
           |    |     -> (<flexget.task.Task object at 0x7f651c97e5c0>, {'host': '127.0.0.1', 'port': 8181, 'username': 'admin', 'password': 'admin', ...
           |    -> <bound method PluginTransmission.on_task_output of <flexget.plugins.clients.transmission.PluginTransmission object at 0x7f651...
           -> <Event(name=plugin.transmission.output,func=on_task_output,priority=135)>
  File "/usr/local/lib/python3.6/site-packages/flexget/plugins/clients/transmission.py", line 369, in on_task_output
    session_torrents = self.client.get_torrents()
                       |    |      -> <function Client.get_torrents at 0x7f651ad62840>
                       |    -> <transmissionrpc.client.Client object at 0x7f651bfbe0f0>
                       -> <flexget.plugins.clients.transmission.PluginTransmission object at 0x7f651a291f98>
  File "/usr/local/lib/python3.6/site-packages/transmissionrpc/client.py", line 583, in get_torrents
    return list(self._request('torrent-get', {'fields': arguments}, ids, timeout=timeout).values())
                |    |                                  |           |            -> None
                |    |                                  |           -> None
                |    |                                  -> ['activityDate', 'addedDate', 'bandwidthPriority', 'comment', 'corruptEver', 'creator', 'dateCreated', 'desiredAvailable', 'd...
                |    -> <function Client._request at 0x7f651ad51d08>
                -> <transmissionrpc.client.Client object at 0x7f651bfbe0f0>
  File "/usr/local/lib/python3.6/site-packages/transmissionrpc/client.py", line 247, in _request
    http_data = self._http_query(query, timeout)
                |    |           |      -> None
                |    |           -> '{"tag": 1, "method": "torrent-get", "arguments": {"fields": ["activityDate", "addedDate", "bandwidthPriority", "comment", "c...
                |    -> <function Client._http_query at 0x7f651ad51c80>
                -> <transmissionrpc.client.Client object at 0x7f651bfbe0f0>
  File "/usr/local/lib/python3.6/site-packages/transmissionrpc/client.py", line 205, in _http_query
    result = self.http_handler.request(self.url, query, headers, timeout)
             |    |            |       |    |    |      |        -> 30.0
             |    |            |       |    |    |      -> {'x-transmission-session-id': 'mx4FH5Ulgbhkr9G0rgvXyzgzaePnQUrRa3RxZpgVifpH9mH7'}
             |    |            |       |    |    -> '{"tag": 1, "method": "torrent-get", "arguments": {"fields": ["activityDate", "addedDate", "bandwidthPriority", "comment", "c...
             |    |            |       |    -> 'http://127.0.0.1:8181/transmission/rpc'
             |    |            |       -> <transmissionrpc.client.Client object at 0x7f651bfbe0f0>
             |    |            -> <function DefaultHTTPHandler.request at 0x7f651ada9ea0>
             |    -> <transmissionrpc.httphandler.DefaultHTTPHandler object at 0x7f651bfbe278>
             -> <transmissionrpc.client.Client object at 0x7f651bfbe0f0>
  File "/usr/local/lib/python3.6/site-packages/transmissionrpc/httphandler.py", line 65, in request
    response = self.http_opener.open(request, timeout=timeout)
               |    |           |    |                -> 30.0
               |    |           |    -> <urllib.request.Request object at 0x7f651c99d780>
               |    |           -> <function OpenerDirector.open at 0x7f651db84ea0>
               |    -> <urllib.request.OpenerDirector object at 0x7f65186db048>
               -> <transmissionrpc.httphandler.DefaultHTTPHandler object at 0x7f651bfbe278>
  File "/usr/local/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
               |    |    -> <http.client.HTTPResponse object at 0x7f651c99d940>
               |    -> <urllib.request.Request object at 0x7f651c99d780>
               -> <bound method HTTPErrorProcessor.http_response of <urllib.request.HTTPErrorProcessor object at 0x7f651c997fd0>>
  File "/usr/local/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
            |        |         |     |    -> <http.client.HTTPMessage object at 0x7f651c97e898>
            |        |         |     -> 'Unauthorized'
            |        |         -> 401
            |        -> <http.client.HTTPResponse object at 0x7f651c99d940>
            -> <urllib.request.Request object at 0x7f651c99d780>
  File "/usr/local/lib/python3.6/urllib/request.py", line 564, in error
    result = self._call_chain(*args)
             |    |            -> ({'default': [<urllib.request.HTTPDefaultErrorHandler object at 0x7f65186db550>], 301: [<urllib.request.HTTPRedirectHandler o...
             |    -> <function OpenerDirector._call_chain at 0x7f651db84e18>
             -> <urllib.request.OpenerDirector object at 0x7f65186db048>
  File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
             |     -> (<urllib.request.Request object at 0x7f651c99d780>, <http.client.HTTPResponse object at 0x7f651c99d940>, 401, 'Unauthorized',...
             -> <bound method HTTPBasicAuthHandler.http_error_401 of <urllib.request.HTTPBasicAuthHandler object at 0x7f651ca9c5c0>>
  File "/usr/local/lib/python3.6/urllib/request.py", line 1028, in http_error_401
    url, req, headers)
    |    |    -> <http.client.HTTPMessage object at 0x7f651c97e898>
    |    -> <urllib.request.Request object at 0x7f651c99d780>
    -> 'http://127.0.0.1:8181/transmission/rpc'
  File "/usr/local/lib/python3.6/urllib/request.py", line 981, in http_error_auth_reqed
    return self.retry_http_basic_auth(host, req, realm)
           |    |                     |     |    -> 'Transmission'
           |    |                     |     -> <urllib.request.Request object at 0x7f651c99d780>
           |    |                     -> 'http://127.0.0.1:8181/transmission/rpc'
           |    -> <function AbstractBasicAuthHandler.retry_http_basic_auth at 0x7f651db83d08>
           -> <urllib.request.HTTPBasicAuthHandler object at 0x7f651ca9c5c0>
  File "/usr/local/lib/python3.6/urllib/request.py", line 991, in retry_http_basic_auth
    return self.parent.open(req, timeout=req.timeout)
           |    |      |    |            |   -> 30.0
           |    |      |    |            -> <urllib.request.Request object at 0x7f651c99d780>
           |    |      |    -> <urllib.request.Request object at 0x7f651c99d780>
           |    |      -> <function OpenerDirector.open at 0x7f651db84ea0>
           |    -> <urllib.request.OpenerDirector object at 0x7f65186db048>
           -> <urllib.request.HTTPBasicAuthHandler object at 0x7f651ca9c5c0>
  File "/usr/local/lib/python3.6/urllib/request.py", line 526, in open
    response = self._open(req, data)
               |    |     |    -> None
               |    |     -> <urllib.request.Request object at 0x7f651c99d780>
               |    -> <function OpenerDirector._open at 0x7f651db84f28>
               -> <urllib.request.OpenerDirector object at 0x7f65186db048>
  File "/usr/local/lib/python3.6/urllib/request.py", line 544, in _open
    '_open', req)
             -> <urllib.request.Request object at 0x7f651c99d780>
  File "/usr/local/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
             |     -> (<urllib.request.Request object at 0x7f651c99d780>,)
             -> <bound method HTTPHandler.http_open of <urllib.request.HTTPHandler object at 0x7f65186dbf28>>
  File "/usr/local/lib/python3.6/urllib/request.py", line 1346, in http_open
    return self.do_open(http.client.HTTPConnection, req)
           |    |       |    |      |               -> <urllib.request.Request object at 0x7f651c99d780>
           |    |       |    |      -> <class 'http.client.HTTPConnection'>
           |    |       |    -> <module 'http.client' from '/usr/local/lib/python3.6/http/client.py'>
           |    |       -> <module 'http' from '/usr/local/lib/python3.6/http/__init__.py'>
           |    -> <function AbstractHTTPHandler.do_open at 0x7f651db877b8>
           -> <urllib.request.HTTPHandler object at 0x7f65186dbf28>
  File "/usr/local/lib/python3.6/urllib/request.py", line 1321, in do_open
    r = h.getresponse()
        | -> <function HTTPConnection.getresponse at 0x7f651e7b6488>
        -> <http.client.HTTPConnection object at 0x7f651c99d860>
  File "/usr/local/lib/python3.6/http/client.py", line 1346, in getresponse
    response.begin()
    |        -> <function HTTPResponse.begin at 0x7f651e7b4730>
    -> <http.client.HTTPResponse object at 0x7f651c97ea20>
  File "/usr/local/lib/python3.6/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
                              |    -> <function HTTPResponse._read_status at 0x7f651e7b47b8>
                              -> <http.client.HTTPResponse object at 0x7f651c97ea20>
  File "/usr/local/lib/python3.6/http/client.py", line 268, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
               |    |           -> 65536
               |    -> None
               -> <http.client.HTTPResponse object at 0x7f651c97ea20>
  File "/usr/local/lib/python3.6/socket.py", line 586, in readinto
    return self._sock.recv_into(b)
           |    |               -> <memory at 0x7f6519095c48>
           |    -> None
           -> <socket.SocketIO object at 0x7f651c97ed30>

socket.timeout: timed out

2 posts - 2 participants

Read full topic


Rlsbb, Cloudflare version 2 and proxy url

$
0
0

Hi everyone,

Since two days ago my task using rlsbb feed went in error with this message :

BUG: Unhandled error in plugin rss: Detected a Cloudflare version 2 challenge, This feature is not available in the opensource (free) version.
cloudscraper.exceptions.CloudflareChallengeError: Detected a Cloudflare version 2 challenge, This feature is not available in the opensource (free) version.

So I changed the url from url: https://rlsbb.ru/category/tv-shows/feed to https://proxybb.com/category/tv-shows/feed but it seems that the parse_comments: yes from rlsbb plugin is not working in that case.

Can you help me with this please ?

4 posts - 2 participants

Read full topic

Problems with quality plugin

$
0
0

I"m having two issues.

  1. how do I get flexget to prefer h265?
  2. I seem to be having problems getting the quality plugin to work properly. Is it because HEVC isn’t in the list of known quality sources or is it the MeGusta? This is a common error I’m getting --> 720p HEVC x265-MeGusta. Does not meet quality requirement 720p+ webrip+ h264+

Thank you.

2 posts - 2 participants

Read full topic

Unhandled error in lazy lookup plugin causes LOT of crash reports

$
0
0

I’m getting a lot of crash logs. I mean a lot: last time I had issues deleting them because there were thousands of them and the rm command won’t work.

First of all I think that it should not happen: after a number of crash logs flexget should give up adding them or at least it should remove old ones, but this is just an idea.

The real problem is why they are happpening, and for that I don’t know where to look.
Anybody can help, please?

fmf@kodi:~/.flexget$ flexget -V
3.1.89
You are on the latest release.

My config: https://github.com/effemmeffe/flexget/blob/d4e422ec4a1ee3e8f5e919dee248b3382742734b/config.yml
The crash log: https://pastebin.com/p072br4w

2 posts - 2 participants

Read full topic

Critical plugin error SSL: WRONG_VERSION_NUMBER

$
0
0

I’ve been running Flexget fine for some time (years) but now I’m getting the below error in my log and nothing is getting downloaded. Not sure what I need to correct. Is it a python issue or flexget or the RSS server?

CRITICAL plugin Unable to download the RSS for task [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:727)

Thanks for looking

1 post - 1 participant

Read full topic

Unable to start flexget, error on check

$
0
0

I have just installed, and got this error on flexget check:

2020-12-03 17:32 CRITICAL plugin Exception while loading plugin flexget.components.archives.decompress
Traceback (most recent call last):
File “/usr/local/lib/python2.7/dist-packages/flexget/plugin.py”, line 434, in _import_plugin
import_module(module_name)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/usr/local/lib/python2.7/dist-packages/flexget/components/archives/decompress.py”, line 11, in
from flexget.components.archives import utils as archiveutil
File “/usr/local/lib/python2.7/dist-packages/flexget/components/archives/utils.py”, line 16, in
import rarfile
File “/usr/local/lib/python2.7/dist-packages/rarfile.py”, line 811
print(f.filename, file=file)
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File “/usr/local/bin/flexget”, line 8, in
sys.exit(main())
File “/usr/local/lib/python2.7/dist-packages/flexget/init.py”, line 47, in main
manager.start()
File “/usr/local/lib/python2.7/dist-packages/flexget/manager.py”, line 399, in start
self.initialize()
File “/usr/local/lib/python2.7/dist-packages/flexget/manager.py”, line 236, in initialize
extra_components=[os.path.join(self.config_base, ‘components’)],
File “/usr/local/lib/python2.7/dist-packages/flexget/plugin.py”, line 562, in load_plugins
_load_components_from_dirs(extra_components)
File “/usr/local/lib/python2.7/dist-packages/flexget/plugin.py”, line 503, in _load_components_from_dirs
_import_plugin(package_name, component_path)
File “/usr/local/lib/python2.7/dist-packages/flexget/plugin.py”, line 434, in _import_plugin
import_module(module_name)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
File “/usr/local/lib/python2.7/dist-packages/flexget/components/archives/decompress.py”, line 11, in
from flexget.components.archives import utils as archiveutil
File “/usr/local/lib/python2.7/dist-packages/flexget/components/archives/utils.py”, line 16, in
import rarfile
File “/usr/local/lib/python2.7/dist-packages/rarfile.py”, line 811
print(f.filename, file=file)
^
What does it mean, and how to resolve?

1 post - 1 participant

Read full topic

Rename filename download from magnet link

$
0
0

I am trying to download Detective Conan series from www.sbsub.com/data/rss/, the rss provide magnet only.

The downloaded file name would be something like: [SBSUB][CONAN][990][1080P][AVC_AAC][CHS_JP](41F00E1A).mp4 . But I want to rename it to {title}.mp4. However this config does not work:

templates:
    tm:
        transmission:
            host: 127.0.0.1
            port: 9091
            username: username
            password: password
tasks:
    sbsub:
        rss:
            url: https://www.sbsub.com/data/rss/
            all_entries: no
        if:
            - "'简日' not in title": reject
        regexp:
            accept:
                - 第99  # filter the latest episode 
        set:
            content_filename: '{{title|pathscrub}}'
        template:
            - tm

It would output an warning: No files in "{title}" are > 90% of content size, no files renamed.

I figured that the current process was(please correct):

  • flex add magnet link to transmission
  • transmission use the link download the actual torrent file(or fetch meta info) <- this is when the warning occurs
  • transmission use the torrent to download <- this is when I actually want to do the renaming thing.

Any suggestion on this?

1 post - 1 participant

Read full topic

Could such like "if content_size > free_space: reject" works?

$
0
0

I use free_space to abort a task right now, such 10GB

but when task accept multi entries, it seems like that even the total size > free_space, the task will also run.

something like this:
entry 1 < 10G
entry 2 < 10G
entry 3 < 10G
but entry 1+2+3 > 10G

that full my disk.

So, I was wondering that is there a way to get “if total content_size > free_space: reject” works?

1 post - 1 participant

Read full topic


Discover and rarbg - No results found

$
0
0

Hello all,
I am currently trying to configure flexget with discover and rarbg.

Flexget is giving me a “No Results Found” in the log, despite being able to search for said episode (with the logged string) directly on rarbg.

I’ve tried some solutions from other forum posts, but still coming up empty on a fix.
I am somewhat new to flexget, so it’s possible I have a mis-configure.
Any help is appreciated!

Environment: Windows 10, Python 3.6.8, Flexget 3.1.93

config.yml

tasks:
  trakt-watchlist-episodes:
    trakt_list:
      username: <redacted>
      list: watchlist
      type: episodes
    accept_all: yes
    seen: local  
    list_add:
      - entry_list: episodes_list

  discover-task:
    discover:
      what:
        - entry_list: episodes_list
      from:
        - rarbg: 
            category: # Included all categories for troubleshooting
              - x264 720p
              - x264 1080p
              - XviD
              - Full BD
              - HDTV
              - SDTV # Category 18, where the manual rarbg search has a result
            ranked: false # Added to try and include all results (troubleshooting)
            use_tvdb: true # Added to try and include all results (troubleshooting)
    list_match:
      from:
        - entry_list: episodes_list

flexget.log

2021-01-01 15:34:35 DEBUG    api_tvmaze    discover-task   creating new episode for show Saturday Night Live
2021-01-01 15:34:35 DEBUG    est_series_tvmaze discover-task   received air-date: 2020-12-19 00:00:00
2021-01-01 15:34:35 DEBUG    discover      discover-task   Saturday Night Live (1975) S46E09 Kristen Wiig / Dua Lipa has been released at 2020-12-19 00:00:00
2021-01-01 15:34:35 VERBOSE  discover      discover-task   Searching for `Saturday Night Live (1975) S46E09 Kristen Wiig / Dua Lipa` with plugin `rarbg` (1 of 1)
2021-01-01 15:34:35 DEBUG    api_tvdb      discover-task   Looking up tvdb information for 'Saturday Night Live (1975)'. TVDB ID: 76177
2021-01-01 15:34:35 DEBUG    api_tvdb      discover-task   Series <name=Saturday Night Live (1975),tvdb_id=76177> not found in cache, looking up from tvdb.
2021-01-01 15:34:35 DEBUG    api_tvdb      discover-task   Authenticating to TheTVDB with api_key
2021-01-01 15:34:35 DEBUG    utils.requests discover-task   POSTing URL https://api.thetvdb.com/login with args () and kwargs {'data': None, 'json': {'apikey': '<redacted>'}, 'timeout': 30}
2021-01-01 15:34:35 DEBUG    utils.requests discover-task   GETing URL https://api.thetvdb.com/series/76177 with args () and kwargs {'params': {}, 'headers': {'Authorization': '<redacted>', 'Accept-Language': 'en'}, 'json': None, 'timeout': 30}
2021-01-01 15:34:35 DEBUG    rarbg         discover-task   Using tvdb id 76177
2021-01-01 15:34:35 DEBUG    utils.requests discover-task   GETing URL https://torrentapi.org/pubapi_v2.php with args () and kwargs {'params': {'get_token': 'get_token', 'format': 'json', 'app_id': 'flexget'}, 'allow_redirects': True, 'timeout': 30}
2021-01-01 15:34:35 DEBUG    rarbg         discover-task   RarBG token: <redacted>
2021-01-01 15:34:35 DEBUG    utils.requests discover-task   Waiting 2.77 seconds until next request to torrentapi.org
2021-01-01 15:34:38 DEBUG    utils.requests discover-task   GETing URL https://torrentapi.org/pubapi_v2.php with args () and kwargs {'params': {'mode': 'search', 'ranked': 0, 'min_seeders': 0, 'min_leechers': 0, 'sort': 'last', 'category': '45;44;14;42;41;18', 'format': 'json_extended', 'app_id': 'flexget', 'search_string': b'Saturday Night Live (1975) S46E09 Kristen Wiig  Dua Lipa', 'search_tvdb': 76177, 'token': '<redacted>'}, 'allow_redirects': True, 'timeout': 30}
2021-01-01 15:34:38 DEBUG    rarbg         discover-task   requesting: https://torrentapi.org/pubapi_v2.php?mode=search&ranked=0&min_seeders=0&min_leechers=0&sort=last&category=45%3B44%3B14%3B42%3B41%3B18&format=json_extended&app_id=flexget&search_string=Saturday+Night+Live+%281975%29+S46E09+Kristen+Wiig++Dua+Lipa&search_tvdb=76177&token=<redacted>
2021-01-01 15:34:38 DEBUG    rarbg         discover-task   No results found for b'Saturday Night Live (1975) S46E09 Kristen Wiig  Dua Lipa'. Message from rarbg: No results found
2021-01-01 15:34:38 DEBUG    discover      discover-task   No results from rarbg
2021-01-01 15:34:38 VERBOSE  discover      discover-task   No search results for `Saturday Night Live (1975) S46E09 Kristen Wiig / Dua Lipa`
2021-01-01 15:34:38 DEBUG    backlog       discover-task   0 entries purged from backlog
2021-01-01 15:34:38 VERBOSE  details       discover-task   Task didn't produce any entries.
2021-01-01 15:34:38 DEBUG    urlrewriter   discover-task   Checking 0 entries
2021-01-01 15:34:38 VERBOSE  details       discover-task   Summary - Accepted: 0 (Rejected: 0 Undecided: 0 Failed: 0)

Navigating to the torrentapi.org endpoint directly:
{“error”:“No results found”,“error_code”:20}

The rarbg search, result appears in category 18 (SDTV):

2 posts - 1 participant

Read full topic

Unhandled error in plugin transmission: list indices must be integers or slices, not File,

$
0
0

Hi All,

I get this error in my log, preventing proper function. Anyone having any idea to what it is?

"Unhandled error in plugin transmission: list indices must be integers or slices, not File
Traceback (most recent call last):"

Sys info:
Flexget (flexget -V 3.1.93) running in docker: cpoppema/docker-flexget
Transmission (3.00 (bb6b5a062e)) running in docker: haugene/transmission-openvpn

(censored a little)

2021-01-02 14:58:01 CRITICAL task          xxxxx Movies BUG: Unhandled error in plugin transmission: list indices must be integers or slices, not File
Traceback (most recent call last):

  File "/usr/lib/python3.7/threading.py", line 890, in _bootstrap
    self._bootstrap_inner()
    │    └ <function Thread._bootstrap_inner at 0x7f02e3a585f0>
    └ <Thread(task_queue, started daemon 139650289281824)>
  File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
    │    └ <function Thread.run at 0x7f02e3a583b0>
    └ <Thread(task_queue, started daemon 139650289281824)>
  File "/usr/lib/python3.7/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
    │    │        │    │        │    └ {}
    │    │        │    │        └ <Thread(task_queue, started daemon 139650289281824)>
    │    │        │    └ ()
    │    │        └ <Thread(task_queue, started daemon 139650289281824)>
    │    └ <bound method TaskQueue.run of <flexget.task_queue.TaskQueue object at 0x7f02de3eedd0>>
    └ <Thread(task_queue, started daemon 139650289281824)>
  File "/usr/lib/python3.7/site-packages/flexget/task_queue.py", line 46, in run
    self.current_task.execute()
    │    │            └ <function Task.execute at 0x7f02e1e28710>
    │    └ <flexget.task.Task object at 0x7f02dd3c17d0>
    └ <flexget.task_queue.TaskQueue object at 0x7f02de3eedd0>
  File "/usr/lib/python3.7/site-packages/flexget/task.py", line 87, in wrapper
    return func(self, *args, **kw)
           │    │      │       └ {}
           │    │      └ ()
           │    └ <flexget.task.Task object at 0x7f02dd3c17d0>
           └ <function Task.execute at 0x7f02e1e28680>
  File "/usr/lib/python3.7/site-packages/flexget/task.py", line 722, in execute
    self._execute()
    │    └ <function Task._execute at 0x7f02e1e285f0>
    └ <flexget.task.Task object at 0x7f02dd3c17d0>
  File "/usr/lib/python3.7/site-packages/flexget/task.py", line 688, in _execute
    self.__run_task_phase(phase)
    │                     └ 'output'
    └ <flexget.task.Task object at 0x7f02dd3c17d0>
  File "/usr/lib/python3.7/site-packages/flexget/task.py", line 514, in __run_task_phase
    response = self.__run_plugin(plugin, phase, args)
               │                 │       │      └ (<flexget.task.Task object at 0x7f02dd3c17d0>, {'host': 'xxxx', 'port': 9091, 'username': 'xxxx', 'password': 'xxxx...
               │                 │       └ 'output'
               │                 └ <PluginInfo(name=transmission)>
               └ <flexget.task.Task object at 0x7f02dd3c17d0>
> File "/usr/lib/python3.7/site-packages/flexget/task.py", line 547, in __run_plugin
    result = method(*args, **kwargs)
             │       │       └ {}
             │       └ (<flexget.task.Task object at 0x7f02dd3c17d0>, {'host': 'xxx', 'port': 9091, 'username': 'xxx', 'password': 'xxx...
             └ <Event(name=plugin.transmission.output,func=on_task_output,priority=135)>
  File "/usr/lib/python3.7/site-packages/flexget/event.py", line 20, in __call__
    return self.func(*args, **kwargs)
           │    │     │       └ {}
           │    │     └ (<flexget.task.Task object at 0x7f02dd3c17d0>, {'host': 'xxxxx', 'port': 9091, 'username': 'xxxx', 'password': 'xxxx...
           │    └ <bound method PluginTransmission.on_task_output of <flexget.plugins.clients.transmission.PluginTransmission object at 0x7f02d...
           └ <Event(name=plugin.transmission.output,func=on_task_output,priority=135)>
  File "/usr/lib/python3.7/site-packages/flexget/plugins/clients/transmission.py", line 507, in on_task_output
    if any(fnmatch(file_list[f]['name'], mask) for mask in skip_files):
           │       │         │                             └ ['*.nfo', '*.sfv', '*[sS]ample*', '*.txt']
           │       │         └ File(name='xxxx.2020.DANiSH.1080p.BluRay.x264-RCDiVX/xxx.2020.danish.1080p.bluray.x264-rcdivx.r05', size=150...
           │       └ [File(name='xxxx.2020.DANiSH.1080p.BluRay.x264-RCDiVX/xxx.2020.danish.1080p.bluray.x264-rcdivx.r05', size=15...
           └ <function fnmatch at 0x7f02e3375f80>
  File "/usr/lib/python3.7/site-packages/flexget/plugins/clients/transmission.py", line 507, in <genexpr>
    if any(fnmatch(file_list[f]['name'], mask) for mask in skip_files):
           │       │         │           │         └ '*.nfo'
           │       │         │           └ '*.nfo'
           │       │         └ File(name='xxxx.2020.DANiSH.1080p.BluRay.x264-RCDiVX/xxxxx.2020.danish.1080p.bluray.x264-rcdivx.r05', size=150...
           │       └ [File(name='xxxxd.2020.DANiSH.1080p.BluRay.x264-RCDiVX/kxxxx.2020.danish.1080p.bluray.x264-rcdivx.r05', size=15...
           └ <function fnmatch at 0x7f02e3375f80>

TypeError: list indices must be integers or slices, not File
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/flexget/task.py", line 547, in __run_plugin
    result = method(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/flexget/event.py", line 20, in __call__
    return self.func(*args, **kwargs)
  File "/usr/lib/python3.7/site-packages/flexget/plugins/clients/transmission.py", line 507, in on_task_output
    if any(fnmatch(file_list[f]['name'], mask) for mask in skip_files):
  File "/usr/lib/python3.7/site-packages/flexget/plugins/clients/transmission.py", line 507, in <genexpr>
    if any(fnmatch(file_list[f]['name'], mask) for mask in skip_files):
TypeError: list indices must be integers or slices, not File

1 post - 1 participant

Read full topic

Viewing all 837 articles
Browse latest View live