Skip to content

Instantly share code, notes, and snippets.

@taking
Last active November 7, 2018 09:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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