Search found 8 matches

Go to advanced search

by shivitoapps
Thu May 21, 2020 4:38 am
Forum: Programs using OS
Topic: Android Studio Class Search OpenSubtitles
Replies: 12
Views: 10642

Re: Android Studio Class Search OpenSubtitles

Resolved. I just needed to properly handle the reply. Here is the code that works. Thread thread = new Thread() { @Override public void run() { try { // Setup XMLRPC Client XMLRPCClient client = new XMLRPCClient(new URL("https://api.opensubtitles.org/xml-rpc")); HashMap ed = (HashMap<Objec...
by shivitoapps
Thu May 14, 2020 7:35 pm
Forum: Programs using OS
Topic: Android Studio Class Search OpenSubtitles
Replies: 12
Views: 10642

Re: Android Studio Class Search OpenSubtitles

Okay I registered and am now using my own useragent. I'm still having some issue. Please see below. I still can not get the list of returned items. my code: Object test = client.callAsync(testcallback,"SearchSubtitles",params); OpenSubtitles api reply: {seconds=0.248, data=[Ljava.lang.Obje...
by shivitoapps
Wed May 13, 2020 6:20 pm
Forum: Programs using OS
Topic: Android Studio Class Search OpenSubtitles
Replies: 12
Views: 10642

Re: Android Studio Class Search OpenSubtitles

Okay. I'll register XD
by shivitoapps
Wed May 13, 2020 4:24 am
Forum: Programs using OS
Topic: Android Studio Class Search OpenSubtitles
Replies: 12
Views: 10642

Re: Android Studio Class Search OpenSubtitles

Okay, Progress of a sort. I'm now getting this reply when i use SearchSubtitles method

Code: Select all

{seconds=0.296, data=[Ljava.lang.Object;@2b6b285, message=Only first 5 results returned, register own UserAgent, status=200 OK}
One problem I do not see the 5 results. are they in the Object maybe?
by shivitoapps
Tue May 12, 2020 7:59 pm
Forum: Programs using OS
Topic: Android Studio Class Search OpenSubtitles
Replies: 12
Views: 10642

Re: Android Studio Class Search OpenSubtitles

What is the string parameter suppose to look like? I have been trying for days now :( maybe I should find a different git hub library. Do you have any suggestions? I have tried https://github.com/wtekiela/opensub4j but the gradle has some issues with 7.0. I'm currently using https://github.com/gturr...
by shivitoapps
Tue May 12, 2020 3:59 am
Forum: Programs using OS
Topic: Android Studio Class Search OpenSubtitles
Replies: 12
Views: 10642

Re: Android Studio Class Search OpenSubtitles

I am making some progress. However now I'm getting "status=408 Invalid parameters" also i'm using this git: https://github.com/gturri/aXMLRPC public static void makerequest(){ Authenticator.setDefault (new Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { ret...
by shivitoapps
Tue May 12, 2020 3:57 am
Forum: Programs using OS
Topic: Android Studio Class Search OpenSubtitles
Replies: 12
Views: 10642

Re: Android Studio Class Search OpenSubtitles

I have made progress. However now when trying to do a search request I'm getting "status=408 Invalid parameters" public static void makerequest(){ Authenticator.setDefault (new Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthenticatio...
by shivitoapps
Sat May 09, 2020 7:20 pm
Forum: Programs using OS
Topic: Android Studio Class Search OpenSubtitles
Replies: 12
Views: 10642

Android Studio Class Search OpenSubtitles

any help would be greatly appreciated. I have created a class and am trying to send/receive data from opensubtitles. However I'm a noob and need some guidance. The below code is my attempt to get a boolean of true witch i think would mean i have sucessfully athenticated with OpenSubtitles api. Up to...

Go to advanced search