Why is not [HOWTO] read at the end of the topic.
I could not get FlexGet work correctly in Nas4Free and hope to help the community.
Description:
For creating and managing jails I use TheBrig - [HOWTO] Install TheBrig - one Jail manager for N4FFlexGet is a multipurpose automation tool for content like torrents, nzbs, podcasts, comics, series, movies, etc. It can use different kinds of sources like RSS-feeds, html pages, csv files, search engines and there are even plugins for sites that do not provide any kind of useful feeds.
There are numerous plugins that allow utilizing FlexGet in interesting ways and more are being added continuously.
FlexGet is extremely useful in conjunction with applications which have watch directory support or provide interface for external utilities like FlexGet.
1. Enter the Jail
Code: Select all
jexec <number_of_jail> shCode: Select all
pkg install -y net/py-urllib3 databases/py-sqlite3 devel/py-pipCode: Select all
pip install --no-cache-dir flexgetCode: Select all
pip install transmissionrpcCode: Select all
# flexget -V
1.2.289
You are on the latest release.For more information about the configuration read on the official wiki project
Although the installation went smoothly, there is a problem, not giving FlexGet use to the fullest.
The problem is that established in jail (or full nas4free) FlexGet can not add torrent jobs in the transmission or download a torrent file. But fleksget on ubuntu 14.10 or Windows 7 performs the task without problems.
Example of my config.yml
Code: Select all
tasks:
lostfilm:
verify_ssl_certificates: no
headers:
cookie: "uid=*******;pass=******************************;usess=********************"
rss:
url: 'http://www.lostfilm.tv/rssdd.xml'
ascii: yes
urlrewrite:
newlost:
regexp: 'https://lostfilm.tv/download.php\?(?P<details>.*)'
format: 'https://www.lostfilm.tv/download.php\?(?g<details>)'
download:
path: '/mnt/data/download'
# regexp:
# accept:
# - '12 Monkeys'
# reject:
# - '720p'
# - 'x264'
# - 'XviD'
# - 'MP4'
# - 'Complete'
# - '1080p'
crash_report.2015.03.04.083021365817.log:
Code: Select all
2015-03-04 08:30 DEBUG manager Figuring out config load paths
2015-03-04 08:30 DEBUG manager Found config: /root/.config/flexget/config.yml
2015-03-04 08:30 DEBUG manager Config file /root/.config/flexget/config.yml selected
2015-03-04 08:30 VERBOSE task_queue There are 1 tasks to execute. Shutdown will commence when they have completed.
2015-03-04 08:30 VERBOSE details lostfilm Produced 15 entries.
2015-03-04 08:30 VERBOSE task lostfilm ACCEPTED: `(Hawaii Five-0). (Kuka\'awale) [1080p]. (S05E17)` by regexp plugin$
2015-03-04 08:30 VERBOSE task lostfilm ACCEPTED: `(The Walking Dead). (Remember) [1080p]. (S05E12)` by regexp plugin$
2015-03-04 08:30 VERBOSE task lostfilm ACCEPTED: `(The Musketeers). (A Marriage of Inconvenience) [1080p]. (S02E07)$
2015-03-04 08:30 VERBOSE task lostfilm ACCEPTED: `(Bitten). (Dead Meat) [1080p]. (S02E04)` by regexp plugin because $
2015-03-04 08:30 VERBOSE task lostfilm ACCEPTED: `12 (12 Monkeys). (The Keys) [1080p]. (S01E07)` by regexp plugin b$
2015-03-04 08:30 INFO download lostfilm Downloading: (Hawaii Five-0). (Kuka\'awale) [1080p]. (S05E17)
2015-03-04 08:30 CRITICAL task lostfilm BUG: Unhandled error in plugin download: __str__ returned non-string (type Err$
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/flexget/task.py", line 435, in __run_plugin
return method(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/flexget/event.py", line 22, in __call__
return self.func(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/flexget/plugins/output/download.py", line 90, in on_task_download
tmp_path=tmp)
File "/usr/local/lib/python2.7/site-packages/flexget/plugins/output/download.py", line 175, in get_temp_files
self.get_temp_file(task, entry, require_path, handle_magnets, fail_html, tmp_path)
File "/usr/local/lib/python2.7/site-packages/flexget/plugins/output/download.py", line 128, in get_temp_file
error = self.process_entry(task, entry, url, tmp_path)
File "/usr/local/lib/python2.7/site-packages/flexget/plugins/output/download.py", line 195, in process_entry
self.download_entry(task, entry, url, tmp_path)
File "/usr/local/lib/python2.7/site-packages/flexget/plugins/output/download.py", line 232, in download_entry
response = task.requests.get(url, auth=auth, raise_status=False)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 473, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python2.7/site-packages/flexget/utils/requests.py", line 146, in request
result = requests.Session.request(self, method, url, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 461, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 370, in send
timeout=timeout
File "/usr/local/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 544, in urlopen
body=body, headers=headers)