Dis90 / plugin.video.discoveryplus

discovery+ add-on for Kodi
66 stars 13 forks source link

Invalid Arkose token error can't login #38

Closed cabban closed 2 years ago

cabban commented 3 years ago

Can't login I have a an account I have same password 😥 don't know why it not working cheers hope for a tip or a fix

Dis90 commented 3 years ago

Please read section "Login fails" from README.

Dis90 commented 3 years ago

Let's keep this issue open so everyone else sees it.

cabban commented 3 years ago

Please read section "Login fails" from README.

Working perfectly thank u for the work around 😀

crak3rjack commented 3 years ago

@Dis90 Im using discovery.com "USA" and the cookies like you mentioned and after i close Kodi and open again I'm getting the invalid token error

fadern commented 3 years ago

Hi, Im trying to use the cookie method but its not working. I get the following error "It looks like you are not logged in to discovery+. Please login using Chrome and export cookies th file." Ive succesfully logged in to D+ (https://www.discoveryplus.se/) and im able to watch shows. Ive used the "Get cookies.txt" plugin to export the cookie.

Dis90 commented 3 years ago

Open exported cookies.txt file. Can you see something like this there?

disco-api.discoveryplus.fi FALSE / TRUE 1944851030 st
eyJ0...

fadern commented 3 years ago

Open exported cookies.txt file. Can you see something like this there?

disco-api.discoveryplus.fi FALSE / TRUE 1944851030 st eyJ0...

Hi, I have tried two cookies and they both have that entry, one from chrome and one from FF. None of them are working and they are looking like this.

FF

bild

Chrome

bild

Dis90 commented 3 years ago

Seems to be ok. Have you checked from addon settings that you have selected correct discovery+ site (discoveryplus.se)?

fadern commented 3 years ago

Seems to be ok. Have you checked from addon settings that you have selected correct discovery+ site (discoveryplus.se)?

yes

fadern commented 3 years ago

`2021-08-23 12:29:19.339 T:3017 DEBUG : CGUIMediaWindow::GetDirectory (plugin://plugin.video.discoveryplus/) 2021-08-23 12:29:19.339 T:3017 DEBUG : ParentPath = [plugin://plugin.video.discoveryplus/] 2021-08-23 12:29:19.340 T:3217 DEBUG : Thread waiting start, auto delete: false 2021-08-23 12:29:19.359 T:3216 DEBUG : CAddonDatabase::SetLastUsed[plugin.video.discoveryplus] took 20 ms 2021-08-23 12:29:19.359 T:3217 DEBUG : StartScript - calling plugin discovery+('plugin://plugin.video.discoveryplus/','12','','resume:false') 2021-08-23 12:29:19.359 T:3218 DEBUG : Thread JobWorker start, auto delete: true 2021-08-23 12:29:19.360 T:3219 DEBUG : Thread LanguageInvoker start, auto delete: false 2021-08-23 12:29:19.360 T:3219 INFO : initializing python engine. 2021-08-23 12:29:19.360 T:3219 DEBUG : CPythonInvoker(18, /home/osmc/.kodi/addons/plugin.video.discoveryplus/addon.py): start processing 2021-08-23 12:29:19.440 T:3017 DEBUG : ------ Window Init (DialogBusy.xml) ------ 2021-08-23 12:29:19.515 T:3017 DEBUG : ------ Window Deinit (DialogAddonInfo.xml) ------ 2021-08-23 12:29:19.969 T:3219 DEBUG : -->Python Interpreter Initialized<-- 2021-08-23 12:29:19.969 T:3219 DEBUG :

2021-08-23 12:29:19.969 T:3219 DEBUG : CPythonInvoker(18, /home/osmc/.kodi/addons/plugin.video.discoveryplus/addon.py): the source file to load is "/home/osmc/.kodi/addons/plugin.video.discoveryplus/addon.py" 2021-08-23 12:29:19.970 T:3219 DEBUG : CPythonInvoker(18, /home/osmc/.kodi/addons/plugin.video.discoveryplus/addon.py): setting the Python path to /home/osmc/.kodi/addons/plugin.video.discoveryplus:/home/osmc/.kodi/addons/script.module.certifi/lib:/home/osmc/.kodi/addons/script.module.chardet/lib:/home/osmc/.kodi/addons/script.module.idna/lib:/home/osmc/.kodi/addons/script.module.inputstreamhelper/lib:/home/osmc/.kodi/addons/script.module.requests/lib:/home/osmc/.kodi/addons/script.module.urllib3/lib:/:/usr/lib/python37.zip:/usr/lib/python3.7:/usr/lib/python3.7/lib-dynload:/usr/local/lib/python3.7/dist-packages:/usr/lib/python3/dist-packages 2021-08-23 12:29:19.970 T:3219 DEBUG : CPythonInvoker(18, /home/osmc/.kodi/addons/plugin.video.discoveryplus/addon.py): entering source directory /home/osmc/.kodi/addons/plugin.video.discoveryplus 2021-08-23 12:29:19.971 T:3219 DEBUG : CPythonInvoker(18, /home/osmc/.kodi/addons/plugin.video.discoveryplus/addon.py): instantiating addon using automatically obtained id of "plugin.video.discoveryplus" dependent on version 3.0.0 of the xbmc.python api 2021-08-23 12:29:23.420 T:3215 DEBUG <CAddonSettings[script.skinshortcuts]>: trying to load setting definitions from old format... 2021-08-23 12:29:23.431 T:3220 DEBUG : Thread Timer start, auto delete: false 2021-08-23 12:29:23.431 T:3215 INFO : CPythonInvoker(17, /home/osmc/.kodi/addons/script.skinshortcuts/default.py): script successfully run 2021-08-23 12:29:23.432 T:3215 DEBUG : onExecutionDone(17, /home/osmc/.kodi/addons/script.skinshortcuts/default.py) 2021-08-23 12:29:23.448 T:3220 DEBUG : Thread Timer 3887595728 terminating 2021-08-23 12:29:23.449 T:3221 DEBUG : Thread Timer start, auto delete: false 2021-08-23 12:29:23.466 T:3221 DEBUG : Thread Timer 3887595728 terminating 2021-08-23 12:29:23.466 T:3222 DEBUG : Thread Timer start, auto delete: false 2021-08-23 12:29:23.969 T:3222 DEBUG : Thread Timer 3887595728 terminating 2021-08-23 12:29:23.976 T:3215 INFO : Python interpreter stopped 2021-08-23 12:29:23.976 T:3215 DEBUG : Thread LanguageInvoker 3912773840 terminating 2021-08-23 12:29:24.657 T:3219 DEBUG <CAddonSettings[plugin.video.discoveryplus]>: trying to load setting definitions from old format... 2021-08-23 12:29:24.682 T:3219 DEBUG : Skipped 8 duplicate messages.. 2021-08-23 12:29:24.682 T:3219 DEBUG : [plugin.video.discoveryplus-1.5.23+matrix.1]: Request URL: https://disco-api.discoveryplus.se/token 2021-08-23 12:29:24.683 T:3219 DEBUG : [plugin.video.discoveryplus-1.5.23+matrix.1]: Method: get 2021-08-23 12:29:24.683 T:3219 DEBUG : [plugin.video.discoveryplus-1.5.23+matrix.1]: Params: {'realm': 'dplayse', 'deviceId': 'xxxxxx', 'shortlived': 'true'} 2021-08-23 12:29:24.683 T:3219 DEBUG : [plugin.video.discoveryplus-1.5.23+matrix.1]: Payload: None 2021-08-23 12:29:24.683 T:3219 DEBUG : [plugin.video.discoveryplus-1.5.23+matrix.1]: Headers: {'x-disco-params': 'realm=dplayse'} 2021-08-23 12:29:25.063 T:3219 DEBUG : [plugin.video.discoveryplus-1.5.23+matrix.1]: Response code: 200 2021-08-23 12:29:25.063 T:3219 DEBUG : [plugin.video.discoveryplus-1.5.23+matrix.1]: Response: b'{\n "data" : {\n "attributes" : {\n "realm" : "dplayse",\n "token" : "xx"\n },\n "id" : "token-xxxx",\n "type" : "token"\n }\n}' 2021-08-23 12:29:25.063 T:3219 DEBUG : [plugin.video.discoveryplus-1.5.23+matrix.1]: Request URL: https://disco-api.discoveryplus.se/users/me 2021-08-23 12:29:25.063 T:3219 DEBUG : [plugin.video.discoveryplus-1.5.23+matrix.1]: Method: get 2021-08-23 12:29:25.064 T:3219 DEBUG : [plugin.video.discoveryplus-1.5.23+matrix.1]: Params: None 2021-08-23 12:29:25.064 T:3219 DEBUG : [plugin.video.discoveryplus-1.5.23+matrix.1]: Payload: None 2021-08-23 12:29:25.064 T:3219 DEBUG : [plugin.video.discoveryplus-1.5.23+matrix.1]: Headers: None 2021-08-23 12:29:25.127 T:3219 DEBUG : [plugin.video.discoveryplus-1.5.23+matrix.1]: Response code: 200 2021-08-23 12:29:25.127 T:3219 DEBUG : [plugin.video.discoveryplus-1.5.23+matrix.1]: Response: b'{\n "data" : {\n "attributes" : {\n "anonymous" : true,\n "bucket" : "A",\n "clientTranslationLanguageTags" : [ "en" ],\n "currentLocationSovereignTerritory" : "se",\n "currentLocationTerritory" : "se",\n "derivedLanguageTags" : [ "en" ],\n "features" : [ ],\n "newsletterPreference" : "NOT_YET_DECIDED",\n "packages" : [ "Free" ],\n "products" : [ ],\n "realm" : "dplayse",\n "selectedProfileId" : "PROFILEIDxxxx",\n "tokensCount" : 1\n },\n "id" : "USERID:dplayse:xxxx",\n "type" : "user"\n }\n}' 2021-08-23 12:29:25.129 T:3219 DEBUG <CAddonSettings[plugin.video.discoveryplus]>: trying to load setting definitions from old format... 2021-08-23 12:29:25.146 T:3017 DEBUG : ------ Window Init (DialogConfirm.xml) ------ 2021-08-23 12:29:25.147 T:3017 INFO : Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY 2021-08-23 12:29:28.572 T:3033 DEBUG : CLibInputKeyboard::ProcessKey - using delay: 500ms repeat: 50ms 2021-08-23 12:29:28.573 T:3223 DEBUG : Thread Timer start, auto delete: false 2021-08-23 12:29:28.580 T:3223 DEBUG : Thread Timer 3743404240 terminating 2021-08-23 12:29:28.580 T:3017 DEBUG : Keyboard: scancode: 0x1c, sym: 0x13, unicode: 0x000d, modifier: 0x0 2021-08-23 12:29:28.580 T:3017 DEBUG : HandleKey: return (0xf00d) pressed, action is Select 2021-08-23 12:29:28.581 T:3017 DEBUG : Keyboard: scancode: 0x1c, sym: 0x13, unicode: 0x000d, modifier: 0x0 2021-08-23 12:29:28.996 T:3017 DEBUG : ------ Window Deinit (DialogConfirm.xml) ------ 2021-08-23 12:29:28.997 T:3219 INFO : CPythonInvoker(18, /home/osmc/.kodi/addons/plugin.video.discoveryplus/addon.py): script successfully run 2021-08-23 12:29:28.997 T:3219 DEBUG : onExecutionDone(18, /home/osmc/.kodi/addons/plugin.video.discoveryplus/addon.py) 2021-08-23 12:29:29.158 T:3219 DEBUG : . 2021-08-23 12:29:29.508 T:3219 INFO : Python interpreter stopped 2021-08-23 12:29:29.509 T:3219 DEBUG : Thread LanguageInvoker 3516911824 terminating 2021-08-23 12:29:29.518 T:3217 ERROR : GetDirectory - Error getting plugin://plugin.video.discoveryplus/ 2021-08-23 12:29:29.519 T:3217 DEBUG : Thread waiting 3904381136 terminating 2021-08-23 12:29:29.529 T:3017 DEBUG : ------ Window Deinit (DialogBusy.xml) ------ 2021-08-23 12:29:29.530 T:3017 ERROR : CGUIMediaWindow::GetDirectory(plugin://plugin.video.discoveryplus/) failed 2021-08-23 12:29:29.530 T:3017 DEBUG : CGUIMediaWindow::GetDirectory () 2021-08-23 12:29:29.530 T:3017 DEBUG : ParentPath = [plugin://plugin.video.discoveryplus/]`

Dis90 commented 3 years ago

Can you try with different machine? I'm running out of ideas. Also check this post from forum https://forum.kodi.tv/showthread.php?tid=340055&pid=3029215#pid3029215

fadern commented 3 years ago

Can you try with different machine? I'm running out of ideas. Also check this post from forum https://forum.kodi.tv/showthread.php?tid=340055&pid=3029215#pid3029215

Hi again, The plugin didn't like when i had the cookie at a nfs share. It worked when i stored it local at the machine.

CHJ85 commented 2 years ago

Cookies.txt wouldn't work for me on Kodi 18.8. Anyway. I think I know why it doesn't wanna let me sign in with my email and password though. Discovery+ has this annoying captcha thing now.

CHJ85 commented 2 years ago

Why'd you close this one @Dis90 ? Have you found a fix or workaround or something?

Dis90 commented 2 years ago

Closed because you no longer can't get this error because add-on now doesn't have login at all. Only option is to use cookies.txt method.

CHJ85 commented 2 years ago

So the cookie thing works now? Because haven't been able to get it working. Do I make the cookie file from the current site (discoveryplus.com) or from all? Those are the two options the cookies.txt addon is giving me.

Dis90 commented 2 years ago

I haven't had a problem with it. Export all cookies from discoveryplus.com Edit. cookie from eu1-prod-direct.discoveryplus.com should be enough if you're from EU.

cabban commented 2 years ago

It works great 😀

Den 15 december 2021 14:52:34 skrev Dis90 @.***>:

I haven't had a problem with it. Export all cookies from discoveryplus.com — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.