Update Jellyfin.Plugin.Anime -> Jellyfin.Plugin.AniDB

This commit is contained in:
Odd Stråbø 2020-12-14 23:18:38 +01:00
parent b224a53f35
commit c0bd751c54
27 changed files with 43 additions and 39 deletions

View File

@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26730.3
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Plugin.Anime", "Jellyfin.Plugin.Anime\Jellyfin.Plugin.Anime.csproj", "{1363456E-55A2-4FC5-872D-97923FCD34F2}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Jellyfin.Plugin.AniDB", "Jellyfin.Plugin.AniDB\Jellyfin.Plugin.AniDB.csproj", "{1363456E-55A2-4FC5-872D-97923FCD34F2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@ -5,7 +5,7 @@ using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
namespace Jellyfin.Plugin.Anime
namespace Jellyfin.Plugin.AniDB
{
public class AsyncSemaphore
{

View File

@ -1,6 +1,6 @@
using MediaBrowser.Model.Plugins;
namespace Jellyfin.Plugin.Anime.Configuration
namespace Jellyfin.Plugin.AniDB.Configuration
{
public enum TitlePreferenceType
{

View File

@ -1,4 +1,4 @@
namespace Jellyfin.Plugin.Anime
namespace Jellyfin.Plugin.AniDB
{
public static class Constants
{

View File

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace Jellyfin.Plugin.Anime
namespace Jellyfin.Plugin.AniDB
{
public static class DictionaryExtensions
{

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<RootNamespace>Jellyfin.Plugin.Anime</RootNamespace>
<RootNamespace>Jellyfin.Plugin.AniDB</RootNamespace>
<AssemblyVersion>11.0.0.0</AssemblyVersion>
<FileVersion>11.0.0.0</FileVersion>
</PropertyGroup>

View File

@ -2,8 +2,8 @@
using System.Collections.Generic;
using System.Net.Http;
using System.Net.Http.Headers;
using Jellyfin.Plugin.Anime.Configuration;
using Jellyfin.Plugin.Anime.Providers.AniDB.Identity;
using Jellyfin.Plugin.AniDB.Configuration;
using Jellyfin.Plugin.AniDB.Providers.AniDB.Identity;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Plugins;
using MediaBrowser.Common.Net;
@ -11,7 +11,7 @@ using MediaBrowser.Model.Plugins;
using MediaBrowser.Model.Serialization;
using Microsoft.Extensions.Logging;
namespace Jellyfin.Plugin.Anime
namespace Jellyfin.Plugin.AniDB
{
public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
{

View File

@ -4,7 +4,7 @@ using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Providers;
namespace Jellyfin.Plugin.Anime.Providers.AniDB
namespace Jellyfin.Plugin.AniDB.Providers.AniDB
{
public class AniDbExternalId : IExternalId
{

View File

@ -1,6 +1,6 @@
using System.Text.RegularExpressions;
namespace Jellyfin.Plugin.Anime.Providers.AniDB.Converter
namespace Jellyfin.Plugin.AniDB.Providers.AniDB.Converter
{
public struct AniDbEpisodeIdentity
{

View File

@ -1,6 +1,6 @@
using System;
namespace Jellyfin.Plugin.Anime.Providers.AniDB.Converter
namespace Jellyfin.Plugin.AniDB.Providers.AniDB.Converter
{
public struct TvdbEpisodeIdentity
{

View File

@ -4,11 +4,11 @@ using System.IO.Compression;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Jellyfin.Plugin.Anime.Providers.AniDB.Metadata;
using Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata;
using MediaBrowser.Common.Configuration;
using Microsoft.Extensions.Logging;
namespace Jellyfin.Plugin.Anime.Providers.AniDB.Identity
namespace Jellyfin.Plugin.AniDB.Providers.AniDB.Identity
{
/// <summary>
/// The AniDbTitleDownloader class downloads the anime titles file from AniDB and stores it.

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
using System.Xml;
using Microsoft.Extensions.Logging;
namespace Jellyfin.Plugin.Anime.Providers.AniDB.Identity
namespace Jellyfin.Plugin.AniDB.Providers.AniDB.Identity
{
/// <summary>
/// The <see cref="AniDbTitleMatcher"/> class loads series titles from the series.xml file in the application data anidb folder,

View File

@ -1,7 +1,7 @@
using System.Threading;
using System.Threading.Tasks;
namespace Jellyfin.Plugin.Anime.Providers.AniDB.Identity
namespace Jellyfin.Plugin.AniDB.Providers.AniDB.Identity
{
/// <summary>
/// The <see cref="IAniDbTitleDownloader"/> interface defines a type which can download anime titles and their AniDB IDs.

View File

@ -1,7 +1,7 @@
using System.Threading;
using System.Threading.Tasks;
namespace Jellyfin.Plugin.Anime.Providers.AniDB.Identity
namespace Jellyfin.Plugin.AniDB.Providers.AniDB.Identity
{
/// <summary>
/// The <see cref="IAniDbTitleMatcher"/> interface defines a type which can match series titles to AniDB IDs.

View File

@ -6,14 +6,14 @@ using System.IO;
using System.Threading;
using System.Threading.Tasks;
using System.Xml;
using Jellyfin.Plugin.Anime.Providers.AniDB.Converter;
using Jellyfin.Plugin.AniDB.Providers.AniDB.Converter;
using MediaBrowser.Common.Net;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Entities.TV;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Providers;
namespace Jellyfin.Plugin.Anime.Providers.AniDB.Metadata
namespace Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata
{
/// <summary>
/// The <see cref="AniDbEpisodeProvider" /> class provides episode metadata from AniDB.

View File

@ -15,7 +15,7 @@ using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Providers;
namespace Jellyfin.Plugin.Anime.Providers.AniDB.Metadata
namespace Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata
{
public class AniDbImageProvider : IRemoteImageProvider
{

View File

@ -9,7 +9,7 @@ using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Providers;
using Microsoft.Extensions.Logging;
namespace Jellyfin.Plugin.Anime.Providers.AniDB.Metadata
namespace Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata
{
public class AniDbMovieProvider : IRemoteMetadataProvider<Movie, MovieInfo>
{

View File

@ -1,4 +1,4 @@
namespace Jellyfin.Plugin.Anime.Providers.AniDB.Metadata
namespace Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata
{
public class AniDbPersonInfo
{

View File

@ -12,7 +12,7 @@ using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Providers;
namespace Jellyfin.Plugin.Anime.Providers.AniDB.Metadata
namespace Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata
{
public class AniDbPersonProvider : IRemoteMetadataProvider<Person, PersonLookupInfo>
{

View File

@ -9,7 +9,7 @@ using MediaBrowser.Controller.Entities.TV;
using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Providers;
namespace Jellyfin.Plugin.Anime.Providers.AniDB.Metadata
namespace Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata
{
public class AniDbSeasonProvider : IRemoteMetadataProvider<Season, SeasonInfo>
{

View File

@ -13,8 +13,8 @@ using System.Xml.Linq;
using System.Xml.Serialization;
using System.Net.Http;
using System.Net.Http.Headers;
using Jellyfin.Plugin.Anime.Configuration;
using Jellyfin.Plugin.Anime.Providers.AniDB.Identity;
using Jellyfin.Plugin.AniDB.Configuration;
using Jellyfin.Plugin.AniDB.Providers.AniDB.Identity;
using MediaBrowser.Common.Configuration;
using MediaBrowser.Common.Net;
using MediaBrowser.Controller.Entities;
@ -23,7 +23,7 @@ using MediaBrowser.Controller.Providers;
using MediaBrowser.Model.Entities;
using MediaBrowser.Model.Providers;
namespace Jellyfin.Plugin.Anime.Providers.AniDB.Metadata
namespace Jellyfin.Plugin.AniDB.Providers.AniDB.Metadata
{
public class AniDbSeriesProvider : IRemoteMetadataProvider<Series, SeriesInfo>, IHasOrder
{

View File

@ -2,10 +2,10 @@
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using Jellyfin.Plugin.Anime.Configuration;
using Jellyfin.Plugin.AniDB.Configuration;
using MediaBrowser.Controller.Entities.TV;
namespace Jellyfin.Plugin.Anime.Providers
namespace Jellyfin.Plugin.AniDB.Providers
{
public static class GenreHelper
{

View File

@ -1,10 +1,7 @@
namespace Jellyfin.Plugin.Anime.Providers
namespace Jellyfin.Plugin.AniDB.Providers
{
public class ProviderNames
{
public const string AniDb = "AniDB";
public const string AniList = "AniList";
public const string AniSearch = "AniSearch";
public const string KitsuIo = "Kitsu";
}
}

View File

@ -6,10 +6,10 @@ using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
using System.Xml.Linq;
using Jellyfin.Plugin.Anime.Providers.AniDB.Identity;
using Jellyfin.Plugin.AniDB.Providers.AniDB.Identity;
using Microsoft.Extensions.Logging;
namespace Jellyfin.Plugin.Anime.Providers
namespace Jellyfin.Plugin.AniDB.Providers
{
internal class Equals_check
{
@ -100,7 +100,7 @@ namespace Jellyfin.Plugin.Anime.Providers
}
return false;
}
/// <summary>
/// Cut p(%) away from the string
/// </summary>
@ -272,7 +272,7 @@ namespace Jellyfin.Plugin.Anime.Providers
var a_ = from page in doc.Elements("anime")
where _aid == page.Attribute("aid").Value
select page;
if (await Simple_compare(a_.Elements("title"), b, cancellationToken) && await Simple_compare(a_.Elements("title"), a, cancellationToken))
{
return _aid;

View File

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Jellyfin.Plugin.Anime
namespace Jellyfin.Plugin.AniDB
{
/// <summary>
/// The RateLimiter class attempts to regulate the rate at which an event occurs, by delaying

View File

@ -0,0 +1,7 @@
namespace Jellyfin.Plugin.AniDB.Providers
{
public class ProviderNames
{
public const string AniDb = "AniDB";
}
}

View File

@ -11,6 +11,6 @@ description: >
and options for organizing your collection.
category: "Metadata"
artifacts:
- "Jellyfin.Plugin.Anime.dll"
- "Jellyfin.Plugin.AniDB.dll"
changelog: >
changelog