Skip to content

Script to rename Humax HDR-Fox T2 recordings based on HMT and online metadata

License

Notifications You must be signed in to change notification settings

andyjenkinson/hmt-rename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

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.

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:

Ambassadors.S01E01.The Rabbit Never Escapes.ts

Dependencies

Note: The Perl module requires an API key from TVDB, this must be installed in your home directory (~/.tvdb). Note also that if you are trying to install from CPAN, there is a bug which means it will not build properly (the package is missing the tools/generate-languages.pl script). I recommend you download and install it from github (https://github.com/gitpan/WebService-TVDB).

Limitations

  • Assumes that files are TV series episodes.
  • Makes assumptions about the Freeview EPG data present. Namely that there is a Title field with the name of the Programme (e.g. Ambassadors), and that the synopsis field looks like:
1/3: Episode title. The rest of the episide description

About

Script to rename Humax HDR-Fox T2 recordings based on HMT and online metadata

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages