1#
2# Sample configuration file for tv_augment
3#
4# $Id: augment.conf,v 1.4 2016/07/12 01:20:09 knowledgejunkie Exp $
5#
6# This file controls which augmentation rules are applied to the input XMLTV file
7#
8#
9# It also controls what reporting is printed in the program's output log file.
10#
11# Set an option to 1 to enable it, 0 to disable.
12#
13
14
15# If specified, then this language code will be written to e.g. <credit> elements
16language_code = en
17
18# Set the following values to have XMLTV::Augment automatically fetch a file
19# from the grabber's repository using XMLTV::Supplement
20use_supplement = 0
21supplement_grabber_name = tv_grab_uk_rt
22supplement_grabber_file = prog_titles_to_process
23
24
25
26
27###############################################################################
28#
29# RULES
30# =====
31#
32# The option called 'enable_all_options' is a 'super-option' to quickly turn
33# on or off ALL automatic and user rules. If this is set then ALL individual
34# options are ignored.
35#
36enable_all_options = 0
37
38
39# AUTOMATIC RULES
40# ===============
41#
42# The rules are pre-determined and use no user-defined data.
43#
44# To enable a rule set it 1, to disable set it to 0.
45#
46# Note: if the 'enable_all_options' is set to 1 then the following lines
47# will be ignored (i.e. they will be run as if they were set to 1).
48#
49
50# Rule #A1 - Remove "New $title :" from <sub-title>.
51remove_duplicated_new_title_in_ep = 1
52
53# Rule #A2 - Remove duplicated programme title *and* episode from <sub-title>.
54remove_duplicated_title_and_ep_in_ep = 1
55
56# Rule #A3 - Remove duplicated programme title from <sub-title>.
57remove_duplicated_title_in_ep = 1
58
59# Rule #A4 -
60update_premiere_repeat_flags_from_desc = 1
61
62# Rule #A5 - Check for potential series, episode and part numbering in the title, episode and description fields.
63check_potential_numbering_in_text = 1
64
65# Rule #A5.1 - Extract series/episode numbering found in <title>.
66#  (requires #A5 enabled)
67#  may generate false matches so use this only if your data needs it
68extract_numbering_from_title = 0
69
70# Rule #A5.2 - Extract series/episode numbering found in <sub-title>.
71#  (requires #A5 enabled))
72#  may generate false matches so use this only if your data needs it
73extract_numbering_from_episode = 0
74
75# Rule #A5.3 - Extract series/episode numbering found in <desc>.
76#  (requires #A5 enabled)
77extract_numbering_from_desc = 1
78
79# Rule #A5.4 - If no <sub-title> then make one from "part" numbers.
80#  (requires #A5 enabled)
81make_episode_from_part_numbers = 1
82
83
84# USER RULES
85# ==========
86#
87# These rules use data contained within the 'fixup' rules file to control their action.
88#
89# You could disable a rule simply by not having any entries in the rules file,
90# but this provides a convenient way to switch on/off any particular rule.
91#
92# The corollary is, to action an particular rule type, you must have some
93# relevant rules of the type in the rules file, *and* you must enable the
94# option below (or enable the 'all' option above)
95#
96# Note: if the 'enable_all_options' is set to 1 then the following lines
97# will be ignored (i.e. they will be run as if they were set to 1).
98#
99
100# Rule #user - Process programme against user-defined fixups
101# If you disable this option (by setting to 0) then none of the user rules
102# will be actioned (irrespective of whether you have them set to 1 or 0)
103#
104process_user_rules = 1
105
106# Rule #1 - Remove specified non-title text from <title>.
107process_non_title_info = 1
108
109# Rule #2 - Extract sub-title from <title>.
110process_mixed_title_subtitle = 1
111
112# Rule #3 - Extract sub-title from <title>.
113process_mixed_subtitle_title = 1
114
115# Rule #4 - Reverse <title> and <sub-title>
116process_reversed_title_subtitle = 1
117
118# Rule #5 - Replace <title> with supplied text.
119process_replacement_titles = 1
120
121# Rule #6 - Replace <category> with supplied text.
122process_replacement_genres = 1
123
124# Rule #7 - Replace <sub-title> with supplied text.
125process_replacement_episodes = 1
126
127# Rule #8 - Replace specified <title> / <sub-title> with title/episode pair supplied.
128process_replacement_titles_episodes = 1
129
130# Rule #9 - Replace <sub-title> with supplied text when the <desc> matches that given.
131process_replacement_ep_from_desc = 1
132
133# Rule #10 - Replace specified <title> / <sub-title> with title/episode pair supplied using <desc>.
134process_replacement_titles_desc = 1
135
136# Rule #11 - Promote demoted title from <sub-title> to <title>.
137process_demoted_titles = 1
138
139# Rule #12 - Replace "Film"/"Films" <category> with supplied text.
140process_replacement_film_genres = 1
141
142# Rule #13 - Remove specified text from <sub-title> for a given <title>.
143process_subtitle_remove_text = 1
144
145# Rule #14 - Replace specified categories with another value
146process_translate_genres = 1
147
148# Rule #15 - Add specified categories to all programmes on a channel
149process_add_genres_to_channel = 1
150
151
152
153
154