PDA

View Full Version : Flexget, The tvdb.com and transmission



ArowonA
13-06-15, 00:22
Hi Everyone,

Just got a VU+ duo2 box and am upgrading in someway from an openwrt router then a pi and now a VU+.
I'm liking it so far and have managed to get my flexget and transmission set up working, I don't really know what I'm doing, but am good at getting things to work.. So anyway, I figured I could do a write up but it would mean me wiping my box and starting again, so I though I would check if there was a need for it first?

Basically my set up is,

You add a TV program as a favorite on thetvdb, two times a day my VU+ box checks an RSS feed for the TV program torrent, if it's available it will add it to transmission to download and email me, after it has downloaded it removes it from the torrent list and into the VU+ library..

I understand this is probably not a suitable post for the community but if anyone would like a detailed write up, let me know and I will do it :)

judge
13-06-15, 00:29
Yes, please do. Sounds interesting, some gray areas though...

DaMacFunkin
13-06-15, 07:12
Would like a read of that myself, cheers.

duoduo
13-06-15, 08:07
Me too please..

ArowonA
13-06-15, 16:40
Installing transmission

I'm doing this from the TV as it creates the folder on your harddisk for you.
Menu --> plug-in --> green --> extension --> transmission

Then from the SSH shell we want to edit the config (I install nano for this as i prefer it to vi)


opkg update
opkg install nano
/etc/init.d/transmissiond start
/etc/init.d/transmissiond stop
nano /media/hdd/transmission/config/settings.json


The lines I want to change are

"blocklist-enabled": true,
"blocklist-url": "http://tbg.iblocklist.com/Lists/ipfilter.dat.gz",
"incomplete-dir": "/media/hdd/transmission/incomplete",
"incomplete-dir-enabled": true,
"rpc-authentication-required": false,
"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/media/hdd/transmission/config/finish.sh",

The main change I make is to turn authentication off, just because I'm not making it accessible from the internet so I don't really need a password
this also requires editing the file /etc/init.d/transmissiond and changing the line

ARGS="-c $WATCH_DIR -g $CONFIG_DIR -a *.*.*.* -w $DOWNLOAD_DIR -p $RPC_PORT -t -u $USER -v $PASSWORD"
to
ARGS="-c $WATCH_DIR -g $CONFIG_DIR -a *.*.*.* -w $DOWNLOAD_DIR -p $RPC_PORT"

The other changes are not really needed, I'm not even sure if that blocklist is updated any more.
The script I choose to run after a download has finished is to remove the torrent from my list so I'm not sharing it anymore (not really considered a nice thing to do)
Once you've made the changes to the settings.json file if you press [ctrl] and [x] to save, then we need to make the extra folder, selfish script and set transmission to autostart


echo "#!/bin/sh
transmission-remote -l | grep 100% | grep Done | awk '{print $1}' |
xargs -t -n 1 -I % transmission-remote -t % -r
mv /media/hdd/transmission/download/* /media/hdd/movie/Downloads" >> /media/hdd/transmission/config/finish.sh
chmod +x /media/hdd/transmission/config/finish.sh
mkdir /hdd/transmission/incomplete
mkdir /hdd/movie/Downloads
/etc/init.d/transmissiond enable
/etc/init.d/transmissiond start

That's it, you can now go to http://ip-address-of-the-box:9091 and add torrents , not sure I really needed to make all these instructions as the plug-in works pretty well without doing all this stuff

Installing flexget

Run the following commands (I had an issue with this as I had just wiped my box and the date was set to 1970, so check this first)


opkg update
opkg install python-distutils
opkg install python-unittest
opkg install python-compile
opkg install python-pkgutil
opkg install python-sqlite3
opkg install python-xmlrpc
cd /tmp
wget https://bootstrap.pypa.io/ez_setup.py -O - | python
easy_install pip
pip install flexget
pip install transmissionrpc


Creating the config file

mkdir /media/hdd/flexget
ln -s /media/hdd/flexget ~/.flexget
mkdir /media/hdd/movie/TV
nano /media/hdd/flexget/config.yml

My config file looks like this (You can probably see it's not been updated for a while)


tasks:
# EZTV:
# template: tv
# rss: https://ezrss.it/feed/
# rss: http://feeds.feedburner.com/eztv-rss-atom-feeds?format=xml
Karmorra:
template: tv
rss: http://showrss.info/feeds/all.rss
Manual:
template: manual
rss: http://showrss.info/feeds/all.rss
templates:
tv:
email:
active: true
from: box@mydomain.blah
smtp_host: smtp.gmail.com
smtp_port: 587
smtp_username: my gmail username
smtp_password: password
smtp_tls: yes
to: myrealemailaddress@aaa.blah
configure_series:
from:
thetvdb_favorites:
account_id: tvdbkey
settings:
identified_by: ep
# target: hdtv
# timeframe: 6 hours
# quality: 720p-1080p
exists_series:
- /media/hdd/movie/TV
- /media/hdd
thetvdb_lookup: yes
set:
path: "/media/hdd/movie/TV/{{series_name}}/Season {{ series_season }}"
content_filename: |
{{ series_id }}
{% if ep_name|default(False) %} - {{ ep_name }} {% endif %} - {{ quality|upper }}
{% if proper_count %} - proper{% if proper_count > 1 %}{{ proper_count }}{% endif %}{% endif %}
fail_html: no
transmission:
host: 127.0.0.1
port: 9091
clean_transmission:
host: 127.0.0.1
port: 9091
finished_for: 1 hours
trakt_add:
password: traktpassword
list: series
username: traktusername
manual:
email:
active: true
from: box@mydomain.blah
smtp_host: smtp.gmail.com
smtp_port: 587
smtp_username: my gmail username
smtp_password: password
smtp_tls: yes
to: myrealemailaddress@aaa.blah
series:
settings:
hdtv:
identified_by: date
# target: hdtv
# timeframe: 6 hours
# quality: 720p-1080p
hdtv:
- The Daily Show (with Jon Stewart)
- The Colbert Report
exists_series:
- /media/hdd/movie/TV
- /media/hdd
set:
path: "/media/hdd/movie/TV/{{series_name}}/Season {{ series_season }}"
content_filename: |
{{ series_id }}
{% if ep_name|default(False) %} - {{ ep_name }} {% endif %} - {{ quality|upper }}
{% if proper_count %} - proper{% if proper_count > 1 %}{{ proper_count }}{% endif %}{% endif %}
fail_html: no
transmission:
host: localhost
port: 9091
clean_transmission:
host: localhost
port: 9091
finished_for: 1 hours
trakt_add:
password: blah
list: series
username: blah

More details on the config options can be found on the flexget website, if you want to copy some of mine you will need to alter the email settings for your username/password, I created a gmail account just for sending notifications as the config file contains the password in cleartext. You will also need to add your TheTVDB account-id you can get this from Account settings on their website. Trakt i added as well to keep a note of what I'm watching, so if you want to use that add your username/password.

Once you've created your config file you can check it by running

flexget check
and then execute it by running

flexget execute

The final step it to add 'flexget execute' as a cron job but I think I've written enough for now.

Good luck, and if anyone sees a better way of doing something let me know

ArowanA

ArowonA
27-08-15, 00:23
Just for my own reference, the latest update also requires
opkg install python-importlib

vps11
25-05-16, 14:24
Can this be updated, the command stops working at - easy_install pip

Please Update the instructions.

ArowonA
25-05-16, 15:41
I guess you're getting an error like this?
https://github.com/pypa/setuptools/issues/514
Looks like they've stopped support for Python 2 in the latest setuptools, you can manually download the ez_setup.py edit it and change the line
DEFAULT_VERSION = LATEST to
DEFAULT_VERSION = 18.4 and start it with python, or rather than running (in the instructions above)
wget https://bootstrap.pypa.io/ez_setup.py -O - | python try

wget https://phm.pw/ez_setup.py -O - | python, Hopefully it'll work.

vps11
25-05-16, 16:14
I already have transmission so I skipped the transmission part.

it places this file in the tmp folder - setuptools-18.4.zip

this is the error i get:


root@vuduo2:/var/volatile/tmp# wget https://phm.pw/ez_setup.py -O - | python
Connecting to phm.pw (217.36.75.107:443)
- 100% |*******************************| 12383 0:00:00 ETA
Extracting in /tmp/tmpFScBdh
Now working in /tmp/tmpFScBdh/setuptools-18.4
Installing Setuptools
Traceback (most recent call last):
File "setup.py", line 21, in <module>
exec(init_file.read(), command_ns)
File "<string>", line 11, in <module>
File "/var/volatile/tmp/tmpFScBdh/setuptools-18.4/setuptools/__init__.py", line 12, in <module>
from setuptools.extension import Extension
File "/var/volatile/tmp/tmpFScBdh/setuptools-18.4/setuptools/extension.py", line 8, in <module>
from .dist import _get_unpatched
File "/var/volatile/tmp/tmpFScBdh/setuptools-18.4/setuptools/dist.py", line 19, in <module>
import pkg_resources
File "/var/volatile/tmp/tmpFScBdh/setuptools-18.4/pkg_resources/__init__.py", line 36, in <module>
import plistlib
ImportError: No module named plistlib
Something went wrong during the installation.
See the error message above.
root@vuduo2:/var/volatile/tmp#

ArowonA
25-05-16, 16:18
You will need to install python-plistlib as well then, if you type
opkg install python-plistlib
and then try the setuptools command again.

vps11
25-05-16, 16:22
looks good, now Im moving onto the next step.

vps11
25-05-16, 16:49
got another problem


root@vuduo2:~# flexget check
Traceback (most recent call last):
File "/usr/bin/flexget", line 7, in <module>
from flexget import main
File "/usr/lib/python2.7/site-packages/flexget/__init__.py", line 11, in <module>
from flexget import logger
File "/usr/lib/python2.7/site-packages/flexget/logger.py", line 20, in <module>
from flexget.utils.tools import io_encoding
File "/usr/lib/python2.7/site-packages/flexget/utils/tools.py", line 5, in <module>
from past.builtins import basestring
File "/usr/lib/python2.7/site-packages/past/__init__.py", line 88, in <module>
from past.translation import install_hooks as autotranslate
File "/usr/lib/python2.7/site-packages/past/translation/__init__.py", line 41, in <module>
from lib2to3.pgen2.parse import ParseError
ImportError: No module named lib2to3.pgen2.parse

vps11
25-05-16, 17:00
flexget execute


root@vuduo2:~# flexget execute
Traceback (most recent call last):
File "/usr/bin/flexget", line 7, in <module>
from flexget import main
File "/usr/lib/python2.7/site-packages/flexget/__init__.py", line 11, in <module>
from flexget import logger
File "/usr/lib/python2.7/site-packages/flexget/logger.py", line 20, in <module>
from flexget.utils.tools import io_encoding
File "/usr/lib/python2.7/site-packages/flexget/utils/tools.py", line 5, in <module>
from past.builtins import basestring
File "/usr/lib/python2.7/site-packages/past/__init__.py", line 88, in <module>
from past.translation import install_hooks as autotranslate
File "/usr/lib/python2.7/site-packages/past/translation/__init__.py", line 41, in <module>
from lib2to3.pgen2.parse import ParseError
ImportError: No module named lib2to3.pgen2.parse

ArowonA
25-05-16, 17:03
It looks like Flexget are no longer supporting Python 2 either, you will need to install an older version for now.


pip uninstall flexget
pip install flexget==1.2.521

vps11
25-05-16, 17:21
this one too long, full error pasted here

http://pastebin.com/99ABdpf6




root@vuduo2:~# flexget check
2016-05-25 17:15 CRITICAL plugin Plugin `flexget.plugins. urlrewrite_koreus` failed to import dependencies
2016-05-25 17:15 ERROR plugin No module named pdb
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flexget/plugin.py", line 381, in _load_ plugins_from_dirs
__import__(module_name)
File "/usr/lib/python2.7/site-packages/flexget/plugins/urlrewrite_koreus.py", line 10, in <module>
from flexget.utils.soup import get_soup
File "/usr/lib/python2.7/site-packages/flexget/utils/soup.py", line 2, in <mod ule>
from bs4 import BeautifulSoup
File "/usr/lib/python2.7/site-packages/bs4/__init__.py", line 30, in <module>
from .builder import builder_registry, ParserRejectedMarkup
File "/usr/lib/python2.7/site-packages/bs4/builder/__init__.py", line 4, in <m odule>
from bs4.element import (
File "/usr/lib/python2.7/site-packages/bs4/element.py", line 3, in <module>
from pdb import set_trace
ImportError: No module named pdb
2016-05-25 17:15 CRITICAL plugin Plugin `flexget.plugins. api.movie_queue` failed to import dependencies
2016-05-25 17:15 ERROR plugin No module named pdb
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flexget/plugin.py", line 381, in _load_ plugins_from_dirs
__import__(module_name)
File "/usr/lib/python2.7/site-packages/flexget/plugins/api/movie_queue.py", li ne 11, in <module>
from flexget.plugins.filter import movie_queue as mq
File "/usr/lib/python2.7/site-packages/flexget/plugins/filter/movie_queue.py", line 14, in <module>
from flexget.utils.imdb import extract_id
File "/usr/lib/python2.7/site-packages/flexget/utils/imdb.py", line 6, in <mod ule>
from bs4.element import Tag
File "/usr/lib/python2.7/site-packages/bs4/__init__.py", line 30, in <module>
from .builder import builder_registry, ParserRejectedMarkup
File "/usr/lib/python2.7/site-packages/bs4/builder/__init__.py", line 4, in <m odule>
from bs4.element import (
File "/usr/lib/python2.7/site-packages/bs4/element.py", line 3, in <module>
from pdb import set_trace
ImportError: No module named pdb
2016-05-25 17:15 CRITICAL plugin Plugin `flexget.plugins. api.seen` failed to import dependencies
2016-05-25 17:15 ERROR plugin No module named pdb
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flexget/plugin.py", line 381, in _load_ plugins_from_dirs
__import__(module_name)
File "/usr/lib/python2.7/site-packages/flexget/plugins/api/seen.py", line 11, in <module>
from flexget.plugins.filter import seen
File "/usr/lib/python2.7/site-packages/flexget/plugins/filter/seen.py", line 2 5, in <module>

ArowonA
25-05-16, 17:38
unfortunately, i dont have access to my box to test this at the moment, but it looks like most of the errors are about the pdb module, so if you try installing that and see how you get on
pip install pdb

vps11
25-05-16, 17:48
thanks arowana, when you have access to your box, I would be greatful if can you have a look


root@vuduo2:~# flexget execute
Traceback (most recent call last):
File "/usr/bin/flexget", line 7, in <module>
from flexget import main
File "/usr/lib/python2.7/site-packages/flexget/__init__.py", line 11, in <module>
from flexget.manager import Manager
File "/usr/lib/python2.7/site-packages/flexget/manager.py", line 17, in <module>
import sqlalchemy
File "/usr/lib/python2.7/site-packages/sqlalchemy/__init__.py", line 52, in <module>
from sqlalchemy.types import (
File "/usr/lib/python2.7/site-packages/sqlalchemy/types.py", line 27, in <module>
from sqlalchemy import exc, schema
File "/usr/lib/python2.7/site-packages/sqlalchemy/schema.py", line 33, in <module>
from sqlalchemy import event, events
File "/usr/lib/python2.7/site-packages/sqlalchemy/event/__init__.py", line 8, in <module>
File "/usr/lib/python2.7/site-packages/sqlalchemy/event/api.py", line 14, in <module>
File "/usr/lib/python2.7/site-packages/sqlalchemy/event/base.py", line 23, in <module>
File "/usr/lib/python2.7/site-packages/sqlalchemy/event/attr.py", line 43, in <module>
AttributeError: 'module' object has no attribute 'MemoizedSlots'
root@vuduo2:~#

ArowonA
26-05-16, 11:02
I think your options are either upgrade python to version 3, but that could potentially cause problems with OpenVix/Enigma2 or install an even older version of flexget, you could try this, still seems to have an error but it runs

pip freeze | xargs pip uninstall -y
opkg install python-dateutil
pip install flexget==1.2.324
pip install transmissionrpc

vps11
26-05-16, 11:24
Im using latest version of openvix, if thats any help.




root@vuduo2:~# flexget check
Traceback (most recent call last):
File "/usr/bin/flexget", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.linux-mips/egg/pkg_resources/__init__.py", line 2927, in <module>
File "build/bdist.linux-mips/egg/pkg_resources/__init__.py", line 2913, in _call_aside
File "build/bdist.linux-mips/egg/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set
File "build/bdist.linux-mips/egg/pkg_resources/__init__.py", line 637, in _build_master
File "build/bdist.linux-mips/egg/pkg_resources/__init__.py", line 650, in _build_from_requirements
File "build/bdist.linux-mips/egg/pkg_resources/__init__.py", line 834, in resolve
pkg_resources.ContextualVersionConflict: (python-dateutil 2.5.3 (/usr/lib/python2.7/site-packages), Requirement.parse('python-dateutil<2.5.2'), set(['guessit']))


root@vuduo2:~# flexget execute
Traceback (most recent call last):
File "/usr/bin/flexget", line 5, in <module>
from pkg_resources import load_entry_point
File "build/bdist.linux-mips/egg/pkg_resources/__init__.py", line 2927, in <module>
File "build/bdist.linux-mips/egg/pkg_resources/__init__.py", line 2913, in _call_aside
File "build/bdist.linux-mips/egg/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set
File "build/bdist.linux-mips/egg/pkg_resources/__init__.py", line 637, in _build_master
File "build/bdist.linux-mips/egg/pkg_resources/__init__.py", line 650, in _build_from_requirements
File "build/bdist.linux-mips/egg/pkg_resources/__init__.py", line 834, in resolve
pkg_resources.ContextualVersionConflict: (python-dateutil 2.5.3 (/usr/lib/python2.7/site-packages), Requirement.parse('python-dateutil<2.5.2'), set(['guessit']))

ArowonA
26-05-16, 11:26
try removing and reinstalling python-dateutil
opkg remote python-dateutil
opkg install python-dateutil

vps11
26-05-16, 11:30
when attempt to remove it.


root@vuduo2:~# opkg remove python-dateutil
No packages removed.
Collected errors:
* print_dependents_warning: Package python-dateutil is depended upon by packages:
* print_dependents_warning: python-icalendar
* print_dependents_warning: These might cease to work if package python-dateutil is removed.

* print_dependents_warning: Force removal of this package with --force-depends.
* print_dependents_warning: Force removal of this package and its dependents
* print_dependents_warning: with --force-removal-of-dependent-packages.
root@vuduo2:~#

ArowonA
26-05-16, 11:33
If you use --force-depends as you're going to reinstall it anyway

opkg remove python-dateutil --force-depends

vps11
26-05-16, 11:36
root@vuduo2:~# flexget check
2016-05-26 11:35 CRITICAL plugin Plugin `flexget.plugins.parsers.parser_guessit` failed to import dependencies
2016-05-26 11:35 ERROR plugin No module named containers
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flexget/plugin.py", line 386, in _load_plugins_from_dirs
__import__(module_name)
File "/usr/lib/python2.7/site-packages/flexget/plugins/parsers/parser_guessit.py", line 9, in <module>
from guessit.containers import PropertiesContainer, NoValidator
ImportError: No module named containers




root@vuduo2:~# flexget execute
2016-05-26 11:36 CRITICAL plugin Plugin `flexget.plugins.parsers.parser_guessit` failed to import dependencies
2016-05-26 11:36 ERROR plugin No module named containers
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flexget/plugin.py", line 386, in _load_plugins_from_dirs
__import__(module_name)
File "/usr/lib/python2.7/site-packages/flexget/plugins/parsers/parser_guessit.py", line 9, in <module>
from guessit.containers import PropertiesContainer, NoValidator
ImportError: No module named containers

ArowonA
26-05-16, 11:39
Yeah, that's the error i mentioned earlier but on mine it still continues and downloads things.

vps11
26-05-16, 11:41
Yeah, that's the error i mentioned earlier but on mine it still continues and downloads things.

cool, will have a look,

thanks for your time.

vps11
26-05-16, 12:10
rebooted the box, then the box wouldnt boot so I hard to restore an image backup.

if I was to start again, what should I do differently?

ArowonA
26-05-16, 13:00
Oops mine too, probably that 'pip uninstall' command wasn't a good idea, I can't test anything now but I'd suggest going through the steps in the first post but replacing two of the lines with
wget https://phm.pw/ez_setup.py -O - | python
pip install flexget==1.2.324 and see how you get on.

vps11
26-05-16, 13:41
box starts up after reboot this time.



root@vuduo2:~# flexget check
2016-05-26 13:39 CRITICAL plugin Plugin `flexget.plugins.parsers.parser_guessit` failed to import dependencies
2016-05-26 13:39 ERROR plugin No module named containers
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flexget/plugin.py", line 386, in _load_plugins_from_dirs
__import__(module_name)
File "/usr/lib/python2.7/site-packages/flexget/plugins/parsers/parser_guessit.py", line 9, in <module>
from guessit.containers import PropertiesContainer, NoValidator
ImportError: No module named containers
2016-05-26 13:39 VERBOSE check Pre-checked 98 configuration lines
Traceback (most recent call last):
File "/usr/bin/flexget", line 9, in <module>
load_entry_point('FlexGet==1.2.324', 'console_scripts', 'flexget')()
File "/usr/lib/python2.7/site-packages/flexget/__init__.py", line 37, in main
manager.start()
File "/usr/lib/python2.7/site-packages/flexget/manager.py", line 309, in start
self.initialize()
File "/usr/lib/python2.7/site-packages/flexget/manager.py", line 209, in initialize
fire_event('manager.startup', self)
File "/usr/lib/python2.7/site-packages/flexget/event.py", line 103, in fire_event
result = event(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/flexget/event.py", line 22, in __call__
return self.func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/flexget/utils/simple_persistence.py", line 160, in load_taskless
SimplePersistence.load()
File "/usr/lib/python2.7/site-packages/flexget/utils/simple_persistence.py", line 124, in load
for skv in session.query(SimpleKeyValue).filter(SimpleKeyValu e.task == task).all():
File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2613, in all
return list(self)
File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2761, in __iter__
return self._execute_and_instances(context)
File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2776, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 914, in execute
return meth(self, multiparams, params)
File "/usr/lib/python2.7/site-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
context)
File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1341, in _handle_dbapi_exception
exc_info
File "/usr/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 202, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
context)
File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such column: simple_persistence.value [SQL: u'SELECT simple_persistence.feed AS simple_persistence_feed, simple_persistence.value AS simple_persistence_value, simple_persistence.id AS simple_persistence_id, simple_persistence.plugin AS simple_persistence_plugin, simple_persistence."key" AS simple_persistence_key, simple_persistence.added AS simple_persistence_added \nFROM simple_persistence \nWHERE simple_persistence.feed IS NULL']




root@vuduo2:~# flexget execute
2016-05-26 13:40 CRITICAL plugin Plugin `flexget.plugins.parsers.parser_guessit` failed to import dependencies
2016-05-26 13:40 ERROR plugin No module named containers
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flexget/plugin.py", line 386, in _load_plugins_from_dirs
__import__(module_name)
File "/usr/lib/python2.7/site-packages/flexget/plugins/parsers/parser_guessit.py", line 9, in <module>
from guessit.containers import PropertiesContainer, NoValidator
ImportError: No module named containers
Traceback (most recent call last):
File "/usr/bin/flexget", line 9, in <module>
load_entry_point('FlexGet==1.2.324', 'console_scripts', 'flexget')()
File "/usr/lib/python2.7/site-packages/flexget/__init__.py", line 37, in main
manager.start()
File "/usr/lib/python2.7/site-packages/flexget/manager.py", line 309, in start
self.initialize()
File "/usr/lib/python2.7/site-packages/flexget/manager.py", line 209, in initialize
fire_event('manager.startup', self)
File "/usr/lib/python2.7/site-packages/flexget/event.py", line 103, in fire_event
result = event(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/flexget/event.py", line 22, in __call__
return self.func(*args, **kwargs)
File "/usr/lib/python2.7/site-packages/flexget/utils/simple_persistence.py", line 160, in load_taskless
SimplePersistence.load()
File "/usr/lib/python2.7/site-packages/flexget/utils/simple_persistence.py", line 124, in load
for skv in session.query(SimpleKeyValue).filter(SimpleKeyValu e.task == task).all():
File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2613, in all
return list(self)
File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2761, in __iter__
return self._execute_and_instances(context)
File "/usr/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2776, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 914, in execute
return meth(self, multiparams, params)
File "/usr/lib/python2.7/site-packages/sqlalchemy/sql/elements.py", line 323, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1010, in _execute_clauseelement
compiled_sql, distilled_params
File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1146, in _execute_context
context)
File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1341, in _handle_dbapi_exception
exc_info
File "/usr/lib/python2.7/site-packages/sqlalchemy/util/compat.py", line 202, in raise_from_cause
reraise(type(exception), exception, tb=exc_tb, cause=cause)
File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/base.py", line 1139, in _execute_context
context)
File "/usr/lib/python2.7/site-packages/sqlalchemy/engine/default.py", line 450, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such column: simple_persistence.value [SQL: u'SELECT simple_persistence.feed AS simple_persistence_feed, simple_persistence.value AS simple_persistence_value, simple_persistence.id AS simple_persistence_id, simple_persistence.plugin AS simple_persistence_plugin, simple_persistence."key" AS simple_persistence_key, simple_persistence.added AS simple_persistence_added \nFROM simple_persistence \nWHERE simple_persistence.feed IS NULL']

ArowonA
26-05-16, 13:53
I'm pretty much out of ideas, I guess it doesn't work anymore. You could try removing the sqlite database, just in case it got created when you were using a newer version
rm /media/hdd/flexget/db-config.sqlite but if that doesn't work, sorry there is nothing else I can think to try.

vps11
26-05-16, 14:01
i think this looks good, can you confirm?



root@vuduo2:~# flexget check
2016-05-26 13:55 CRITICAL plugin Plugin `flexget.plugins.parsers.parser_guessit` failed to import dependencies
2016-05-26 13:55 ERROR plugin No module named containers
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/flexget/plugin.py", line 386, in _load_plugins_from_dirs
__import__(module_name)
File "/usr/lib/python2.7/site-packages/flexget/plugins/parsers/parser_guessit.py", line 9, in <module>
from guessit.containers import PropertiesContainer, NoValidator
ImportError: No module named containers
2016-05-26 13:55 VERBOSE manager Creating new database /home/root/.flexget/db-config.sqlite ...
2016-05-26 13:56 VERBOSE check Pre-checked 98 configuration lines
2016-05-26 13:56 VERBOSE check Checking config file `/home/root/.flexget/config.yml`
2016-05-26 13:56 VERBOSE check Config passed check.

ArowonA
26-05-16, 14:05
The error is not ideal, but yes that's what I had earlier on my box and it seemed to run ok and start downloading somethings :)

vps11
26-05-16, 14:08
whats the best way to test?, I haven't got any TV Shows due today on my RSS Feed

ArowonA
26-05-16, 14:12
it depends, if you're using thetvdb favourites for the list it downloads, you can just favourite a show that's on your RSS feed to try it, and then un-favourite it afterwards.

vps11
26-05-16, 14:48
i managed to get it working with thetvdb

how do I make it work with Karmorra?

ArowonA
26-05-16, 15:01
The config from post #5 is configured to work with Karmorra, it just checks theTVDB.com for which shows you have as favourites and then it uses Karmorra to find a download link. It may be worth looking at the FlexGet cookbook as there are lots of options, for example.

http://flexget.com/wiki/Cookbook/Series/SeriesTransmissionshowRSS
As you are running an older version though, some things may have changed, so you'd have to work backwards through the UpgradeActions if something didn't work quite right
http://flexget.com/wiki/UpgradeActions

vps11
26-05-16, 17:18
can you share your crontab please?

ArowonA
26-05-16, 17:36
Mine is just
0 8 * * * /usr/local/bin/flexget --cron execute
0 15 * * * /usr/local/bin/flexget --cron execute So it runs at 8am and 3pm, I guess I could change it to one line like

0 8,15 * * * /usr/local/bin/flexget --cron execute
but it's been working so why mess with it :)

vps11
26-05-16, 18:14
cron doesnt work,

also tried

0 8 * * * /usr/bin/flexget --cron execute

its not in "local" folder in my verion openvix.

I will do some googling while I wait for your solutions.

ArowonA
26-05-16, 18:44
Yeah sorry, I don't use it on my box any more, I went back to my Raspberry PI,
the command line should be as you have it above, it should work. how are you adding the line to crontab?
First you'll need to install cron from the Openvix menu, I think it's in Timers / Crontab , then on the box type

crontab -e and (assuming you've installed nano) just paste the line above, then [CTRL] + X and Y and that should be it.

vps11
29-10-16, 19:14
Cant get it working on opevix 4.2

Any one have step by step install guide for openvix 4.2?

vps11
29-11-16, 10:18
anyone know why it doesnt work on the latest version of openvix?