Skip to content

Instantly share code, notes, and snippets.

@taking
Last active November 7, 2018 09:52
Show Gist options
  • Save taking/ee5f5a071b3d15e2bd57683f84db7b1c to your computer and use it in GitHub Desktop.
Save taking/ee5f5a071b3d15e2bd57683f84db7b1c to your computer and use it in GitHub Desktop.
Flexget Config 2018-11-07
######## Init #########
variables: secrets.yml
######## scedules ์„ค์ • ########
schedules:
# Download Tasks
- tasks: 'download_*'
interval:
hours: 1 # weeks, days, hours, minutes
- tasks: 'move_*'
interval:
hours: 1
######## templates ์„ค์ • ########
templates:
# Transmission ์ „์†ก์šฉ ์„ค์ •
anchors:
_transmission-settings: &transmission-settings
host: localhost
username: TORRENT์•„์ด๋””
password: TORRENT๋น„๋ฐ€๋ฒˆํ˜ธ
# Global Settings
global:
no_entries_ok: yes
pathscrub: windows # ํŒŒ์ผ ์ด๋ฆ„์„ ์œˆ๋„์šฐ ํ˜•์‹์œผ๋กœ ์„ค์ • (windows๊ฐ€ ๊ฐ€์žฅ ์—„๊ฒฉ)
free_space:
path: "/{? folder.root ?}" # secrets.yml ์—์„œ ์„ค์ •ํ•œ ๋‹ค์šด๋กœ๋“œ ํด๋”๊ฐ€ ์žˆ๋Š” Root ํด๋”
space: 5000 # 5G ์—ฌ์œ ๊ณต๊ฐ„์ด ์žˆ์–ด์•ผ ๋‹ค์šด๋กœ๋“œ ์ง„ํ–‰
regexp:
reject:
- (s|d)ub(s|bed)?\b: {from: title} # subbed(์˜์ƒ ์ž์ฒด ์ž๋ง‰), dubbed(๋”๋น™), etc ์ œ์™ธ
- \b3-?D\b: {from: title} # 3D ์ œ์™ธ
- \btrailer\b: {from: title} # ํŠธ๋ ˆ์ผ๋Ÿฌ ์ œ์™ธ
- \bWEBSCR\b: {from: title} # WEBSCR ์ œ์™ธ (ํ™”์งˆ๊ตฌ์ง€)
- \bTS\b: {from: title} # TS, CAM ๋ฒ„์ „ ์ œ์™ธ (ํ™”์งˆ๊ตฌ์ง€)
- \bCam\b: {from: title}
manipulate:
- title:
replace:
# JTBC, tvn, Olive, Mnet, ์ฑ„๋„A ๋“ฑ ์ œ๊ฑฐ (ex. [JTBC] ์•„๋Š” ํ˜•๋‹˜ -> ์•„๋Š” ํ˜•๋‹˜)
regexp: '^\[[^\]]*\][^a-z0-9]'
format: ''
# ํ† ๋ ŒํŠธ ์„ค์ •
# torrent_alive:
# min_seeds: 3 # ํ•„์š”ํ•œ ์ตœ์†Œ ์‹œ๋“œ ์ˆ˜
# reject_for: 15 minutes # 15๋ถ„ ํ›„์— ๋‹ค์‹œ ์ฒดํฌ
# ์ฝ˜ํ…์ธ  ํ•„ํ„ฐ ์„ค์ •
content_filter:
require: # ํ—ˆ์šฉ ํ™•์žฅ์ž
- '*.mkv'
- '*.mp4'
require_mainfile: yes # ํŒŒ์ผ์ด ์—ฌ๋Ÿฌ๊ฐœ ์žˆ๋Š” ๊ฒฝ์šฐ, mainfile ์ฒดํฌ (๋‹จ์ผํŒŒ์ผ์€ ์ƒ๊ด€X)
magnets: no # ์ฝ˜ํ…์ธ  ํ•„ํ„ฐ๊ฐ€ ์ ์šฉ๋˜๋„๋ก ๋งˆ๊ทธ๋„ท(Magnet) ๋„๊ธฐ
######## RSS ์ฃผ์†Œ ์„ค์ • ########
# Korea ENT template
kent_template:
include:
- input/kent.yml
- want/kent.yml
verify_ssl_certificates: no
# ์ฝ˜ํ…์ธ  ์‚ฌ์ด์ฆˆ ์„ค์ •
content_size:
min: 300 # 300MB ์ด์ƒ
max: 5000 # 5G ์ดํ•˜
series:
settings:
KENT:
identified_by: ep
ep_regexp: e(\d+)
quality: 720p !1080p !360p
# Korea Drama template
kdrama_template:
include:
- input/kdrama.yml
- want/kdrama.yml
verify_ssl_certificates: no
# ์ฝ˜ํ…์ธ  ์‚ฌ์ด์ฆˆ ์„ค์ •
content_size:
min: 300 # 300MB ์ด์ƒ
max: 5000 # 5G ์ดํ•˜
series:
settings:
KDRAMA:
#timeframe: 4 hours
identified_by: ep
ep_regexp: e(\d+)
quality: 720p !1080p !360p
#target: 720p !1080p !360p
# ์ €์žฅ ํด๋” ๋ฐ ํŒŒ์ผ์ด๋ฆ„ ๋ณ€๊ฒฝ ์„ค์ •
transmission-kent:
transmission:
<<: *transmission-settings
ratio: 0
main_file_only: yes
rename_like_files: no
#content_filename: "{{tvdb_series_name|default(series_name)|pathscrub}} - {{tvdb_ep_id|default(series_id)}}{% if tvdb_ep_name|default(False) %} - {{tvdb_ep_name|pathscrub}}{% endif %}{% if quality|default(False) %} - [{{quality}}]{% endif %}"
path: "/{? folder.downssd ?}{? folder.downkent ?}/"
transmission-kdrama:
transmission:
<<: *transmission-settings
ratio: 0
main_file_only: yes
rename_like_files: no
#content_filename: "{{tvdb_series_name|default(series_name)|pathscrub}} - {{tvdb_ep_id|default(series_id)}}{% if tvdb_ep_name|default(False) %} - {{tvdb_ep_name|pathscrub}}{% endif %}{% if quality|default(False) %} - [{{quality}}]{% endif %}"
path: "/{? folder.downssd ?}{? folder.downkdrama ?}{{tmdb_name|default(series_name)|pathscrub}}/"
# Pushbullet ์„ค์ •
pushbullet:
notify:
entries:
title: "{{title}} ๋‹ค์šด๋กœ๋“œ ์‹œ์ž‘"
via:
- pushbullet:
api_key: "{? pushbullet.api ?}"
disable-seen-retry:
disable:
- seen
- seen_info_hash
- retry_failed
series-metainfo:
metainfo_series: yes
#tmdb_lookup: yes
thetvdb_lookup: yes
kdrama-metainfo:
metainfo_series: yes
tmdb_lookup: yes
thetvdb_lookup: yes
series-guessit:
parsing:
series: guessit
################################
tasks:
download_kent_manual:
priority: 10
template:
- disable-seen-retry
- kent_template
- transmission-kent
#- pushbullet
download_kdrama_manual:
priority: 10
template:
- disable-seen-retry
- kdrama_template
- transmission-kdrama
#- pushbullet
############ ์ด๋™ #######
move_kent:
priority: 50
filesystem:
path: "/{? folder.downssd ?}{? folder.downkent ?}"
recursive: yes
retrieve: files
regexp: '.*\.(avi|mkv|mp4)$'
accept_all: yes
move:
to: "/{? folder.root ?}{? folder.kent ?}"
exec:
on_exit:
phase: find "/{? folder.downssd ?}{? folder.downkent ?}"* -type d -empty -delete
move_kdrama:
priority: 51
template:
- disable-seen-retry
- series-metainfo
- series-guessit
filesystem:
path: "/{? folder.downssd ?}{? folder.downkdrama ?}"
recursive: yes
retrieve: files
regexp: '.*\.(avi|mkv|mp4)$'
accept_all: yes
move:
# ex) Kim's Convenience/Season 1/
to: "/{? folder.root ?}{? folder.kdrama ?}"
exec:
on_exit:
phase: find "/{? folder.downssd ?}{? folder.downkdrama ?}"* -type d -empty -delete
# input/kent.yml
inputs:
- rss: { url: 'https://localhost/trss.php?k=720p-next&maxpage=1&s=tf&bf=tent', silent: yes }
# input/kdrama.yml
inputs:
- rss: { url: 'https://localhost/trss.php?k=720p-next&maxpage=1&s=tf&bf=tdrama', silent: yes }
folder:
############### Save Path #################
# / ๊ธฐ์ค€์œผ๋กœ ์ž‘์„ฑ
save_path: 4TB/ # /4TB/AutoDownload/kent/
kent: AutoDownload/kent/
kdrama: AutoDownload/kdrama/
############### Down Path #################
down_path: SSD/
downkent: 3/0/
downkdrama: 3/1/
############### Push bullet #################
pushbullet:
api: API๋ฒˆํ˜ธ
series:
KENT: # category in config.yml
- '๋ฏธ์šด ์šฐ๋ฆฌ ์ƒˆ๋ผ'
- '์ž๊ธฐ์•ผ-๋ฐฑ๋…„์†๋‹˜'
- '์•„๋Š” ํ˜•๋‹˜'
- 'ํ•ดํ”ผํˆฌ๊ฒŒ๋”'
- '๋ผ๋””์˜ค์Šคํƒ€'
- '๋‚˜ ํ˜ผ์ž ์‚ฐ๋‹ค'
- '๋Ÿฐ๋‹๋งจ'
- '๋ฐฑ์ข…์›์˜ ๊ณจ๋ชฉ์‹๋‹น'
- '๋„์‹œ์–ด๋ถ€'
- '๋‚˜๋งŒ ๋ฏฟ๊ณ  ๋”ฐ๋ผ์™€ ๋„์‹œ์–ด๋ถ€'
- '์ธ์ƒ์ˆ ์ง‘'
- '๋™์ƒ์ด๋ชฝ2'
- '๋ƒ‰์žฅ๊ณ ๋ฅผ ๋ถ€ํƒํ•ด'
- '์–ด์„œ์™€ ํ•œ๊ตญ์€ ์ฒ˜์Œ์ด์ง€'
- '์ „์ง€์  ์ฐธ๊ฒฌ'
- 'ํ•œ๋ผ์ค์‡ผ'
- '๋žœ์„ ๋ผ์ดํ”„'
- 'ํ˜„์‹ค๋‚จ๋…€2'
- '์œ  ํ€ด์ฆˆ ์˜จ ๋” ๋ธ”๋Ÿญ'
- '์ˆ˜๋ฏธ๋„ค ๋ฐ˜์ฐฌ'
- '๊ตฌ๋‚ด์‹๋‹น-๋‚จ์˜ ํšŒ์‚ฌ ์œ ๋ž‘๊ธฐ'
- '์‹ ์„œ์œ ๊ธฐ 6'
- 'ํ˜„์ง€์—์„œ ๋จนํž๊นŒ ์ค‘๊ตญํŽธ'
- '์ง„์งœ์‚ฌ๋‚˜์ด300'
- '๊ฐœ๊ทธ์ฝ˜์„œํŠธ'
- '์ฝ”๋ฏธ๋”” ๋น…๋ฆฌ๊ทธ'
- '์•Œ์“ธ์‹ ์žก 3'
- '์„ ๋‹ค๋ฐฉ ๊ฐ€์„๊ฒจ์šธํŽธ'
- 'ํ•œ์‹๋Œ€์ฒฉ-๊ณ ์ˆ˜์™ธ์ „'
- 'ํ”„๋ฆฌํ•œ19'
- '์ฃผ๋ง ์‚ฌ์šฉ ์„ค๋ช…์„œ'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment