#
# Sample configuration file for tv_augment
#
# This file controls which augmentation rules are applied to the input XMLTV file
#
#
# It also controls what reporting is printed in the program's output log file.
#
# Set an option to 1 to enable it, 0 to disable.
#


# If specified, then this language code will be written to e.g. <credit> elements
language_code = en

# Set the following values to have XMLTV::Augment automatically fetch a file
# from the grabber's repository using XMLTV::Supplement
use_supplement = 0
supplement_grabber_name = tv_grab_uk_tvguide
supplement_grabber_file = prog_titles_to_process




###############################################################################
#
# RULES
# =====
#
# The option called 'enable_all_options' is a 'super-option' to quickly turn
# on or off ALL automatic and user rules. If this is set then ALL individual
# options are ignored.
#
enable_all_options = 0


# AUTOMATIC RULES
# ===============
#
# The rules are pre-determined and use no user-defined data.
#
# To enable a rule set it 1, to disable set it to 0.
#
# Note: if the 'enable_all_options' is set to 1 then the following lines
# will be ignored (i.e. they will be run as if they were set to 1).
#

# Rule #A1 - Remove "New $title :" from <sub-title>.
remove_duplicated_new_title_in_ep = 1

# Rule #A2 - Remove duplicated programme title *and* episode from <sub-title>.
remove_duplicated_title_and_ep_in_ep = 1

# Rule #A3 - Remove duplicated programme title from <sub-title>.
remove_duplicated_title_in_ep = 1

# Rule #A4 -
update_premiere_repeat_flags_from_desc = 1

# Rule #A5 - Check for potential series, episode and part numbering in the title, episode and description fields.
check_potential_numbering_in_text = 1
# Update existing programme numbering if extracted from title/episode/part
update_existing_numbering = 0

# Rule #A5.1 - Extract series/episode numbering found in <title>.
#  (requires #A5 enabled)
#  may generate false matches so use this only if your data needs it
extract_numbering_from_title = 0

# Rule #A5.2 - Extract series/episode numbering found in <sub-title>.
#  (requires #A5 enabled))
#  may generate false matches so use this only if your data needs it
extract_numbering_from_episode = 0

# Rule #A5.3 - Extract series/episode numbering found in <desc>.
#  (requires #A5 enabled)
extract_numbering_from_desc = 1

# Rule #A5.4 - If no <sub-title> then make one from "part" numbers.
#  (requires #A5 enabled)
make_episode_from_part_numbers = 1


# USER RULES
# ==========
#
# These rules use data contained within the 'fixup' rules file to control their action.
#
# You could disable a rule simply by not having any entries in the rules file,
# but this provides a convenient way to switch on/off any particular rule.
#
# The corollary is, to action an particular rule type, you must have some
# relevant rules of the type in the rules file, *and* you must enable the
# option below (or enable the 'all' option above)
#
# Note: if the 'enable_all_options' is set to 1 then the following lines
# will be ignored (i.e. they will be run as if they were set to 1).
#

# Rule #user - Process programme against user-defined fixups
# If you disable this option (by setting to 0) then none of the user rules
# will be actioned (irrespective of whether you have them set to 1 or 0)
#
process_user_rules = 1

# Rule #1 - Remove specified non-title text from <title>.
process_non_title_info = 1

# Rule #2 - Extract sub-title from <title>.
process_mixed_title_subtitle = 1

# Rule #3 - Extract sub-title from <title>.
process_mixed_subtitle_title = 1

# Rule #4 - Reverse <title> and <sub-title>
process_reversed_title_subtitle = 1

# Rule #5 - Replace <title> with supplied text.
process_replacement_titles = 1

# Rule #6 - Replace <category> with supplied text.
process_replacement_genres = 1

# Rule #7 - Replace <sub-title> with supplied text.
process_replacement_episodes = 1

# Rule #8 - Replace specified <title> / <sub-title> with title/episode pair supplied.
process_replacement_titles_episodes = 1

# Rule #9 - Replace <sub-title> with supplied text when the <desc> matches that given.
process_replacement_ep_from_desc = 1

# Rule #10 - Replace specified <title> / <sub-title> with title/episode pair supplied using <desc>.
process_replacement_titles_desc = 1

# Rule #11 - Promote demoted title from <sub-title> to <title>.
process_demoted_titles = 1

# Rule #12 - Replace "Film"/"Films" <category> with supplied text.
process_replacement_film_genres = 1

# Rule #13 - Remove specified text from <sub-title> for a given <title>.
process_subtitle_remove_text = 1

# Rule #14 - Replace specified categories with another value
process_translate_genres = 1

# Rule #15 - Add specified categories to all programmes on a channel
process_add_genres_to_channel = 1

# Rule #16 - Remove episode numbering from a programme title
process_remove_numbering_from_programmes = 1


