DSteve595 / Put.io

Put.io for Android!
MIT License
142 stars 30 forks source link

Getting 404 on Google TV #9

Closed mohsen1 closed 10 years ago

mohsen1 commented 10 years ago

Thanks for making it available for Google TV.

I'm getting 404 error after entering username and password

Looks like that this page is down:

http://stevenschoen.com/callback.php

DSteve595 commented 10 years ago

Are you able to provide a stack trace? I can't get my Google TV emulator to work.

mohsen1 commented 10 years ago

@DSteve595 just click on that link, I get 404 on my browser too

DSteve595 commented 10 years ago

Right, it's just a dummy page for the Put.io API. The browser should be intercepting it and logging in, but it's not, so I need a stack trace.

mohsen1 commented 10 years ago

I'm not able to provide stack trace, Google TV emulator runs on Linux only (AFIAK). I don't have Linux to try the emulator either.

DSteve595 commented 10 years ago

It supports Mac and Windows now too, but I can't get it to run.

gh0st19 commented 10 years ago

I'm also running into this issue on my NeoTV Prime.

DSteve595 commented 10 years ago

Rob De Almeida generously donated a Google TV box, and I'm seeing what the issue is now, I think. Something in Google TV's WebView is done differently. On all other versions of Android (that I've tested), onLoadResource is called when loading a URL, and that lets me intercept the login code from put.io. But for some reason, it's different on Google TV, only working after a URL has fully loaded, which won't happen with my fake URL.

I can think of two fixes:

  1. Package an alternate WebView (like ChromeView) to be used on Google TV (I really don't want to do this)
  2. Host an actual page at the dummy URL (hope my server's always up!) Most likely going with the second for now.
DSteve595 commented 10 years ago

Scratch that. I misunderstood the issue.

The WebView on Google TV is indeed behaving differently, but I found a way around it that doesn't need either of those two (clunky) fixes. It works now! It's currently just using the tablet interface which isn't too bad at all actually, if a little bit small. A proper TV interface is something I'd like to do but it's not planned right now. Too many other things to get done first!

I'll be pushing a new beta with Google TV support today. Edit: Pushed.

mohsen1 commented 10 years ago

Thank you for fixing this! I opened this bug, but I don't have a Google TV anymore to test it. Please close the issue if you think it's done