nyaapantsu / nyaapantsu-android-app Goto Github PK
View Code? Open in Web Editor NEWNew android app, no google services inside! Cannot be built for ios though
License: MIT License
New android app, no google services inside! Cannot be built for ios though
License: MIT License
For security reasons and to be able to provide more user-specific features to the app, the nyaa API 1.2 will introduce a new way to login. This will be done by a standard OAuth2 Autorization server and a Consent Server.
I'm doing the code for it. The oauth2 api will completely follow the oauth2 standard.
The api endpoints will be:
Now that I have implemented the oauth api part on nyaa, I would like which authorization flow should we use? @ltype @xdk78
For example we can either display a a web form from https://nyaa.pantsu.cat/oauth2/auth, let the website handle the login + the grant and then take the token at the end.
Or we can use our own login form and directly send the credentials to the token api url to get the token.
Moreover I would like some ideas on where should we put the API_KEY and API_SECRET (private key) in the code. Since we need to have them available here for travis to compile our releases.
Now search gives a json result like this : { "torrents": [...], "TotalQueryResults": 123, ...}
With all the torrents in the "torrents" array.
For more information, please refer to the api documentation: https://nyaa.pantsu.cat/apidoc/
As said above (and previously in another commit in 1.1), TorrentStram makes it impossible to read a file while downloading a torrent. Since TorrentStream only provides the ability to download a file, not the ability to "Stream" it to the player. So the player stops playing and close itself.
For better performance and customisation
Now we can select only one language. We should move to the new design of nyaapantsu and provide the ability to select multiple languages.
I'm thinking of adding a system like "tags" instead of the actual select
Settings "frontend" it's just finished, so we need to make working saving user login, etc to shared prefs
I can't even get it to open, just crashes every time
Sent from my Google Nexus 6P using FastHub
Fixed
Themes like major nyaa project
After login app crashing, maybe problem is related in api
Probably issue is related to Api changes
For example: https://github.com/lipangit/JieCaoVideoPlayer good library
At this moment, my smartphone have Android 4.4, so it will be nice if I can build NyaaPantsu App for Android 4.4+ (API 19). I searched for any issue with Kotlin and API 19 and it seems everything it's OK, but I don't know if the app needs any library that only run on API 21+, or something like that.
I'm not sure if you are using travis tests for local testing or just for the badge (both, I guess!) but the second one returns an error by trying to create an android emulator, should it be removed in purpose to fix the badge/travis tests?
I have a lot to learn about TDD, so sorry for the possibly absurd questions.
2.0 is completely new version, I started rewriting almost everything from scratch to follow mvp and di architecture.
Here is sneak peak, completely new design ๐
So follow this milestone https://github.com/NyaaPantsu/NyaaPantsu-android-app/milestone/3
and stay tuned! ๐
I was working on the Spanish translation of NyaaPantsu App. My translation is at 82% now, it need to be re-checked and fix minor issues context-related.
I think I can have a full translate in few days.
Now it's little bit too long
Possibility to select file from list if torrent have more than one file.
What do u think about this?
I would like to use https://github.com/TorrentStream/TorrentStream-Android library or something like that to download/watch videos and other shit from torrrent inside app ๐ ๐ ๐ ๐
For example displaying a magnet button and download button and a possible stream button.
Moved it here @xdk78
Now it's just a textview with no possible interaction
07-15 09:43:59.919 30023-30023/cat.pantsu.nyaapantsu E/AndroidRuntime: FATAL EXCEPTION: main
Process: cat.pantsu.nyaapantsu, PID: 30023
java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter bitmap
at cat.pantsu.nyaapantsu.helper.ImageGetterAsyncTask.onPostExecute(ImageGetter.kt:0)
at cat.pantsu.nyaapantsu.helper.ImageGetterAsyncTask.onPostExecute(ImageGetter.kt:22)
at android.os.AsyncTask.finish(AsyncTask.java:667)
at android.os.AsyncTask.-wrap1(AsyncTask.java)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:684)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Should we use Fresco for display network image?
When clicking on a torrent, it might be a good idea to have a swipe gesture to go the next/previous torrent in the previous torrent list.
If I do a search it should move between the torrents in the result list. If I didn't do a search it should move between the last torrents. If I clicked on a recent viewed torrent, it should move between the last viewed torrent list.
Profile with your torrents, notifications and profile settings.
We need to talk about this activity/fragment design and other shit ๐
Trying to build the app inside dev
branch running:
./gradlew clean build
I get this error.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
Any ideas?
Open first torrent, back to main screen(in app) , go to User Profile, after that back and go to the torrent that you opened before = crash
Implementing Sukebei to the app is not that hard, we only have to change the api base url to sukebei.pantsu.cat/api .
User account is shared between both website and the token is the same, so we don't have to touch on user object.
With the theming support of the app #8, we could when sukebei is selected apply a more pinkish, redish, blackish theme.
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.