From 6ebeb7c35e4a91b5a2a60da3256370a3dd3b9615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Seery?= Date: Sat, 25 Jan 2020 21:13:06 -0300 Subject: [PATCH 1/2] Fixed natsuki --- lib/services/requests.dart | 2 +- web/api/get-natsuki.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/services/requests.dart b/lib/services/requests.dart index 4310d35..80d28a8 100644 --- a/lib/services/requests.dart +++ b/lib/services/requests.dart @@ -191,7 +191,7 @@ class RequestsService { options: Options(contentType: 'text/plain'), ); - return response.data; + return response.data['file']; } catch (e, s) { ErrorService.report(e, s); return null; diff --git a/web/api/get-natsuki.ts b/web/api/get-natsuki.ts index fa46cfb..782bcf0 100644 --- a/web/api/get-natsuki.ts +++ b/web/api/get-natsuki.ts @@ -4,5 +4,5 @@ import cloudscraper from "cloudscraper"; export default (req: NowRequest, res: NowResponse) => { cloudscraper .get(req.body.replace("embed.php", "check.php")) - .then(data => res.send(JSON.parse(data).file)); + .then(data => res.send(JSON.parse(data))); }; From d6edebc145bf6f130d1f529aef9bcfce22b12864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Seery?= Date: Sat, 25 Jan 2020 21:13:47 -0300 Subject: [PATCH 2/2] Bump-it! --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 9219619..5833a46 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -11,7 +11,7 @@ description: Ver anime sin complicaciones. # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 0.9.0 +version: 0.9.1 environment: sdk: ">=2.6.0 <3.0.0"