<commit_before># hmt-rename
Script to rename Humax HDR-Fox T2 recordings based on HMT and online metadata

## Usage

	hmt-rename.pl <file>

Where <file> is a file path to the .ts recording, one of the sidecar files, or the base filename without the extension.
Example: hmt-rename.pl /video/Ambassadors/Ambassadors_20131106_2101.hmt
Example: hmt-rename.pl /video/Ambassadors/Ambassadors_20131106_2101
Example: hmt-rename.pl /video/Ambassadors/Ambassadors_20131106_2101.ts

## Action

The script will parse the .hmt file, extract the title, episode number and episode name if possible, and query TheTVDB for metadata that the .hmt file does not have (e.g. season number). Files will be renamed like:
	<seriesname>.S<seasonnum>E<episodenum>.<episodename>.ts
For example:<commit_msg>More docs<commit_after># hmt-rename
Script to rename Humax HDR-Fox T2 recordings based on HMT and online metadata

## Usage

	hmt-rename.pl <file>

Where &lt;file&gt; is a file path to the .ts recording, one of the sidecar files, or the base filename without the extension.

Examples:

	hmt-rename.pl /video/Ambassadors/Ambassadors_20131106_2101.hmt
	hmt-rename.pl /video/Ambassadors/Ambassadors_20131106_2101
	hmt-rename.pl /video/Ambassadors/Ambassadors_20131106_2101.ts

## Action

The script will parse the .hmt file, extract the title, episode number and episode name if possible, and query TheTVDB for metadata that the .hmt file does not have (e.g. season number). Files will be renamed like:

	<seriesname>.S<seasonnum>E<episodenum>.<episodename>.ts

For example:

{'fraction_non_alphanumeric': 0.08123791102514506, 'fraction_numerical': 0.04771115409413282, 'mean_word_length': 4.834586466165414, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5052794', 'n_tokens_mistral': 587, 'n_tokens_neox': 506, 'n_words': 178}