Rebased. Fixed AniDB and added Async.

This commit is contained in:
Jun Jin Choong 2019-06-28 14:10:01 +09:00
parent 75c4eb4366
commit 5ff235f98e
3 changed files with 6 additions and 1 deletions

View File

@ -18,7 +18,7 @@ namespace Jellyfin.Plugin.Anime.Providers.AniDB.Identity
/// <summary>
/// The URL for retrieving a list of all anime titles and their AniDB IDs.
/// </summary>
private const string TitlesUrl = "http://anidb.net/api/animetitles.xml";
private const string TitlesUrl = "http://anidb.net/api/animetitles.xml.gz";
private readonly IApplicationPaths _paths;
private readonly ILogger _logger;

View File

@ -81,6 +81,7 @@ namespace Jellyfin.Plugin.Anime.Providers.AniDB.Metadata
{
var settings = new XmlReaderSettings
{
Async = true,
CheckCharacters = false,
IgnoreProcessingInstructions = true,
IgnoreComments = true,

View File

@ -144,6 +144,7 @@ namespace Jellyfin.Plugin.Anime.Providers.AniDB.Metadata
var series = result.Item;
var settings = new XmlReaderSettings
{
Async = true,
CheckCharacters = false,
IgnoreProcessingInstructions = true,
IgnoreComments = true,
@ -559,6 +560,7 @@ namespace Jellyfin.Plugin.Anime.Providers.AniDB.Metadata
{
var settings = new XmlReaderSettings
{
Async = true,
CheckCharacters = false,
IgnoreProcessingInstructions = true,
IgnoreComments = true,
@ -592,6 +594,7 @@ namespace Jellyfin.Plugin.Anime.Providers.AniDB.Metadata
{
var settings = new XmlReaderSettings
{
Async = true,
CheckCharacters = false,
IgnoreProcessingInstructions = true,
IgnoreComments = true,
@ -779,6 +782,7 @@ namespace Jellyfin.Plugin.Anime.Providers.AniDB.Metadata
{
var settings = new XmlReaderSettings
{
Async = true,
CheckCharacters = false,
IgnoreProcessingInstructions = true,
IgnoreComments = true,