feat: set e# and logging
This commit is contained in:
@@ -67,8 +67,10 @@ namespace Jellyfin.Plugin.TubeArchivistMetadata.Providers
|
|||||||
});
|
});
|
||||||
result.HasMetadata = true;
|
result.HasMetadata = true;
|
||||||
result.Item = video.ToEpisode();
|
result.Item = video.ToEpisode();
|
||||||
|
result.Item.Path = info.Path;
|
||||||
result.Provider = Name;
|
result.Provider = Name;
|
||||||
result.People = peopleInfo;
|
result.People = peopleInfo;
|
||||||
|
_logger.LogInformation("{Message}", "Result of video to episode: \n" + JsonConvert.SerializeObject(result));
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ namespace Jellyfin.Plugin.TubeArchivistMetadata.TubeArchivist
|
|||||||
if (response.IsSuccessStatusCode)
|
if (response.IsSuccessStatusCode)
|
||||||
{
|
{
|
||||||
string rawData = await response.Content.ReadAsStringAsync().ConfigureAwait(true);
|
string rawData = await response.Content.ReadAsStringAsync().ConfigureAwait(true);
|
||||||
|
_logger.LogInformation("{Message}", url + ": " + rawData);
|
||||||
channel = JsonConvert.DeserializeObject<Channel>(rawData);
|
channel = JsonConvert.DeserializeObject<Channel>(rawData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using Jellyfin.Plugin.TubeArchivistMetadata.Utilities;
|
using Jellyfin.Plugin.TubeArchivistMetadata.Utilities;
|
||||||
using MediaBrowser.Controller.Entities;
|
using MediaBrowser.Controller.Entities;
|
||||||
@@ -124,8 +125,9 @@ namespace Jellyfin.Plugin.TubeArchivistMetadata.TubeArchivist
|
|||||||
{
|
{
|
||||||
Name = Title,
|
Name = Title,
|
||||||
Overview = Utils.FormatDescription(Description),
|
Overview = Utils.FormatDescription(Description),
|
||||||
SeasonName = Published.Year.ToString(CultureInfo.CurrentCulture),
|
// SeasonName = Published.Year.ToString(CultureInfo.CurrentCulture),
|
||||||
ParentIndexNumber = Published.Year,
|
ParentIndexNumber = Published.Year,
|
||||||
|
IndexNumber = (Published.Year * 10000) + (Published.Month * 100) + Published.Day,
|
||||||
SeriesName = Channel.Name,
|
SeriesName = Channel.Name,
|
||||||
ProductionYear = Published.Year,
|
ProductionYear = Published.Year,
|
||||||
PremiereDate = Published,
|
PremiereDate = Published,
|
||||||
|
|||||||
Reference in New Issue
Block a user