Browse Source

support more formats for show fallback metadata (#1514)

pull/1515/head
Jason Dove 2 years ago committed by GitHub
parent
commit
9dabffbac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      ErsatzTV.Core/Metadata/FallbackMetadataProvider.cs

1
CHANGELOG.md

@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -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
- 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
- Support show fallback metadata with folder names like `Show.Name(1992)`
### Fixed
- Fix playout bug that caused some schedule items with fixed start times to be pushed to the next day

2
ErsatzTV.Core/Metadata/FallbackMetadataProvider.cs

@ -350,7 +350,7 @@ public partial class FallbackMetadataProvider : IFallbackMetadataProvider @@ -350,7 +350,7 @@ public partial class FallbackMetadataProvider : IFallbackMetadataProvider
{
try
{
const string PATTERN = @"^(.*?)[\s.]+?[.\(](\d{4})[.\)].*$";
const string PATTERN = @"^(.*?)[\s.]*?[.\(](\d{4})[.\)].*$";
Match match = Regex.Match(fileName, PATTERN);
if (match.Success)
{

Loading…
Cancel
Save