Fix channel logo migration (#32)

* fix channel logo migration

* add onscreen episode-num to epg

* bump log level for nfo parse failures
This commit is contained in:
Jason Dove
2021-02-28 19:15:02 +00:00
committed by GitHub
parent f392bab118
commit 9568a0e22f
3 changed files with 11 additions and 4 deletions
+5
View File
@@ -108,6 +108,11 @@ namespace ErsatzTV.Core.Iptv
xml.WriteAttributeString("system", "xmltv_ns");
xml.WriteString($"{s - 1}.{e - 1}.0/1");
xml.WriteEndElement(); // episode-num
xml.WriteStartElement("episode-num");
xml.WriteAttributeString("system", "onscreen");
xml.WriteString($"S{s:00}E{e:00}");
xml.WriteEndElement(); // episode-num
}
}
@@ -218,7 +218,7 @@ namespace ErsatzTV.Core.Metadata
}
catch (Exception ex)
{
_logger.LogDebug(ex, "Failed to read TV show nfo metadata from {Path}", nfoFileName);
_logger.LogInformation(ex, "Failed to read TV show nfo metadata from {Path}", nfoFileName);
return None;
}
}
@@ -246,7 +246,7 @@ namespace ErsatzTV.Core.Metadata
}
catch (Exception ex)
{
_logger.LogDebug(ex, "Failed to read TV episode nfo metadata from {Path}", nfoFileName);
_logger.LogInformation(ex, "Failed to read TV episode nfo metadata from {Path}", nfoFileName);
return FallbackMetadataProvider.GetFallbackMetadata(episode);
}
}
@@ -273,7 +273,7 @@ namespace ErsatzTV.Core.Metadata
}
catch (Exception ex)
{
_logger.LogDebug(ex, "Failed to read Movie nfo metadata from {Path}", nfoFileName);
_logger.LogInformation(ex, "Failed to read Movie nfo metadata from {Path}", nfoFileName);
return FallbackMetadataProvider.GetFallbackMetadata(mediaItem);
}
}