ftde0 / yt2009

2009 youtube frontend.
Apache License 2.0
193 stars 120 forks source link

cant make yt2009 apks #148

Closed Radiatorgaming420 closed 3 weeks ago

Radiatorgaming420 commented 1 month ago

basically i cant make any yt2009 apks due to registerDevice not existing, it dosent matter if i use autoapk.js or manually patch it, it still gives me the error "check system time and network" and mainly due to registerDevice not being in the yt2009 instance when hosted (im patching an apk for my own instance), i even double checked the apk instructions and i wasnt doing anything wrong as the instructions said to redirect "youtube.com/youtube/accounts/registerDevice" to "your" instance, in my case 192.168.0.107. Also ftde0, just wondering what exactly registerDevice is, thx.

Radiatorgaming420 commented 1 month ago

bruhhhhhh

Radiatorgaming420 commented 1 month ago

ok nvm i fixed the issue with registerdevice, i just redownloaded the repo, anyway, now the issue is "there was a problem starting up please check your network and system time" i dont know what the issue is (yt 2.4.4).

ftde0 commented 1 month ago

you're probably messing up the registerDevice url within the apk itself, https/http? make sure the instance is reachable from your mobile device?

Radiatorgaming420 commented 1 month ago

i mean, when i used the autoapk node, i just put "192.168.0.107" no http/https (nor a slash at the end)

ftde0 commented 1 month ago

could you check that but making the apk manually? you say you've found registerDevice, but you're still getting an error related to registerDevice (system time check error on app start)

Radiatorgaming420 commented 1 month ago

yeah, on site i checked like if registerdevice was even there, but then later on i found that it posts registerdevice, so i just left it as is, and after making the apk (i first tried autoapk then manually) i got the registerdevice error, i guess i could retry updating the apk, ill update you in a bit

Radiatorgaming420 commented 1 month ago

ok just manually patched and recompiled, didnt seem to work (still using yt 2.4.4)

ftde0 commented 1 month ago

maybe try something like 2.3.4/2.1.6? if doesn't end up working please post the code fragment containing the registerDevice url you're changing

Radiatorgaming420 commented 1 month ago

hey, im back again. I tried 2.1.6 and it still didnt work, after this post ill try 2.3.4 again (probably still wont work) but heres the code fragment where i have registerDevice in. Ill also link a few more screenshots. image image image (gdata 1) image (gdata 2)

ftde0 commented 1 month ago

https doesn't work on bare IPs. unless you've put up your instance on a domain and have a valid https certificate for that domain, it won't work.

swap out the registerDevice url to use http instead.

Radiatorgaming420 commented 1 month ago

ok let me redo the apk then gimme a sec

Radiatorgaming420 commented 1 month ago

alright yea, it worked, after changing https to http it did the trick, tysm ftde0