SIMKL / script.simkl

Kodi add-on for Simkl
https://simkl.com/apps/kodi/
GNU General Public License v3.0
40 stars 14 forks source link

Not possible to re-login #65

Closed SntNick closed 7 months ago

SntNick commented 2 years ago

Not possible to re-login

Simkl-dev commented 2 years ago

You can try uninstalling and install the addon again

SntNick commented 2 years ago

I tried to reinstall the addon but the status is still logged in and pressing "login" doesn't open login window

Simkl-dev commented 2 years ago

Strange as it should uninstall all data. Could you please try uninstalling, and restarting kodi

SntNick commented 2 years ago

That's exactly what I tried with no luck :-( i.e. the sequence "Uninstall - Restart KODI - Install" doesn't help

Simkl-dev commented 2 years ago

When you click Uninstall, does it asks you to remove all data YES\NO?

Simkl-dev commented 2 years ago

Just tried uninstalling and selecting YES, remove settings. And then installing worked for me.

SntNick commented 2 years ago

Yep and I pressed "Yes"

SntNick commented 2 years ago

I will check again and add version info later. Apricate a quick response, mate

Simkl-dev commented 2 years ago

Do you have access to the addons folder on your Kodi? Try deleting the folder with Simkl settings

SntNick commented 2 years ago

Where should it be located on Windows 10?

Simkl-dev commented 2 years ago

https://forum.kodi.tv/showthread.php?tid=293445

Simkl-dev commented 2 years ago

https://kodi.wiki/view/Userdata

Simkl-dev commented 2 years ago

The second option is to delete the Kodi connection at https://simkl.com/settings/connected-apps/

SntNick commented 2 years ago

Nothing helps, sorry. Uninstall works fine, deleting the folder with Simkl settings. Disconnecting on simkl.com works fine, but after installing the addon shows status "You are logged in" and doesn't show log in window when I click on "Please click to Log in"

SntNick commented 2 years ago

image

SntNick commented 2 years ago

Also I've tried to reset the addon to defaults and it didn't help either

Simkl-dev commented 2 years ago

something is caching the result. I'm 100% sure that if you delete the settings folder it should not be possible to show that you are logged in. When you delete the folder, you need to exit the kodi server and check-in the task manager if Kodi is still running or not.

SntNick commented 2 years ago

Any other places I can check for the caching?

ekleop commented 2 years ago

did you remove? C:\Users\ YOUR USERNAME \AppData\Roaming\Kodi\addons\script.simkl folder here is located your token file C:\Users\ YOUR USERNAME \AppData\Roaming\Kodi\userdata\addon_data\script.simkl then restart kodi

PS. if its Windows, if not, check https://github.com/SIMKL/script.simkl/issues/65#issuecomment-931311165

SntNick commented 2 years ago

Uninstalls removes the folders - I've checked, but after Kodi restart and SIMKL addon install the status is logged in again :-(

Simkl-dev commented 2 years ago

Check if you have installed kodi in another folder. They might be located in different folders if you have set one up using .exe and one kodi from the Windows app store. And you need to clean 2 folders, not just 1.

SntNick commented 2 years ago

I've installed Kodi to non-system drive but the appdata folder belongs to the user anyway - so the paths you've described are the same for me. I've searched for any SIMKL stuff in the install folder too, but there is nothing alike.

Simkl-dev commented 2 years ago

Did you try clicking Please click to log in?

SntNick commented 2 years ago

Sure, but nothing happens

Simkl-dev commented 2 years ago

No more ideas other than re-installing kodi. I've added a task to add a Log out button for the future.

SntNick commented 2 years ago

Thanks anyway.

ekleop commented 2 years ago

C:\Users\ username \AppData\Roaming\Kodi\kodi.log could you check the log file? it should have something like "login thread start = ", "Simkl: get setting token" fields those start with "-- Simkl:" So we can understand what's happening there

but without userdata\addon_data\script.simkl\settings.xml file it should be able to authorize, what is your kodi version?

SntNick commented 2 years ago

Thanks, will check tonight.

SntNick commented 2 years ago

The only line with "simkl" text in log file is "INFO : CAddonMgr::ADDON::CAddonMgr::FindAddons: script.simkl v3.1.0 installed"

Kodi version is 19.1.0

SntNick commented 2 years ago

Debug log: 2021-10-03 19:34:03.226 T:10688 DEBUG : CPythonInvoker(1, C:\Users\\AppData\Roaming\Kodi\addons\script.simkl\service.py): the source file to load is "C:\Users\\AppData\Roaming\Kodi\addons\script.simkl\service.py" 2021-10-03 19:34:03.227 T:10688 DEBUG : CPythonInvoker(1, C:\Users\\AppData\Roaming\Kodi\addons\script.simkl\service.py): setting the Python path to C:\Users\\AppData\Roaming\Kodi\addons\script.simkl;E:\Program Files\Kodi\system\python\Lib;E:\Program Files\Kodi\python3.8.zip;E:\Program Files\Kodi\system\python\DLLs;E:\Program Files\Kodi;C:\Users\\AppData\Roaming\Python\Python38\site-packages;E:\Program Files\Kodi\system\python;E:\Program Files\Kodi\system\python\lib\site-packages 2021-10-03 19:34:03.227 T:10688 DEBUG : CPythonInvoker(1, C:\Users\\AppData\Roaming\Kodi\addons\script.simkl\service.py): entering source directory C:\Users\\AppData\Roaming\Kodi\addons\script.simkl 2021-10-03 19:34:03.227 T:10688 DEBUG : CPythonInvoker(1, C:\Users\\AppData\Roaming\Kodi\addons\script.simkl\service.py): instantiating addon using automatically obtained id of "script.simkl" dependent on version 3.0.0 of the xbmc.python api 2021-10-03 19:34:03.246 T:9872 DEBUG : -->Python Interpreter Initialized<--

SntNick commented 2 years ago

2021-10-03 19:34:03.924 T:10688 DEBUG : -- Simkl: dir = C:\Users\\AppData\Roaming\Kodi\ 2021-10-03 19:34:03.924 T:10688 DEBUG : -- Simkl: Python Version = 3.8.5 (default, Feb 11 2021, 15:28:04) [MSC v.1928 64 bit (AMD64)] 2021-10-03 19:34:03.925 T:10688 DEBUG : -- Simkl: args = [''] 2021-10-03 19:34:03.926 T:10688 DEBUG <CAddonSettings[script.simkl]>: trying to load setting definitions from old format... 2021-10-03 19:34:03.928 T:10688 DEBUG : -- Simkl: get setting token =

ekleop commented 2 years ago

there isn't anything after "Simkl: get setting token =" line? for example "Usersettings = " line

SntNick commented 2 years ago

Nothing

SntNick commented 2 years ago

The login window's just popped, out of the blue. Interestingly when I opened SIMKL link it's connected straight away without entering the code.

ekleop commented 2 years ago

yes, it should be like this. Your device is unique so it was detected automatically

Arias800 commented 2 years ago

Hello, I have found the reason behind this error, it's a ssl error. ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1128) I don't know why it's happened.

Simkl-dev commented 2 years ago

If you're using some other app or on an older device, some SSL root certificates have expired on October 1 https://techcrunch.com/2021/09/21/lets-encrypt-root-expiry/. Simkl API only uses new certificates and does not use old certificates as they are updated every 3 months, so this is not an issue with Simkl api, but most likely with some other app that kodi uses.

assault88 commented 2 years ago

I've got this exact same problem. It says I'm logged in but also says Please click to log in, but when I click I don't get a login window. I've tried everything mentioned in this issue, how do I fix this?

ekleop commented 2 years ago

I've got this exact same problem. It says I'm logged in but also says Please click to log in, but when I click I don't get a login window. I've tried everything mentioned in this issue, how do I fix this?

did you try everything above in this thread? tried to remove(with all data) and install it again?

what is your kodi version?

assault88 commented 2 years ago

Yes I tried everything above in this thread. I've uninstalled, removed settings and the script.simkl folder, reinstalled but still the same. This didn't work for the last guy either. Kodi version was 19.1 when this stated happening, I tried upgrading Kodi to the latest 19.3 but no difference, the problem still exists.

Simkl-dev commented 2 years ago

Cannot reproduce on Windows. What's your OS, Kodi from the app store or from the website install? Are you able to check Kodi logs?

assault88 commented 2 years ago

Kodi from the website on Windows 10 x64. Addon from the Kodi Respository.

Kodi logs show nothing of interest to do with Simkl addon except saying 3.1 is installed.

I should say this started when I uninstalled and reinstalled the Simkl addon. Originally it was telling me I had no internet connection so wasn't updating my shows, so I uninstalled and reinstalled and that's when this happened.

Simkl-dev commented 2 years ago

Try disconnecting kodi on https://simkl.com/settings/connected-apps/ and re-login

Simkl-dev commented 2 years ago

then open https://simkl.com/pin/ - this should in theory auto-connect login if you're on the same wifi and app tried to generate a PIN.

assault88 commented 2 years ago

I've disconnected Kodi as advised before.

But I can't re-login. That is the problem. Clicking on "Please click to log in" in Simkl settings doesn't do anything. So no I can't enter a pin because I can't login.

Simkl-dev commented 2 years ago

https://troypoint.com/clear-kodi-cache/

https://www.comparitech.com/kodi/delete-kodi-addons/

assault88 commented 2 years ago

I've deleted the Simkl addon, the addon userdata, and the Kodi cache, including the entire userdata folder. Reinstalled Simkl Addon and still the same. Says I'm logged in but also says "Please Click to Log in" but the login screen doesn't pop up when I click. Obviously I'm not logged in as the addon doesn't do anything anymore and the device is no longer linked to my Simkl account and I can't get a pin to re-add the device because I can't log in.

ekleop commented 2 years ago

could you dm to Ichika via Simkl discord channel? https://discord.com/invite/u89XfYn we can try to figure out where the problem is with teamviewer maybe

assault88 commented 7 months ago

It's not completed. The problem still exists and has been unfixable.