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

Can't schedule FlexGet

$
0
0

@avalloneandrea wrote:

I want to schedule FlexGet to run every hour.
Like the tutorial say, I'm launching this command:

systemd-run --on-active="1h" --uid=id -u--gid=id -gwhich flexget

However, I'm getting the following error:

systemd-run: unrecognized option '--on-unit-active=1h'

To be honest, man systemd-run doesn't list --on-unit-active as a valid options...
What can I do?

Posts: 4

Participants: 2

Read full topic


Jinja problem

$
0
0

@gkovacsp wrote:

I have the following notify config:

notify:
  entries:
    title: "Sorozat: {{series_name}}"
    message: |+
      {% if series_season %}
        {{ series_season }}x{{ series_episode|pad(2) }} - {{ tvdb_ep_name|default('?')}}
      {% elif tvdb_ep_air_date %}
        {{ tvdb_ep_air_date }} - {{ tvdb_ep_name}}
      {% else %}
        No Data...
      {% endif %}
      {% if tvdb_ep_overview %}
        {{tvdb_ep_overview}}
      {% endif %}
    what: accepted
    via:
      - pushbullet:
          api_key: o.bbb
          channel: flexget_bbb

For shows with season and episode number I receive a nice message:

Sorozat: Blindspot
2x17 - Solos
Jane and her new flame Oliver find themselves in a dangerous situation that exposes the secrets they've both been keeping. Uncertain if they can trust each other, the couple must stay alive while Weller and the team race to save them.

While ones without it just send me the jinja code:

Sorozat: Conan (2010)
{% if series_season %}
{{ series_season }}x{{ series_episode|pad(2) }} - {{ tvdb_ep_name|default('?')}}
{% elif tvdb_ep_air_date %}
{{ tvdb_ep_air_date }} - {{ tvdb_ep_name}}
{% else %}
No Data...
{% endif %}
{% if tvdb_ep_overview %}
{{tvdb_ep_overview}}
{% endif %}

What is wrong with my jina template? I can't find a way how to debug it...

Posts: 2

Participants: 2

Read full topic

Test Host for Destination

$
0
0

@tedr56 wrote:

Hi Flexgeters,
I'm wondering if there is a way to test if a host is up/down to decide of the download destination, as the mediaserver is not always up.
I'm using automount to mount samba share, and Transmission and Deluge doesn't work well when destination is down at start.

I'm planning to download locally when host is down and move when up, or download to host when up at start.

Thanks for any advice.

Posts: 1

Participants: 1

Read full topic

Jinja2 template to remove author, quality and file format from {{Title}}

$
0
0

@hiru wrote:

I'm using Jinja2 to send notifications via telegram but I'm having troubles with the title editing.
The file name title is something like this: [Author] Name - EpisodeNumber [Quality].file_format
The name output when using {{Title}} is: Author Name - EpisodeNumber Quality.file_format

As you can see the {{Title}} tag removes the square brackets automatically but I want to remove what's inside the brackets too alongside the file format. What should I do? replace(pattern, replacement) seems a little bit painful since I have to use it for each task in my config file

Posts: 1

Participants: 1

Read full topic

Flexget install instructions on website are incorrect

$
0
0

@ZileXa wrote:

I have great respect for people building handy software for free. But man, after years of using Flexget, the installation has not been made easier at all. It has actually changed a lot many times and the current instructions on the website are wrong.

See for yourself, here, you explain several methods on how to install Flexget:
https://flexget.com/InstallWizard/Linux

After you follow all the steps, at the end suddenly you explain Flexget can also be installed globally ("Install globally").
1) This is weird, should people execute that step after having executed all the others above?
2)Do we then have Flexget installed twice? Taking up unnecessary space?

But the real issue comes with how to actually run Flexget automatically:
https://flexget.com/InstallWizard/Linux/Scheduling

Looking at the systemd examples, none of them can actually work since the command used to execute Flexget simply does not correspond with the installation methods explained on the previous page.
In the systemd examples, Flexget is executed like: ExecStart=/usr/bin/flexget daemon start
This can never work, because on https://flexget.com/InstallWizard/Linux you execute Flexget via: ~/flexget/bin/flexget [options]

3) Can this please be changed?
How come after all these years, to use Flexget, you still have to be a well experienced Linux user?

4) Also, I do not know what the best, most efficient way is to install Flexget. VirtualEnv?
5) But then I should modify the systemd script. But how should I modify it? Because systemd does not accept ~/flexget/bin/flexget

6) Or is global now recommended?

I have always used a Raspberry Pi running a Debian based OS with Kodi (OSMC). I now switched to an RPi3 and have to install everything again. Thats how I bumped into this.

Posts: 1

Participants: 1

Read full topic

3rd party plugin LOG_FILTER

$
0
0

@ZileXa wrote:

I have created a new config based on @jonybat config file.
It used the 3rd party plugin log_filter by @tarzasai

Is this plugin still being used by anyone?
I installed it by creating a folder called plugins in ~/flexget/ and using nano I created a textfile log_filter.py with the contents of his github file. Unfortunately when I run flexget check I get this horrible error:

osmc@ShantaPi:~$ /home/osmc/flexget/bin/flexget check
2017-06-22 19:04 CRITICAL plugin Exception while loading plugin flexget.plugins.log_filter
Traceback (most recent call last):
File "/home/osmc/flexget/local/lib/python2.7/site-packages/flexget/plugin.py", line 396, in _load_plugins_from_dirs
__import__(module_name)
File "/home/osmc/flexget/plugins/log_filter.py", line 1
from __future__ import unicode_literals, division, absolute_import import logging from flexget import plugin from flexget.event import event log = logging.getLogger('logfilter')
^
SyntaxError: invalid syntax
Traceback (most recent call last):
File "/home/osmc/flexget/bin/flexget", line 11, in <module>
sys.exit(main())
File "/home/osmc/flexget/local/lib/python2.7/site-packages/flexget/__init__.py", line 42, in main
manager.start()
File "/home/osmc/flexget/local/lib/python2.7/site-packages/flexget/manager.py", line 326, in start
self.initialize()
File "/home/osmc/flexget/local/lib/python2.7/site-packages/flexget/manager.py", line 189, in initialize
plugin.load_plugins(extra_dirs=[os.path.join(self.config_base, 'plugins')])
File "/home/osmc/flexget/local/lib/python2.7/site-packages/flexget/plugin.py", line 458, in load_plugins
_load_plugins_from_dirs(extra_dirs)
File "/home/osmc/flexget/local/lib/python2.7/site-packages/flexget/plugin.py", line 396, in _load_plugins_from_dirs
__import__(module_name)
File "/home/osmc/flexget/plugins/log_filter.py", line 1
from __future__ import unicode_literals, division, absolute_import import logging from flexget import plugin from flexget.event import event log = logging.getLogger('logfilter')
^
SyntaxError: invalid syntax

Basically the whole plugin script is incorrect. Is it no longer compatible with Flexget?

Posts: 3

Participants: 2

Read full topic

KeyError: u'announce'?

$
0
0

@Shr00m wrote:

Hi, I've started to receive this the last couple weeks. I don't know how to troubleshoot it or can find anything on Google about it. Can anyone help?

I upgraded again today.....
2.10.64
You are on the latest release.

> 2017-06-24 07:46 VERBOSE  details       get_tv          Summary - Accepted: 7 (Rejected: 4 Undecided: 2766 Failed: 0)
> 2017-06-24 07:46 CRITICAL task          get_tv          BUG: Unhandled error in plugin torrent_alive: u'announce'
> 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/filter/torrent_alive.py", line 243, in on_task_output
>     tracker = torrent.content['announce']
> KeyError: u'announce'

Posts: 2

Participants: 2

Read full topic

(solved) Convert_Magnet cannot work, LibTorrent ceased to exist

$
0
0

@ZileXa wrote:

I have installed libtorrent normally and also inside virtualenv, still Flexget gives an error and aborts convert_magnet plugin:

2017-06-23 09:30 CRITICAL task          download-series-rss Plugin `convert_magnet` cannot be used because dependency `libtorrent` is missing.

I am using OSMC which is based on Debian. I installed libtorrent two ways:
osmc@RPi:~$ sudo apt-get install python-libtorrent

and also:
osmc@RPi:~$ source ~/flexget/bin/activate
(flexget) osmc@RPi:~$ sudo apt-get install python-libtorrent

But it said libtorrent was already installed.

Still I get this error. What am I doing wrong? I really need convert_magnet.

Posts: 5

Participants: 2

Read full topic


Deluge content_directory

Zooqle RSS for TV

$
0
0

@gsapient wrote:

Hello,
Can someone help me get the zooqle rss to work properly in flexget?
Due to the way they have it formatted, the source quality only appears in the main text of each entry, after the Torrent:. Can someone with better YAML / jinja skills extract the actual torrent title from their RSS?

Posts: 9

Participants: 2

Read full topic

Flexget clean install - Failed to upgrade database - RuntimeError

$
0
0

@KingHawk wrote:

Background info:
Flexget was working quite fine with Transmission till I wanted to switch over to Deluge, Made a new config file for Deluge this tested successfully but wanted the daemon working too. Since I got errors running it I decided on an clean install for Python and Flexget.

Problem:
The result of my third clean Python 2.7.13+Flexget installation you can see below. Flexget doesn't generate a database or log file, it just all fails. I've found many related topics with several solutions, tried them all none changed the situation. That's also why I've done several clean installs by now so these other "solutions" I've tried won't create another problem.
This is all running on Windows Server 2012 R2.

I hope someone knows how I can fix this situation.

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Windows\system32>flexget check
2017-06-29 10:08 VERBOSE  check                         Pre-checked 4 configuration lines
2017-06-29 10:08 INFO     manager                       Database upgrade is required. Attempting now.
2017-06-29 10:08 INFO     archive                       Creating new index (may take a while) ...
2017-06-29 10:08 ERROR    schema                        Failed to upgrade database for plugin archive: (sqlite3.OperationalError) index ix_archive_title_url already exists [SQL: u'CREATE INDEX ix_archive_title_url ON archive_entry (title, url)']
Traceback (most recent call last):
  File "c:\python27\lib\site-packages\flexget\db_schema.py", line 150, in upgrade_wrapper
    new_ver = upgrade_func(current_ver, session)
  File "c:\python27\lib\site-packages\flexget\plugins\generic\archive.py", line 125, in upgrade
    new_index.create(bind=session.connection())
  File "c:\python27\lib\site-packages\sqlalchemy\sql\schema.py", line 3406, in create
    bind._run_visitor(ddl.SchemaGenerator, self)
  File "c:\python27\lib\site-packages\sqlalchemy\engine\base.py", line 1538, in _run_visitor
    **kwargs).traverse_single(element)
  File "c:\python27\lib\site-packages\sqlalchemy\sql\visitors.py", line 121, in traverse_single
    return meth(obj, **kw)
  File "c:\python27\lib\site-packages\sqlalchemy\sql\ddl.py", line 791, in visit_index
    self.connection.execute(CreateIndex(index))
  File "c:\python27\lib\site-packages\sqlalchemy\engine\base.py", line 945, in execute
    return meth(self, multiparams, params)
  File "c:\python27\lib\site-packages\sqlalchemy\sql\ddl.py", line 68, in _execute_on_connection
    return connection._execute_ddl(self, multiparams, params)
  File "c:\python27\lib\site-packages\sqlalchemy\engine\base.py", line 1002, in _execute_ddl
    compiled
  File "c:\python27\lib\site-packages\sqlalchemy\engine\base.py", line 1189, in _execute_context
    context)
  File "c:\python27\lib\site-packages\sqlalchemy\engine\base.py", line 1402, in _handle_dbapi_exception
    exc_info
  File "c:\python27\lib\site-packages\sqlalchemy\util\compat.py", line 203, in raise_from_cause
    reraise(type(exception), exception, tb=exc_tb, cause=cause)
  File "c:\python27\lib\site-packages\sqlalchemy\engine\base.py", line 1182, in _execute_context
    context)
  File "c:\python27\lib\site-packages\sqlalchemy\engine\default.py", line 470, in do_execute
    cursor.execute(statement, parameters)
OperationalError: (sqlite3.OperationalError) index ix_archive_title_url already exists [SQL: u'CREATE INDEX ix_archive_title_url ON archive_entry (title, url)']
Traceback (most recent call last):
  File "c:\python27\lib\runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Python27\Scripts\flexget.exe\__main__.py", line 9, in <module>
  File "c:\python27\lib\site-packages\flexget\__init__.py", line 42, in main
    manager.start()
  File "c:\python27\lib\site-packages\flexget\manager.py", line 326, in start
    self.initialize()
  File "c:\python27\lib\site-packages\flexget\manager.py", line 214, in initialize
    fire_event('manager.upgrade', self)
  File "c:\python27\lib\site-packages\flexget\event.py", line 106, in fire_event
    result = event(*args, **kwargs)
  File "c:\python27\lib\site-packages\flexget\event.py", line 23, in __call__
    return self.func(*args, **kwargs)
  File "c:\python27\lib\site-packages\flexget\db_schema.py", line 158, in upgrade_wrapper
    manager.shutdown(finish_queue=False)
  File "c:\python27\lib\site-packages\flexget\manager.py", line 910, in shutdown
    raise RuntimeError('Cannot shutdown manager that was never initialized.')
RuntimeError: Cannot shutdown manager that was never initialized.

C:\Windows\system32>

Posts: 2

Participants: 1

Read full topic

Testing cookie configuration

$
0
0

@Rick_Arnett wrote:

I'm trying to use flexget to poll zooqle.com from my headless Ubuntu server. The site is protected with a captcha, but it seems it should be possible to use the cookies configuration setting to bypass this captcha, however I'm not finding much information on how to set it up and no matter what I do it doesn't seem to be working.

I've set up my headless Ubuntu box as a SOCKS proxy and used Firefox to log into zooqle via the proxy to make sure the IP address matched properly (my headless box is on a VPN). I've then found the cookies.sqlite file from the profile, copied it up, and put it in the config as such:

templates:
  tv:
    cookies:
      file: .flexget/cookies.sqlite
      type: firefox3
      ...

No matter what I do, I continue to get a 403 from the site. Is there something more I should do with the cookies file?

Posts: 2

Participants: 1

Read full topic

Zooqle 429 Client Error: Too Many Requests

$
0
0

@mrwunderbar666 wrote:

Hi,

I am using flexget to pull my torrent list from Zooqle and pass it to Transmission. It all runs on a raspberry pi (raspbian) machine.

Flexget only gets the first few torrents from the list, but then it returns this error:

> 2017-07-07 14:02 WARNING  download      task-a          RequestException 429 Client Error: Too Many Requests for url: https://zooqle.com/download/****.torrent, while downloading ***zooqle.**/download/***.torrent
> 2017-07-07 14:02 ERROR    entry         task-a          Failed **TVSHOWNAME (Network error during request: 429 Client Error: Too Many Requests for url: ***://zooqle.***/download/****.torrent)
> 2017-07-07 14:02 INFO     task          task-a          Plugin retry_failed has requested task to be ran again after execution has completed.
> 2017-07-07 14:02 VERBOSE  task          task-a          FAILED: `**TVSHOWNAME` by transmission plugin because network error during request: 429 Client Error: Too Many Requests for url: ****://zooqle.***/download/****.torrent

How to deal with that?

(note: asterisks added for privacy)

Posts: 3

Participants: 2

Read full topic

Any plugin for movies based on year like "min year" and "max year"

$
0
0

@HolyHacker wrote:

Hi,

I am trying to setup flexget to download movies that's released between 2015 and 2017.
Is there a way i can do this?

Posts: 6

Participants: 2

Read full topic

No connection to deluge in execute


Transmission include_files

$
0
0

@opicron wrote:

Hiya All,

I am trying to download specific files within weekly comic releases. The torrent is being added to transmission and only downloads when it hits the right content_filter.

However I cant seem to make the include_files work. All files are being marked as to download. None are marked as skipped. Is it possible to skip all files except the files which I want to mark for download with include_files?

Maybe if possible we could set reject_files to reject all files (e.g. skip) and include_files would undo specific rejected files?

get-comics:
    priority: 15
    disable: seen
    magnets: no
    rss: [correct feed]
    content_filter:
       require:
         - 'specific filename*.*'
         - 'specific filename*.*'

    series:
      - 0-Day Week of:
          identified_by: date
          date_yearfirst: yes
          begin: "2017-07-07"
          set:
            main_file_only: no

    transmission:
      host: '{? trans.host ?}'
      port: 42500
      username: '{? trans.username ?}'
      password: '{? trans.password ?}'
      magnetization_timeout: 30
      include_files:
        - 'specific filename*.*'
        - 'specific filename*.*'

Any idea what I am missing?

Thanks!

Posts: 5

Participants: 3

Read full topic

Upgrade problem

$
0
0

@Jason_Shelton wrote:

Trying to upgrade flexget to latest.

did: pip install --upgrade flexget

and get this:

Downloading FlexGet-2.10.67-py2.py3-none-any.whl (2.9MB): 2.9MB downloaded
Cleaning up...
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1266, in prepare_files
    req_to_install.extras):
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2401, in requires
    dm = self._dep_map
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2597, in _dep_map
    self.__dep_map = self._compute_dependencies()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2621, in _compute_dependencies
    parsed = next(parse_requirements(distvers))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 49, in <lambda>
    next = lambda o: o.next()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2721, in parse_requirements
    "version spec")
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2686, in scan_list
    raise ValueError(msg, line, "at", line[p:])
ValueError: ('Expected version spec in', 'requests ~=2.16.3', 'at', ' ~=2.16.3')

Storing debug log for failure in /root/.pip/pip.log

I tried pip install --upgrade setuptools
and got

Downloading/unpacking setuptools from https://pypi.python.org/packages/e2/79/a865e78ab721a6dda2dea171526e6f8db51ba50814766429477e87c6ba8a/setuptools-36.2.0-py2.py3-none-any.whl#md5=6bff1e89b809a1efdb96929920e0bc12
  Downloading setuptools-36.2.0-py2.py3-none-any.whl (477kB): 477kB downloaded
Installing collected packages: setuptools
  Found existing installation: setuptools 5.5.1
    Not uninstalling setuptools at /usr/lib/python2.7/dist-packages, owned by OS
Successfully installed setuptools
Cleaning up...

So it looks like setuptools is ok. Anyone know why upgrade is failing?

Posts: 4

Participants: 2

Read full topic

FlexGet-Transmission userID/Password not working

$
0
0

@DiskSpinner wrote:

I have written a script in bash that covers everything I want to do from file renaming, location sorting, and metadata tagging (very useful to permit drag-and-drop to iDevices), but am frustrated with one remaining issue in FlexGet, which I run via a scheduled cron task every thirty minutes. Specifically:

My headless installation of transmission uses a userID and password to authenticate its user. I have tested this in several browsers including the one on my phone and it works correctly. Also, from the command line, I am able to get access to transmission by typing transmission-remote -n userid:password -l, for example. This works from the local network, the specific machine, and the wider web due to port forwarding.

What doesn't work, frustratingly enough, is FlexGet. My config.yml file is:

tasks:
  # downloading task and remove finished torrents
  # called via cron every 30 minutes.
  download-showrss:
    rss:
      url: http://showrss.info/user/myspecific.rss?magnets=true&namespaces=true&na$
    all_series: yes
    transmission:
      host: localhost
      port: 9091
      username: transmission-user-name
      password: validated-password-with-web-and-command-line
    clean_transmission:
      host: localhost
      port: 9091
      delete_files: yes
      transmission_seed_limits: yes

I am sure it's probably some annoying syntax issue I haven't sorted out yet - not large with the YAML experience over here - but this has really been frustrating. I get the following error in my log file consistently:

2017-07-15 15:12 VERBOSE  details       download-showrss Summary - Accepted: 0 (Rejected: 32 Undecided: 0 Failed: 0)
2017-07-15 15:12 CRITICAL plugin        download-showrss Username/password for transmission is incorrect. Cannot connect.
2017-07-15 15:12 WARNING  task          download-showrss Aborting task (plugin: clean_transmission)

For reference, the relevant lines of my settings.json file for transmission (verified in all the places where the settings.json file appears) is:

    "rpc-authentication-required": true,
    "rpc-bind-address": "0.0.0.0",
    "rpc-enabled": true,
    "rpc-password": "hash-of-actual-password",
    "rpc-port": 9091,
    "rpc-url": "/transmission/",
    "rpc-username": "transmission-user-name",
    "rpc-whitelist": "127.0.0.*,192.168.1.*",
    "rpc-whitelist-enabled": false,
    "scrape-paused-torrents-enabled": true,
    "script-torrent-done-enabled": true,
    "script-torrent-done-filename": "/usr/local/bin/conv",

What in the world am I doing wrong??

Posts: 4

Participants: 2

Read full topic

Flexget rss task ignoring first run items in feed?

$
0
0

@jonesb63 wrote:

tasks:
  test task:
    rss: myfeed
    accept_all: yes
    download: ~/downloads/watch/deluge/
    only_new: yes

So, this is my current setup. How would I force the first run to ignore everything in the list? As, I only want new items that are not currently in the list to be downloaded.

Posts: 4

Participants: 2

Read full topic

Help understanding if FlexGet is right for my use case

$
0
0

@metaMMA wrote:

Hello,

I'm trying to find a solution to an issue I am having with reliable rss feeds for torrents and FlexGet keeps coming up. I've spent the last 2 days reading about FlexGet and experimenting. I'm still pretty lost and am hoping for some input on my issue and if FlexGet is capable of what I would like to accomplish. I'm not looking for guidance on configuration (although any would be appreciated), I am only looking to make sure that what I would like to do is indeed possible with FlexGet.

I have written a program that monitors and stores metadata on mixed martial arts events. It runs everyday and retrieves metadata if the event is taking place. Previously (with deluge YArss2) I was using a KAT rss feed, then switched to an extratorrent rss feed. Unfortunately neither is possible anymore. I would like FlexGet (or another program) to search TPB or Demonoid for these event video files and add them to deluge.

  1. Is it possible to use regex on the TPB feed and send matches to deluge?

  2. I would prefer Demonoid over TPB, but I use a VPN and Demonoid trips CloudFlare about 50% of the time (the feed has been giving me a 503 error), and TPB trips CloudFlare maybe 5-10% of the time. is there a way around this (I tried using a cookie, but was unsure if I had configured it correctly)?

  3. Is it possible to parse a csv ot txt file that stores the names of the upcoming events (rather than relying on regex in question 1)?

  4. If question 3 is possible, is there a way of preventing downloading multiple torrents of the same event (ie. download MMAevent.155.720p.ScEnE#1.mkv and onces it has been added, do not download MMAevent.155.720p.ScEnE#2.mkv), perhaps be removing it from my custom list? or by other means?

Thanks for taking the time to help a brother out. I appreciate it.

Posts: 1

Participants: 1

Read full topic

Viewing all 837 articles
Browse latest View live