yuliskov / SmartTubeLegacy

Watch YouTube videos on your TV and set-top-box with comfort
Mozilla Public License 2.0
4.42k stars 598 forks source link

Code not working - 3x3 instead of 2x4 #249

Open thehijacker opened 5 years ago

thehijacker commented 5 years ago

Hello,

Today I installed latest stable and also beta version. With both it generates 3x3 code to use in youtube.com/activate. Youtube page expects 2x4 alfanumeric code so I can't pair it with my gmail account to sync searches and favourites.

I saw someone already opened a topic regarding this but was close as fixed. What exactly must be done to make pairing work with correct code?

Thank you and best regards, Andrej

yuliskov commented 5 years ago

Hi. Ensure that you're using Chrome browser to open activation page. Also, check that url is correct: http://youtube.com/activate

thehijacker commented 5 years ago

Hi. I am using Chrome and correct URL. App still generates 3x3 codes while online page expects 2x4.

yuliskov commented 5 years ago

Thanks for the quick reply. Supposed fix below: https://github.com/yuliskov/SmartYouTubeTV/releases/download/6.16.67/SYTV_Orig_v6.16.67_r.apk

thehijacker commented 5 years ago

Hi. I reinstalled this latest build on another Android TV box. When I started Pro Main app it showed screen that I should login. When I selected it it again gave me 3x3 code. I cancelled the screen and YouTube started. I selected manually login and then I got the 2x4 code that worked correctly. So fix is working but for manual login from YouTube application. It is still giving 3x3 code on initial start of application when YouTube suggests you to login.

I can try later today from home with this latest build if it is working also on device I tested this yesterday.

Thank you for the fix.

thehijacker commented 5 years ago

Hi. I spoke to soon. Here at home I installed this latest version. Login gave me 3x3 codes. On third attempt it showned 2x4 code that I was able to use to activate. Everything worked. I exited application and when I started it again it again snowned window to login. Now again it always show 3x3 codes.

Any idea?

Thank you.

thehijacker commented 5 years ago

Ha. I take it back. It seems google now changed in the youtube.com/activate page the interface. It now asks for code in any format (3x3 or 2x4) and when applied it asks what google account to use. I have now logged in via 3x3 code and even after I close Smart YouTube and reopen it, it will stay logged in.

Anyone else can test this to confirm?

WolfganP commented 5 years ago

Same issue as in https://github.com/yuliskov/SmartYouTubeTV/issues/236 Google documentation shows that 2x4 is the format expected by /activate (https://github.com/yuliskov/SmartYouTubeTV/issues/236#issuecomment-460072227) but somehow SYTTV gets the 3x3 instead. Maybe using a different/older API?