From 8404b85624981626867959d7c693c29f2242309f Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 14 Apr 2023 05:58:23 +0300 Subject: [PATCH] Fixed: (AnimeBytes) API responds now with `size` as integer --- .../Files/Indexers/AnimeBytes/recentfeed.json | 90 +++++++++---------- .../Indexers/Definitions/AnimeBytes.cs | 2 +- 2 files changed, 46 insertions(+), 46 deletions(-) diff --git a/src/NzbDrone.Core.Test/Files/Indexers/AnimeBytes/recentfeed.json b/src/NzbDrone.Core.Test/Files/Indexers/AnimeBytes/recentfeed.json index 2e56ec27a..4a2549c66 100644 --- a/src/NzbDrone.Core.Test/Files/Indexers/AnimeBytes/recentfeed.json +++ b/src/NzbDrone.Core.Test/Files/Indexers/AnimeBytes/recentfeed.json @@ -75,7 +75,7 @@ "FileList": [ { "filename": "[Polarwindz] Cowboy Bebop The Movie - Knockin' on Heaven's Door [BD 1080p x265 10bit Opus 5.1].mkv", - "size": "13090646841" + "size": 13090646841 } ], "UploadTime": "2023-04-02 05:00:43" @@ -98,7 +98,7 @@ "FileList": [ { "filename": "Cowboy Bebop - Tengoku no Tobira.mkv", - "size": "15717521349" + "size": 15717521349 } ], "UploadTime": "2020-09-03 18:04:38" @@ -173,87 +173,87 @@ "FileList": [ { "filename": "[GHOST][1080p] Bleach - 021 [BD HEVC 10bit Dual Audio AC3][035452C3].mkv", - "size": "880693454" + "size": 880693454 }, { "filename": "[GHOST][1080p] Bleach - 022 [BD HEVC 10bit Dual Audio AC3][0E923AAD].mkv", - "size": "851531918" + "size": 851531918 }, { "filename": "[GHOST][1080p] Bleach - 023 [BD HEVC 10bit Dual Audio AC3][604A0EC6].mkv", - "size": "882518038" + "size": 882518038 }, { "filename": "[GHOST][1080p] Bleach - 024 [BD HEVC 10bit Dual Audio AC3][ABABE9B3].mkv", - "size": "837335522" + "size": 837335522 }, { "filename": "[GHOST][1080p] Bleach - 025 [BD HEVC 10bit Dual Audio AC3][17AEB0C1].mkv", - "size": "933034706" + "size": 933034706 }, { "filename": "[GHOST][1080p] Bleach - 026 [BD HEVC 10bit Dual Audio AC3][E6F0017C].mkv", - "size": "891916996" + "size": 891916996 }, { "filename": "[GHOST][1080p] Bleach - 027 [BD HEVC 10bit Dual Audio AC3][317791C7].mkv", - "size": "896856044" + "size": 896856044 }, { "filename": "[GHOST][1080p] Bleach - 028 [BD HEVC 10bit Dual Audio AC3][5CA4DF06].mkv", - "size": "1010510386" + "size": 1010510386 }, { "filename": "[GHOST][1080p] Bleach - 029 [BD HEVC 10bit Dual Audio AC3][549CF25A].mkv", - "size": "995648398" + "size": 995648398 }, { "filename": "[GHOST][1080p] Bleach - 030 [BD HEVC 10bit Dual Audio AC3][CED479F9].mkv", - "size": "991633973" + "size": 991633973 }, { "filename": "[GHOST][1080p] Bleach - 031 [BD HEVC 10bit Dual Audio AC3][1EEFAB0E].mkv", - "size": "950195341" + "size": 950195341 }, { "filename": "[GHOST][1080p] Bleach - 032 [BD HEVC 10bit Dual Audio AC3][C6F3C39A].mkv", - "size": "859218784" + "size": 859218784 }, { "filename": "[GHOST][1080p] Bleach - 033 [BD HEVC 10bit Dual Audio AC3][A8424897].mkv", - "size": "933230823" + "size": 933230823 }, { "filename": "[GHOST][1080p] Bleach - 034 [BD HEVC 10bit Dual Audio AC3][96C94DB8].mkv", - "size": "818179634" + "size": 818179634 }, { "filename": "[GHOST][1080p] Bleach - 035 [BD HEVC 10bit Dual Audio AC3][A07831AE].mkv", - "size": "882457138" + "size": 882457138 }, { "filename": "[GHOST][1080p] Bleach - 036 [BD HEVC 10bit Dual Audio AC3][D984C169].mkv", - "size": "895683290" + "size": 895683290 }, { "filename": "[GHOST][1080p] Bleach - 037 [BD HEVC 10bit Dual Audio AC3][32C05A7E].mkv", - "size": "970033716" + "size": 970033716 }, { "filename": "[GHOST][1080p] Bleach - 038 [BD HEVC 10bit Dual Audio AC3][824B3EEC].mkv", - "size": "956573899" + "size": 956573899 }, { "filename": "[GHOST][1080p] Bleach - 039 [BD HEVC 10bit Dual Audio AC3][A45233DF].mkv", - "size": "1238240707" + "size": 1238240707 }, { "filename": "[GHOST][1080p] Bleach - 040 [BD HEVC 10bit Dual Audio AC3][5334A7F1].mkv", - "size": "894491562" + "size": 894491562 }, { "filename": "[GHOST][1080p] Bleach - 041 [BD HEVC 10bit Dual Audio AC3][A4F17363].mkv", - "size": "1014959456" + "size": 1014959456 } ], "UploadTime": "2023-03-03 03:03:17" @@ -276,91 +276,91 @@ "FileList": [ { "filename": "[GHOST][1080p] Bleach - 042 [BD HEVC 10bit Dual Audio AC3][55763BF6].mkv", - "size": "899825828" + "size": 899825828 }, { "filename": "[GHOST][1080p] Bleach - 043 [BD HEVC 10bit Dual Audio AC3][70B71ECC].mkv", - "size": "902256094" + "size": 902256094 }, { "filename": "[GHOST][1080p] Bleach - 044 [BD HEVC 10bit Dual Audio AC3][35F5526B].mkv", - "size": "885323344" + "size": 885323344 }, { "filename": "[GHOST][1080p] Bleach - 045 [BD HEVC 10bit Dual Audio AC3][9C1DAE4E].mkv", - "size": "1082465042" + "size": 1082465042 }, { "filename": "[GHOST][1080p] Bleach - 046 [BD HEVC 10bit Dual Audio AC3][869EF5B6].mkv", - "size": "957433930" + "size": 957433930 }, { "filename": "[GHOST][1080p] Bleach - 047 [BD HEVC 10bit Dual Audio AC3][890DA7CE].mkv", - "size": "997124540" + "size": 997124540 }, { "filename": "[GHOST][1080p] Bleach - 048 [BD HEVC 10bit Dual Audio AC3][39064E08].mkv", - "size": "1026751383" + "size": 1026751383 }, { "filename": "[GHOST][1080p] Bleach - 049 [BD HEVC 10bit Dual Audio AC3][C536D3DB].mkv", - "size": "994918391" + "size": 994918391 }, { "filename": "[GHOST][1080p] Bleach - 050 [BD HEVC 10bit Dual Audio AC3][A7A0CB24].mkv", - "size": "1141146920" + "size": 1141146920 }, { "filename": "[GHOST][1080p] Bleach - 051 [BD HEVC 10bit Dual Audio AC3][25C06D9D].mkv", - "size": "951751791" + "size": 951751791 }, { "filename": "[GHOST][1080p] Bleach - 052 [BD HEVC 10bit Dual Audio AC3][FB506194].mkv", - "size": "1131756065" + "size": 1131756065 }, { "filename": "[GHOST][1080p] Bleach - 053 [BD HEVC 10bit Dual Audio AC3][4A76C66D].mkv", - "size": "1076952986" + "size": 1076952986 }, { "filename": "[GHOST][1080p] Bleach - 054 [BD HEVC 10bit Dual Audio AC3][51D8E5F8].mkv", - "size": "1369454462" + "size": 1369454462 }, { "filename": "[GHOST][1080p] Bleach - 055 [BD HEVC 10bit Dual Audio AC3][DCF20007].mkv", - "size": "1428073116" + "size": 1428073116 }, { "filename": "[GHOST][1080p] Bleach - 056 [BD HEVC 10bit Dual Audio AC3][34A28687].mkv", - "size": "1304804717" + "size": 1304804717 }, { "filename": "[GHOST][1080p] Bleach - 057 [BD HEVC 10bit Dual Audio AC3][D1D5FE29].mkv", - "size": "1056220730" + "size": 1056220730 }, { "filename": "[GHOST][1080p] Bleach - 058 [BD HEVC 10bit Dual Audio AC3][C6EAC278].mkv", - "size": "1551455953" + "size": 1551455953 }, { "filename": "[GHOST][1080p] Bleach - 059 [BD HEVC 10bit Dual Audio AC3][E7B25869].mkv", - "size": "1026910923" + "size": 1026910923 }, { "filename": "[GHOST][1080p] Bleach - 060 [BD HEVC 10bit Dual Audio AC3][C9D257D4].mkv", - "size": "1059631177" + "size": 1059631177 }, { "filename": "[GHOST][1080p] Bleach - 061 [BD HEVC 10bit Dual Audio AC3][0521C8D3].mkv", - "size": "1457893287" + "size": 1457893287 }, { "filename": "[GHOST][1080p] Bleach - 062 [BD HEVC 10bit Dual Audio AC3][65CBA616].mkv", - "size": "1262863946" + "size": 1262863946 }, { "filename": "[GHOST][1080p] Bleach - 063 [BD HEVC 10bit Dual Audio AC3][CF63E244].mkv", - "size": "933523434" + "size": 933523434 } ], "UploadTime": "2023-04-03 03:14:35" diff --git a/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs b/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs index fd2c0896c..25af9354f 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/AnimeBytes.cs @@ -742,7 +742,7 @@ namespace NzbDrone.Core.Indexers.Definitions public string FileName { get; set; } [JsonProperty("size")] - public string FileSize { get; set; } + public long FileSize { get; set; } } public class AnimeBytesEditionData