Skip to content

Commit 4402640

Browse files
Merge pull request #73 from EraYaN/master
Update AniDB CDN url and move all URLs to https
2 parents 4bf9b43 + 56bb819 commit 4402640

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

Jellyfin.Plugin.Anime/Providers/AniDB/AniDbExternalId.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ public string Key
1717
=> ProviderNames.AniDb;
1818

1919
public string UrlFormatString
20-
=> "http://anidb.net/perl-bin/animedb.pl?show=anime&aid={0}";
20+
=> "https://anidb.net/perl-bin/animedb.pl?show=anime&aid={0}";
2121
}
2222
}

Jellyfin.Plugin.Anime/Providers/AniDB/Identity/AniDbTitleDownloader.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class AniDbTitleDownloader : IAniDbTitleDownloader
1818
/// <summary>
1919
/// The URL for retrieving a list of all anime titles and their AniDB IDs.
2020
/// </summary>
21-
private const string TitlesUrl = "http://anidb.net/api/anime-titles.xml.gz";
21+
private const string TitlesUrl = "https://anidb.net/api/anime-titles.xml.gz";
2222

2323
private static readonly HttpClient _httpClient;
2424
private readonly ILogger _logger;

Jellyfin.Plugin.Anime/Providers/AniDB/Metadata/AniDbImageProvider.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private async Task<string> FindImageUrl(string seriesDataPath)
9898
{
9999
if (reader.NodeType == XmlNodeType.Element && reader.Name == "picture")
100100
{
101-
return "http://img7.anidb.net/pics/anime/" + reader.ReadElementContentAsString();
101+
return "https://cdn.anidb.net/images/main/" + reader.ReadElementContentAsString();
102102
}
103103
}
104104
}

Jellyfin.Plugin.Anime/Providers/AniDB/Metadata/AniDbSeriesProvider.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ namespace Jellyfin.Plugin.Anime.Providers.AniDB.Metadata
2626
public class AniDbSeriesProvider : IRemoteMetadataProvider<Series, SeriesInfo>, IHasOrder
2727
{
2828
private const string SeriesDataFile = "series.xml";
29-
private const string SeriesQueryUrl = "http://api.anidb.net:9001/httpapi?request=anime&client={0}&clientver=1&protover=1&aid={1}";
29+
private const string SeriesQueryUrl = "https://api.anidb.net:9001/httpapi?request=anime&client={0}&clientver=1&protover=1&aid={1}";
3030
private const string ClientName = "mediabrowser";
3131

3232
// AniDB has very low request rate limits, a minimum of 2 seconds between requests, and an average of 4 seconds between requests
3333
public static readonly RateLimiter RequestLimiter = new RateLimiter(TimeSpan.FromSeconds(3), TimeSpan.FromSeconds(5), TimeSpan.FromMinutes(5));
3434
private static readonly int[] IgnoredTagIds = { 6, 22, 23, 60, 128, 129, 185, 216, 242, 255, 268, 269, 289 };
35-
private static readonly Regex AniDbUrlRegex = new Regex(@"http://anidb.net/\w+ \[(?<name>[^\]]*)\]");
35+
private static readonly Regex AniDbUrlRegex = new Regex(@"https?://anidb.net/\w+ \[(?<name>[^\]]*)\]");
3636
private readonly IApplicationPaths _appPaths;
3737
private readonly IHttpClient _httpClient;
3838

@@ -711,7 +711,7 @@ private static IEnumerable<AniDbPersonInfo> ParseCharacterList(string xml)
711711
var picture = seiyuu.Attribute("picture");
712712
if (picture != null && !string.IsNullOrEmpty(picture.Value))
713713
{
714-
person.Image = "http://img7.anidb.net/pics/anime/" + picture.Value;
714+
person.Image = "https://cdn.anidb.net/images/main/" + picture.Value;
715715
}
716716

717717
var id = seiyuu.Attribute("id");

Jellyfin.Plugin.Anime/Providers/AniList/AniListExternalId.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ public string Key
1616
=> ProviderNames.AniList;
1717

1818
public string UrlFormatString
19-
=> "http://anilist.co/anime/{0}/";
19+
=> "https://anilist.co/anime/{0}/";
2020
}
2121
}

Jellyfin.Plugin.Anime/Providers/AniSearch/AniSearchApi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
namespace Jellyfin.Plugin.Anime.Providers.AniSearch
1212
{
1313
/// <summary>
14-
/// API for http://anisearch.com
14+
/// API for https://anisearch.com
1515
/// Anisearch does not have an API interface to work with
1616
/// </summary>
1717
internal class AniSearchApi

Jellyfin.Plugin.Anime/Providers/AniSearch/AniSearchExternalId.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ public string Key
1616
=> ProviderNames.AniSearch;
1717

1818
public string UrlFormatString
19-
=> "http://www.anisearch.com/anime/{0}";
19+
=> "https://www.anisearch.com/anime/{0}";
2020
}
2121
}

0 commit comments

Comments
 (0)