-
Notifications
You must be signed in to change notification settings - Fork 0
/
copy_sort.yml
62 lines (60 loc) · 2.16 KB
/
copy_sort.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
60
61
62
# Flexget (http://www.flexget.com) configuration file.
#
# Created by: Jeff Wilson <[email protected]>
# I will keep this above ^^ thanks dude
#
# This config file is not a standard Flexget config, it is used
# to sort my unrared movies and TV shows into their proper place
#
presets:
global:
# Each feed must be run manually
manual: yes
# Disable seen, alway process files
disable_builtins: [seen]
accept_all: yes
# Make sure all filenames are Windows safe (for samba)
pathscrub: windows
find:
# We are looking for any video files that were extracted
regexp: '.*\.(avi|mkv|mpg|mp4)$'
recursive: yes
regexp:
reject:
- \bsample\b: {from: title}
content_size:
min: 60
tasks:
sort_copied_tv_shows:
# Where to get the unpacked (staged) files from
find:
path: '/media/300GB/XBMC_LIBRARY/staged/tvshows/'
# Where to get the metadata
thetvdb_lookup: yes
# This is needed to get my TVDB offset values
include: [series.yml]
all_series:
# Don't actually filter
parse_only: yes
# Don't attempt to move if we don't have valid metadata
require_field: [series_id]
move:
# Folder to move to
to: >
/media/300GB/XBMC_LIBRARY/TvShows/{{ series_name|replace('/', '_')|replace(':', ' -') }}/{% if series_id_type == 'ep' %}Season {{ tvdb_season|default(series_season) }}/{% endif %}
# Filename (inside of folder) to move to
filename: >
{{ series_name|replace('/', '_')|replace(':', ' -') }} - {{ tvdb_ep_id|default(series_id) }}{% if tvdb_ep_name|default(False) %} - {{ tvdb_ep_name|replace('/', '_')|replace(':', ' -') }}{% endif %} - {{ quality }}.{{ location[-3:] }}
#clean_source: 40
# Same as above
sort_copied_movies:
find:
path: '/media/300GB/XBMC_LIBRARY/staged/movies/'
imdb_lookup: yes
require_field: [imdb_url]
move:
to: >
/media/300GB/XBMC_LIBRARY/Movies/{{ imdb_name|replace('/', '_')|replace(':', ' -') }} ({{ imdb_year }})/
filename: >
{{ imdb_name|replace('/', '_')|replace(':', ' -') }} ({{ imdb_year }}) - {{ quality }}.{{ location[-3:] }}
#clean_source: 1000