Skip to content

Commit

Permalink
Pass 'odysee.com' as domain for newInstall and user signin
Browse files Browse the repository at this point in the history
  • Loading branch information
kekkyojin committed Jul 29, 2021
1 parent 983d1e5 commit 370b411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/com/odysee/app/callable/UserSignin.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public UserSignin(Context ctx, Map<String, String> options) {
@Override
public Boolean call() throws Exception {
try {
options.put("domain", "odysee.com");
Response responseSignIn = Lbryio.call("user", "signin", options, Helper.METHOD_POST, ctx);
if (responseSignIn.isSuccessful()) {
ResponseBody responseBody = responseSignIn.body();
Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/odysee/app/utils/Lbryio.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ public static void newInstall(Context context) {
options.put("node_id", "");
options.put("operating_system", "android");
options.put("platform", String.format("Android %s (API %d)", Build.VERSION.RELEASE, Build.VERSION.SDK_INT));
options.put("domain", "odysee.com");
try {
JSONObject response = (JSONObject) parseResponse(call("install", "new", options, Helper.METHOD_POST, context));
} catch (LbryioRequestException | LbryioResponseException | ClassCastException ex) {
Expand Down

1 comment on commit 370b411

@kekkyojin
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#1

Please sign in to comment.