gwindow / whatapi Goto Github PK
View Code? Open in Web Editor NEWJava API to be used with Gazelle, specifically What.CD
License: BSD 2-Clause "Simplified" License
Java API to be used with Gazelle, specifically What.CD
License: BSD 2-Clause "Simplified" License
For some reason when using their new api paths I'm getting SSL exceptions even when using http. I'm not sure what's going on.
The API library is a bit of a mess to work with due to a bunch of different packages each defining their own versions of the same classes. It looks like this was done so that GSON could be used, which requires that the class exactly matches the JSON response, but because the site api is kind of inconsistent about what information it gives us where this results in the library being as inconsistent as the site.
For example there are quite a few versions of the Torrent class: 1, 2, 3, 4, 5 and one class named Result that shares a lot with Torrent 6. This happens a lot throughout the library.
Because of the awkwardness of dealing with GSON I've been looking into using Jackson for parsing the JSON ourselves, where now we'd need to handle the inconsistencies ourselves perhaps by doing a full load of the object when wanting to access a missing data field or something.
Also it sounds like the Apache HTTP client we're using at the moment is being phased out from reading this post and that we should move to HttpURLConnection, however using HttpURLConnection isn't recommended on 2.2 and lower due to bugs, which would mean that the user mentioned in this bug wouldn't be able to use the app. We could have an older phone build, stick with Apache or just decide to not support 2.2 and lower (if we're even able to with Apache).
Anyways this would definitely be a lot of work but I think we could improve the app as well if we had a simpler/cleaner library to work with. Let me know what you think folks.
Tracked this down as the cause of crashes when viewing requests in the app, however I'm not sure what's causing the issue since the site JSON is valid. Perhaps something isn't matching up? Will have to look into it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.