Skip to content

Commit

Permalink
2023-01-27 Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
runecalico committed Jan 27, 2023
1 parent b8eced3 commit 51fe1f7
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 67 deletions.
1 change: 1 addition & 0 deletions install_ubuntu_2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
pip3 install --upgrade pip
pip3 install --upgrade setuptools
pip3 install --upgrade libtorrent
pip3 install --upgrade guppy3
pip3 install --upgrade wheel # to upgrade: pip3 install --upgrade deluge-client
pip3 install --upgrade deluge-client # Needed to talk to Deluge - to upgrade: pip3 install --upgrade deluge-client
pip3 install --upgrade lbry-libtorrent # Needed for convert_magnet - to upgrade: pip3 install --upgrade lbry-libtorrent
Expand Down
192 changes: 126 additions & 66 deletions seedbox/config-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ templates:
- "*.EXE"
- "*.msi"
- "*.MSI"

download-deluge:
deluge:
path: /home/user/Downloads
#move_completed_path: /home/user/Downloads/finished # Handled by movefinished.yaml now
Expand All @@ -106,16 +108,29 @@ templates:
remove_at_ratio: yes
magnetization_timeout: 30

ncraws-rename:
manipulate:
- title:
replace:
regexp: '^(\[NC-Raws\])((.*(?=[฀-﫿]).+?)?(\s{1,3}\/\s)|(\s+\(.*(?=\/)\/\s))'
format: '\1 '
- title:
replace:
regexp: ':'
format: ''
set:
content_filename: '{{title}}'

animenandesuka:
quality: 720p
accept_all: yes
deluge:
path: /home/user/Downloads
#move_completed_path: /home/user/Downloads/finished # Handled by movefinished.yaml now
label: anime
ratio: 1.5
remove_at_ratio: yes
magnetization_timeout: 30
# deluge:
# path: /home/user/Downloads
# #move_completed_path: /home/user/Downloads/finished # Handled by movefinished.yaml now
# label: anime
# ratio: 1.5
# remove_at_ratio: yes
# magnetization_timeout: 30

# animeerairaws:
# quality: 720p
Expand All @@ -137,33 +152,33 @@ templates:
max: 900
strict: yes
quality: 1080p
deluge:
path: /home/user/Downloads
#move_completed_path: /home/user/Downloads/finished # Handled by movefinished.yaml now
label: anime
ratio: 1.5
remove_at_ratio: yes
#magnetization_timeout: 30
# deluge:
# path: /home/user/Downloads
# #move_completed_path: /home/user/Downloads/finished # Handled by movefinished.yaml now
# label: anime
# ratio: 1.5
# remove_at_ratio: yes
# magnetization_timeout: 30

animehorriblesubs:
accept_all: yes
deluge:
path: /home/user/Downloads
#move_completed_path: /home/user/Downloads/finished # Handled by movefinished.yaml now
label: anime
ratio: 1.5
remove_at_ratio: yes
magnetization_timeout: 30
# deluge:
# path: /home/user/Downloads
# #move_completed_path: /home/user/Downloads/finished # Handled by movefinished.yaml now
# label: anime
# ratio: 1.5
# remove_at_ratio: yes
# magnetization_timeout: 30

animesubplease:
accept_all: yes
deluge:
path: /home/user/Downloads
#move_completed_path: /home/user/Downloads/finished # Handled by movefinished.yaml now
label: anime
ratio: 1.5
remove_at_ratio: yes
magnetization_timeout: 30
# deluge:
# path: /home/user/Downloads
# #move_completed_path: /home/user/Downloads/finished # Handled by movefinished.yaml now
# label: anime
# ratio: 1.5
# remove_at_ratio: yes
# magnetization_timeout: 30

animessa:
quality: 1080p
Expand All @@ -175,13 +190,13 @@ templates:
content_filter:
reject:
- "*.mp4" # HardSubs for SSA
deluge:
path: /home/user/Downloads
#move_completed_path: /home/user/Downloads/finished # Handled by movefinished.yaml now
label: anime
ratio: 1.5
remove_at_ratio: yes
magnetization_timeout: 30
# deluge:
# path: /home/user/Downloads
# #move_completed_path: /home/user/Downloads/finished # Handled by movefinished.yaml now
# label: anime
# ratio: 1.5
# remove_at_ratio: yes
# magnetization_timeout: 30

tasks:
# This is sometimes unreliable ..
Expand All @@ -207,64 +222,72 @@ tasks:
# ascii: yes
# all_entries: no
# template: animeerairaws
animedl-erairaws:
animedl-ncraws:
rss:
url: https://nyaa.si/?page=rss&c=1_2&f=0&u=erai-raws
url: https://nyaa.si/?page=rss&q=NC-RAWS&c=1_2&f=0
ascii: yes
all_entries: no
template: animeerairaws
animedl-nandesuka:
template:
- anime_regexp
- ncraws-rename
- download-deluge
animedl-erairaws:
rss:
url: https://nyaa.si/?page=rss&c=1_2&f=0&u=NanDesuKa
url: https://nyaa.si/?page=rss&c=1_2&f=0&u=erai-raws
ascii: yes
all_entries: no
template: animenandesuka
template:
- animeerairaws
- download-deluge
# animedl-nandesuka:
# rss:
# url: https://nyaa.si/?page=rss&c=1_2&f=0&u=NanDesuKa
# ascii: yes
# all_entries: no
# template:
# - animenandesuka
# - download-deluge
animedl-nyaa:
rss:
url: https://nyaa.si/?page=rss&c=1_2&f=0
ascii: yes
all_entries: no
template: anime_regexp
# Unfortunately prone for Henti/Porn/Warez that can be difficult to filter out
animedl-anidex:
headers:
User-Agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
accept-encoding: "gzip, deflate, br"
accept-language: "en-US,en;q=0.9"
cookie: "__ddgid_=3Qvwc4J3kyTI8AHy; __ddg2_=UAmMGAi25vdjubuB; __ddg1_=gIL8bO82aApP6ufFnisO; PHPSESSID=8ske28rbbi12bi7f1p9rjvi0an" #This looks to be the key
cfscraper: yes
rss:
url: https://anidex.info/rss/?cat=1&lang_id=1&group=0&q=&h=0
# Web equiv: https://anidex.info/?page=search&id=1&lang_id=1&group_id=0&q=
ascii: yes
all_entries: no
template: anime_regexp
template:
- anime_regexp
- download-deluge
animedl-shanaproject:
headers:
cookie: "__ddgid_=3Qvwc4J3kyTI8AHy; __ddg2_=UAmMGAi25vdjubuB; __ddg1_=gIL8bO82aApP6ufFnisO; PHPSESSID=8ske28rbbi12bi7f1p9rjvi0an" #This looks to be the key for anidex.info
cookie: "__ddgid_=3Qvwc4J3kyTI8AHy; __ddg2_=UAmMGAi25vdjubuB; __ddg1_=gIL8bO82aApP6ufFnisO" #This looks to be the key for anidex.info
rss:
url: https://www.shanaproject.com/feeds/site/
ascii: yes
all_entries: no
cfscraper: yes
template: anime_regexp
template:
- anime_regexp
- download-deluge
animedl-animetosho:
headers:
cookie: "__ddgid_=3Qvwc4J3kyTI8AHy; __ddg2_=UAmMGAi25vdjubuB; __ddg1_=gIL8bO82aApP6ufFnisO" #This looks to be the key for anidex.info
rss:
url: https://feed.animetosho.org/rss2?only_tor=1
ascii: yes
all_entries: no
cfscraper: yes
template: anime_regexp
template:
- anime_regexp
- download-deluge
animedl-tokyotosho:
headers:
cookie: "__ddgid_=3Qvwc4J3kyTI8AHy; __ddg2_=UAmMGAi25vdjubuB; __ddg1_=gIL8bO82aApP6ufFnisO; PHPSESSID=8ske28rbbi12bi7f1p9rjvi0an" #This looks to be the key for anidex.info
cookie: "__ddgid_=3Qvwc4J3kyTI8AHy; __ddg2_=UAmMGAi25vdjubuB; __ddg1_=gIL8bO82aApP6ufFnisO" #This looks to be the key for anidex.info
rss:
url: https://www.tokyotosho.info/rss.php?filter=1
ascii: yes
all_entries: no
cfscraper: yes
template: anime_regexp
template:
- anime_regexp
- download-deluge
# RIP: 2022/01/10
# animedl-minglong:
# rss:
Expand All @@ -277,7 +300,26 @@ tasks:
url: https://www.acgnx.se/rss-sort-2.xml
ascii: yes
all_entries: no
template: anime_regexp
template:
- anime_regexp
- download-deluge
# Unfortunately prone for Henti/Porn/Warez that can be difficult to filter out
animedl-anidex:
headers:
User-Agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
accept-encoding: "gzip, deflate, br"
accept-language: "en-US,en;q=0.9"
cookie: "__ddgid_=3Qvwc4J3kyTI8AHy; __ddg2_=UAmMGAi25vdjubuB; __ddg1_=gIL8bO82aApP6ufFnisO" #This looks to be the key
cfscraper: yes
rss:
url: https://anidex.info/rss/?cat=1&lang_id=1&group=0&q=&h=0
# Web equiv: https://anidex.info/?page=search&id=1&lang_id=1&group_id=0&q=
ascii: yes
all_entries: no
template:
- anime_regexp
- download-deluge
# Frequenty has the Hentai category mixed in, and I can't seem to regex it out via category in feed.
# animedl-anirena:
# rss:
Expand All @@ -287,19 +329,37 @@ tasks:
# template: anime_regexp
# This is done primarily as a task to get data from deluge because content_size doesn't work on magnets well during initial filtering
pause_large_torrents:
sleep:
seconds: 60 # This should give enough time for most of the torrents/magnets to start and get sizes etc.
# sleep:
# seconds: 60 # This should give enough time for most of the torrents/magnets to start and get sizes etc.
from_deluge: yes
disable: [seen, seen_info_hash]
# Pause all torrents larger then 30GB that do not have the label "largeanimeok", Note Deluge labels are always lowercase in flexget
# And I don't want to deal with some of the stupidly large torrents people post that I either end up downloading (and then deleting)
# or chew up my Seedbox bandwith
# accept_all: yes # This works as expected
if:
- deluge_label != "largeanimeok" and content_size >= 30720: accept
- "'largeanimeok' not in deluge_label": accept
# - "deluge_label != 'largeanimeok'": accept
# - "deluge_label is defined": accept
# - "not 'largeanimeok' in deluge_label": accept
# - deluge_label != "largeanimeok" and content_size >= 30720: accept
deluge:
action: pause

schedules:
- tasks: "*"
interval:
hours: 1
jitter: 120
# - tasks: [ animedl-erairaws, animedl-nandesuka, animedl-nyaa, animedl-acgnx ]
# interval:
# hours: 1
# jitter: 120
# - tasks: [ animedl-shanaproject, animedl-animetosho, animedl-tokyotosho, animedl-anidex ]
# interval:
# hours: 1
# jitter: 120
# - tasks: [ pause_large_torrents ]
# interval:
# minutes: 30
# jitter: 120
2 changes: 1 addition & 1 deletion update_to_latest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
sudo apt-get upgrade python3-venv python3-distutils python3-dev libtorrent-dev
# Run in your virtual ENV to install flexget
source ~/flexget/bin/activate
pip3 install --upgrade pip setuptools libtorrent wheel deluge-client lbry-libtorrent flexget cloudscraper
pip3 install --upgrade pip setuptools libtorrent wheel deluge-client lbry-libtorrent flexget cloudscraper guppy3

0 comments on commit 51fe1f7

Please sign in to comment.