diff --git a/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/AbstractYoutubeRemoteProvider.cs b/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/AbstractYoutubeRemoteProvider.cs index 6947354..1e5210a 100644 --- a/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/AbstractYoutubeRemoteProvider.cs +++ b/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/AbstractYoutubeRemoteProvider.cs @@ -126,7 +126,7 @@ public virtual async Task> GetMetadata(E info, CancellationTok var id = GetYTID(info.Path); if (string.IsNullOrWhiteSpace(id)) { - _logger.LogInformation("YTDL GetMetadata: Youtube ID not found in filename of title: {info.Name}", info.Name); + _logger.LogInformation("YTDL GetMetadata: Youtube ID not found in filename of title: {Name}", info.Name); result.HasMetadata = false; return result; } diff --git a/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLEpisodeProvider.cs b/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLEpisodeProvider.cs index 23d5914..5ddbbf2 100644 --- a/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLEpisodeProvider.cs +++ b/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLEpisodeProvider.cs @@ -30,7 +30,7 @@ internal async override Task GetAndCacheMetadata( IServerApplicationPaths appPaths, CancellationToken cancellationToken) { - _logger.LogDebug("YTDLEpisodeProvider: GetAndCacheMetadata ", id); + _logger.LogDebug("YTDLEpisodeProvider: GetAndCacheMetadata {Id}", id); await Utils.YTDLMetadata(id, appPaths, cancellationToken); } } diff --git a/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLImageProvider.cs b/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLImageProvider.cs index 4475e6e..33b0171 100644 --- a/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLImageProvider.cs +++ b/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLImageProvider.cs @@ -63,14 +63,14 @@ public async Task> GetImages(BaseItem item, Cancell var id = Utils.GetYTID(item.FileNameWithoutExtension); if (string.IsNullOrWhiteSpace(id)) { - _logger.LogDebug("YTDLImage GetImages: Youtube ID not found in filename of title: {item.Name}", item.Name); + _logger.LogDebug("YTDLImage GetImages: Youtube ID not found in filename of title: {Name}", item.Name); return result; } var ytPath = Utils.GetVideoInfoPath(_config.ApplicationPaths, id); var fileInfo = _fileSystem.GetFileSystemInfo(ytPath); if (!(Utils.IsFresh(fileInfo))) { - _logger.LogDebug("YTDLImage GetImages: {item.Name} is not fresh.", item.Name); + _logger.LogDebug("YTDLImage GetImages: {Name} is not fresh.", item.Name); await Utils.YTDLMetadata(id, _config.ApplicationPaths, cancellationToken); } var path = Utils.GetVideoInfoPath(_config.ApplicationPaths, id); @@ -96,7 +96,7 @@ public async Task> GetImages(BaseItem item, Cancell /// public async Task GetImageResponse(string url, CancellationToken cancellationToken) { - _logger.LogDebug("YTDLImage GetImages: GetImageResponse ", url); + _logger.LogDebug("YTDLImage GetImages: GetImageResponse {Url}", url); var httpClient = Plugin.Instance.GetHttpClient(); return await httpClient.GetAsync(url, cancellationToken).ConfigureAwait(false); } diff --git a/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLSeriesImageProvider.cs b/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLSeriesImageProvider.cs index 28384a2..7da8fd3 100644 --- a/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLSeriesImageProvider.cs +++ b/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLSeriesImageProvider.cs @@ -64,7 +64,7 @@ public async Task> GetImages(BaseItem item, Cancell var name = item.Name; if (string.IsNullOrWhiteSpace(name)) { - _logger.LogDebug("YTDLSeriesImage GetImages: Youtube ID not found in Item: {item.Name}", item.Name); + _logger.LogDebug("YTDLSeriesImage GetImages: Youtube ID not found in Item: {Name}", item.Name); return result; } var ytPath = Utils.GetVideoInfoPath(_config.ApplicationPaths, name); diff --git a/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLSeriesProvider.cs b/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLSeriesProvider.cs index 09f7205..7d64e63 100644 --- a/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLSeriesProvider.cs +++ b/Jellyfin.Plugin.YoutubeMetadata/Providers/YoutubeDL/YTDLSeriesProvider.cs @@ -42,7 +42,7 @@ public override async Task> GetMetadata(SeriesInfo info, var name = info.Name; if (string.IsNullOrWhiteSpace(name)) { - _logger.LogDebug("YTDLSeries GetMetadata: No name found for media: ", info.Path); + _logger.LogDebug("YTDLSeries GetMetadata: No name found for media: {Path}", info.Path); result.HasMetadata = false; return result; } @@ -51,7 +51,7 @@ public override async Task> GetMetadata(SeriesInfo info, _logger.LogDebug("YTDLSeries GetMetadata: FileInfo: {Path} ", fileInfo.Name); if (!IsFresh(fileInfo)) { - _logger.LogDebug("YTDLSeries GetMetadata: {info.Name} is not fresh.", fileInfo.Name); + _logger.LogDebug("YTDLSeries GetMetadata: {Name} is not fresh.", fileInfo.Name); await this.GetAndCacheMetadata(name, this._config.ApplicationPaths, cancellationToken); } var video = ReadYTDLInfo(ytPath, cancellationToken);