mmmmmtasty / SportScanner

Scanner and Metadata Agent for Plex that uses sportdb
115 stars 31 forks source link

Episode number hash override and text appended to title via metadata file #29

Closed Nielk1 closed 3 years ago

Nielk1 commented 5 years ago

I closed my other pull request and shifted to a feature branch so my other improvement can be considered separately without issue.

This is a change I made for my own personal use but I wanted to offer it back to the main code base. You can close this request without comment if you would not like to include this feature. I am not specifically a python developer but I have tested this code to ensure it operates properly in the conditions I've run into.

This change allows for a metadata file with the .SportScanner extension to override the hash portion of the episode number in the scanner and dynamically append to the title of the event in the metadata agent. I utilize this to handle events split into multiple portions, such as the pre and post game shows, preserving their order and adding context to the title as needed. The file is two lines of text (or less) where the first line is the override episode number and the second line is the text to be appended to the title.