support more formats for show fallback metadata (#1514)

This commit is contained in:
Jason Dove
2023-11-21 15:52:25 -06:00
committed by GitHub
parent d310b5c09d
commit 9dabffbac1
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Add `language_tag` and `seconds` fields to search index - Add `language_tag` and `seconds` fields to search index
- Allow synchronizing Plex `TV Show` libraries that use `Personal Media Shows` agent - Allow synchronizing Plex `TV Show` libraries that use `Personal Media Shows` agent
- Include Noto CJK Fonts in docker images to support those characters in generated subtitles like songs and music video credits - Include Noto CJK Fonts in docker images to support those characters in generated subtitles like songs and music video credits
- Support show fallback metadata with folder names like `Show.Name(1992)`
### Fixed ### Fixed
- Fix playout bug that caused some schedule items with fixed start times to be pushed to the next day - Fix playout bug that caused some schedule items with fixed start times to be pushed to the next day
@@ -350,7 +350,7 @@ public partial class FallbackMetadataProvider : IFallbackMetadataProvider
{ {
try try
{ {
const string PATTERN = @"^(.*?)[\s.]+?[.\(](\d{4})[.\)].*$"; const string PATTERN = @"^(.*?)[\s.]*?[.\(](\d{4})[.\)].*$";
Match match = Regex.Match(fileName, PATTERN); Match match = Regex.Match(fileName, PATTERN);
if (match.Success) if (match.Success)
{ {