程式狂想筆記

一個攻城師奮鬥史

0%

更新系統flexget壞掉啦!!

想說flexget應該正常
結果執行flexget -v

1
找不到/bin/xxx/python2.6

升級OS後python是2.7
想說直接升級flexget

1
2
sudo pip install --upgrade setuptools
sudo pip install --upgrade flexget

FlexGet官方升級說明

但是不成功…

1
sudo pip install --upgrade --force-reinstall flexget

python - Can I force pip to reinstall the current version? - Stack Overflow

還是安裝失敗 囧

1
sudo pip3 install --upgrade --force-reinstall flexget

pip3就可以了… 不知道為什麼
.flexget/db-config.sqlit要刪掉

執行flexget --test execute怎麼跑出錯誤Transmissionrpc module version 0.11 or higher required

1
sudo pip3 install  transmissionrpc

flexget --test execute跑出

1
2
3
4
5
2018-01-07 22:07 VERBOSE  manager                       Creating new database /home/pi/.flexget/test-config.sqlite - DO NOT INTERUPT ...
2018-01-07 22:08 CRITICAL manager [/templates/autoPass] The key `disable_builtins` is not valid here. Only known plugin names are valid keys.
2018-01-07 22:08 CRITICAL manager [/templates/olddownload] The key `disable_builtins` is not valid here. Only known plugin names are valid keys.
2018-01-07 22:08 CRITICAL manager [/templates/default] The key `disable_builtins` is not valid here. Only known plugin names are valid keys.
2018-01-07 22:08 CRITICAL manager

config.yml裡設定disable_buildin關係

1
disable_builtins: [seen_info_hash]

先暫時移除
改寫法可能是下面這段
https://flexget.com/Plugins/disable

先分享我的config.yml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
templates:
default:
transmission:
host: localhost
port: 9091
username: username
password: usernamepassword
addpaused: no
path: /mnt/extHDD/Download/Mikata/201710/{{task}}
free_space:
path: /mnt/extHDD/
space: 1000
clean_transmission:
host: localhost
port: 9091
username: username
password: usernamepassword
finished_for: 4 days
min_ratio: 1
if:
- "'季度全集' in category": reject
olddownload:
transmission:
host: localhost
port: 9091
username: username
password: usernamepassword
addpaused: no
path: /mnt/extHDD/Download/Mikata/201707/{{task}}
free_space:
path: /mnt/extHDD/
space: 1000
clean_transmission:
host: localhost
port: 9091
username: username
password: usernamepassword
finished_for: 4 days
min_ratio: 1
if:
- "'季度全集' in category": reject
autoPass:
transmission:
host: localhost
port: 9091
username: username
password: usernamepassword
addpaused: yes
path: /mnt/extHDD/Download/Mikata/201707/{{task}}
if:
- "'季度全集' in category": reject

tasks:
Fate/Apocrypha:
rss:
url: https://share.dmhy.org/topics/rss/sort_id/2/rss.xml?keyword=Apocrypha+team_id%3A37+720+繁
other_fields: [category]
accept_all: yes
template: default

參考來源:
python - Can I force pip to reinstall the current version? - Stack Overflow
FlexGet
FlexGet
[SOLVED] Flexget can’t see Transmissionrpc is installed - help - Forum - FlexGet