Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant search or access to listed movies and TV shows, only featured #656

Closed
2 of 4 tasks
MrCoolAndroid opened this issue Oct 29, 2022 · 65 comments
Closed
2 of 4 tasks

Comments

@MrCoolAndroid
Copy link
Contributor

MrCoolAndroid commented Oct 29, 2022

Addon used

  • Amazon VOD (plugin.video.amazon-test)
  • Browser Launcher (plugin.program.browser.launcher)
  • Addon version: 0.9.5+matrix.1

Account type

  • primevideo.com
  • amazon.(com/co.uk/de/jp)

System Setup (please provide the following information):

  • Hardware: Amlogic S905W
  • OS version: Running on Amlogic with CoreELEC (official): 19.5-Matrix_rc2, kernel: Linux ARM 64-bit version 4.9.269 (from debug)
  • Kodi version number: 19.4

Upload Logs

https://pastebin.com/Gh8yqQhB

Describe the bug

Whenever i try to search something or see listed movies or TV shows like from categories it always throws an error, but when you see featured movies it works normally and you can watch normally, for the debug log i tried searching, it throws the same error for listed movies and TV Shows, something like this:
screenshot00000
Like if it cant access to something from the API, weird

@max3163
Copy link

max3163 commented Oct 30, 2022

Same issue since yesterday :

2022-10-30 15:46:24.486 T:16259 ERROR : [Amazon VOD] Error reason: 403 error (NoRetries)
2022-10-30 15:46:24.500 T:16259 ERROR : [Amazon VOD] Unable to fetch the url: /search/ref=atv_me_kid_c_hahmlw_4_smr?queryToken=XXX
2022-10-30 15:46:24.519 T:16259 ERROR : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'AttributeError'>
Error Contents: 'str' object has no attribute 'get'
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.amazon-test/default.py", line 5, in
EntryPoint()
File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/startup.py", line 62, in EntryPoint
g.pv.Route(verb, path)
File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 279, in Route
elif 'browse' == verb: g.pv.Browse(path)
File "/storage/.kodi/addons/plugin.video.amazon-test/resources/lib/web_api.py", line 594, in Browse
title = entry.get('title', nodeName)
AttributeError: 'str' object has no attribute 'get'
-->End of Python script error report<--

@MrCoolAndroid
Copy link
Contributor Author

I just installed the add-on yesterday, was it working normally before?

@ramemat
Copy link

ramemat commented Oct 30, 2022

Same issue for me.
Kodi / windows 10

@MrCoolAndroid
Copy link
Contributor Author

Yeah I think it's something related with the API

@MrCoolAndroid
Copy link
Contributor Author

@ramemat @max3163 Was the add-on working before? I might try an older version to see what happens

@max3163
Copy link

max3163 commented Oct 31, 2022

@MrCoolAndroid : yes worked like a charm before.

@ramemat
Copy link

ramemat commented Oct 31, 2022

Worked fine before!

@MrCoolAndroid
Copy link
Contributor Author

@Sandmann79 it's possible to check this?

@TheRealBadRobot
Copy link

Same issue on Kodi Matrix, Ubuntu 20.10

@Necdilzor
Copy link

Still happening on version 0.9.5 of the addon as of today. It was working fine before and it stopped working abruptly

@MrCoolAndroid
Copy link
Contributor Author

I just hope that some developer will see this

@max3163
Copy link

max3163 commented Nov 20, 2022

No response, no commit since many months... I think the repo is dead...

@MrCoolAndroid
Copy link
Contributor Author

Yeah, that's really sad, my workaround on this was to add Movies and TV shows that i wanted to see to my Watchlist, it's the only way to watch them on Kodi

@Paco8
Copy link
Contributor

Paco8 commented Nov 23, 2022

I think they changed the "search" in the api to "searchDefault" :
api/searchDefault?query token...

@MrCoolAndroid
Copy link
Contributor Author

Yeah probably, you should make a pull request but i don't know if they are going to merge it

@Varstahl
Copy link
Collaborator

I mean, I'm reading, I just been having work and health problems, and the question would be if it's searchDefault for all regions or just the usual suspect, but yeah…

@MrCoolAndroid
Copy link
Contributor Author

I mean, I'm reading, I just been having work and health problems, and the question would be if it's searchDefault for all regions or just the usual suspect, but yeah…

Ooh that's okay, it's just that there hasn't been any activity for a while

@Varstahl
Copy link
Collaborator

Yeah, last time I managed to get some work done was in August. I have a very tiny kid, so most of my free time has been eaten up by playing with her instead of code, and by the viruses and bacteria she brings home. Tiny adorable petri dishes with legs… :)

@MrCoolAndroid
Copy link
Contributor Author

Yeah, last time I managed to get some work done was in August. I have a very tiny kid, so most of my free time has been eaten up by playing with her instead of code, and by the viruses and bacteria she brings home. Tiny adorable petri dishes with legs… :)

Awww, well don't worry about us, whenever you have free time! In the meantime we have the watchlist workaround

@MrCoolAndroid
Copy link
Contributor Author

Problem solved

https://www.kodinerds.net/index.php/Thread/44211-Release-Amazon-Prime-Instant-Video/?postID=702438#post702438

Ooh look at that, @Varstahl it's possible to pull request this?

@fpusersuggest
Copy link

what's the solution ?
Because I followed that link and I substituted the line 947 in .kodi/addons/plugin.video.amazon-test/resources/lib/network.py
I substituted this line:
if url.startswith('/search/') or url.startswith('/gp/video/search/'):
with the following:
if url.startswith('/search/') or url.startswith('/gp/video/searchDefault/'):

but, it didnt' work.

@Varstahl
Copy link
Collaborator

Ooh look at that, @Varstahl it's possible to pull request this?

I guess so, I'll try to do it tomorrow (here's hoping I remember to)

I substituted this line:
but, it didnt' work.

Did you restart Kodi? In case the addon was not refreshed?

@MrCoolAndroid
Copy link
Contributor Author

I guess so, I'll try to do it tomorrow (here's hoping I remember to)

Alright! Whenever you can

@MrCoolAndroid
Copy link
Contributor Author

I might try this solution too, will let know if it works

@max3163
Copy link

max3163 commented Nov 27, 2022

I try the change but... without success ! ... too bad !

@fpusersuggest
Copy link

Ooh look at that, @Varstahl it's possible to pull request this?

Did you restart Kodi? In case the addon was not refreshed?

yep, I rebooted and also removed pycache

@MrCoolAndroid
Copy link
Contributor Author

@fpusersuggest what's your Amazon account type?

@fpusersuggest
Copy link

to be honest I don't know what's mean "amazon account type". I have just a prime account. Primevideo.com works fine on browser.

@gst-kodi
Copy link

me too. it's a bit wrong with the regular expression operations. but i'm not that trained there

@MrCoolAndroid
Copy link
Contributor Author

I will try when I get home, i guess it works for some regions, then I will try with @gst-kodi fix

@Varstahl
Copy link
Collaborator

me too. it's a bit wrong with the regular expression operations. but i'm not that trained there

It shouldn't be, no. It's just that… did they remove the API endpoint for Germany as well? But then the fix in #656 (comment) shouldn't have worked, but people claim it does? Unless it didn't work for everyone in the first place, and there's another problem for Germany.

@MrCoolAndroid
Copy link
Contributor Author

I wonder if it's different for all countries or regions

@Varstahl
Copy link
Collaborator

They use canary releases, and some lag behind, like India. So it goes something like this:

  • amazon.com, amazon.co.uk, amazon.de, amazon.jp have their own separate thing. There were some points of convergence with PrimeVideo, but they're not a single platform (yet). They're almost uniform amongst themselves, but not always (at one point someone in North America screwed up, and everything stopped working, while the rest of the countries had no issues)
  • PrimeVideo:
    • Each country has their own deployment
    • Some usual suspects have new releases before others. Some people from Italy or Spain will start reporting issue a couple days earlier than I actually see the problem itself
    • Some country stay behind even when globally the releases have been distributed in every other region. India had this problem several times, and I have no idea why, sometimes it lags behind for months

We thought it fixed by just using the global web APIs, but they went and changed them again.

At one point, iirc, I was supporting 6 to 8 different versions on PrimeVideo parsing alone, just to browse categories, each with their own subset of further changes. This was a thing of the past with the new JSON/WebAPI paradigm and all, but apparently not that certain anymore.

@MrCoolAndroid
Copy link
Contributor Author

Damn, so much complexity

@Ronny-nerd
Copy link

The code changes from gst for the brand new Amazon VOD version 0.9.6+matrix.1 addon works for me in DE.

https://www.kodinerds.net/index.php/Thread/44211-Release-Amazon-Prime-Instant-Video/?pageNo=430

Just needed the changed code from StollD for the playback.py file to play Freevee movies/series.

#641

@Varstahl
Copy link
Collaborator

Varstahl commented Nov 28, 2022

Fair enough, I'll make new changes, merge the FreeVee PR and then make a new release (and hear from the rest of the DE people about their Kodi breaking and I'll go cry in a corner) :D

@MrCoolAndroid
Copy link
Contributor Author

Thanks a lot for your work! I will let know how it works whenever I get to try it!

@Varstahl
Copy link
Collaborator

newPath = '/gp/video' + up.path.replace('/gp/video', '')

I was on my way to upload this "fix", when I realised it does work, but for the wrong reasons. I need someone in Germany to do me a favor:

  1. open up prime video in a browser, and open developers tools (usually CTRL+SHIFT+I for Inspect)
  2. go to the network tab in the developers tools
  3. go back to the prime video page, and do a generic search, like a. This should yield a number of results, and make sure to scroll to the bottom to trigger the infiniload/infinite scrolling
  4. in the network tab you should see resource names, similar to searchDefault?startIndex=N…
  5. click on any of those, and under Headers, General, copy the Request URL

It should look something like the following:
image
image

Before making assumptions and introducing regressions in functionalities, I'd like for this feedback, at least I can make informed decisions.

@Varstahl
Copy link
Collaborator

Thanks, but France falls under PrimeVideo itself. The only ones who'd have it kinda different would be DE/JP/UK/US, which is why I asked the info to Germans :)

@MrCoolAndroid
Copy link
Contributor Author

Question @Varstahl, i tried to look for an update on Kodi but there is no new update on the repository, do i have to update it manually?

@Varstahl
Copy link
Collaborator

Kodi can cache the versions of the repositories/addons, so there's 3 options:

  1. wait 24 hours from the last time Kodi updated everything
  2. clear the cache and force Kodi to refetch the addons list (this works, but I don't remember how it's executed)
  3. install it manually

@MrCoolAndroid
Copy link
Contributor Author

Alrighty

@MrCoolAndroid
Copy link
Contributor Author

MrCoolAndroid commented Nov 28, 2022

Can confirm that searching works on my region!(Argentina), i will try searching on categories and stuff like that and edit this post it works! No problems for now
Using 0.9.6 (latest that my Kodi was able to fetch)

@Necdilzor
Copy link

Can confirm that searching works on my region!(Argentina), i will try searching on categories and stuff like that and edit this post it works! No problems for now Using 0.9.6 (latest that my Kodi was able to fetch)

Same here! Version 0.9.6 is working for me now in Argentina too.
Thanks for the update!

@knappster1
Copy link

Thanks, but France falls under PrimeVideo itself. The only ones who'd have it kinda different would be DE/JP/UK/US, which is why I asked the info to Germans :)

@Varstahl, thanks for all of the work you have done on this addon over the years. I understand you are asking for someone in Germany for the information from developer tools, but I also see you mentioned US being different from primevideo. Would it be helpful if I send you the results from the US? If so, should I post it on GitHub or send you a private message on Kodi forums?

Thanks again for your efforts!

@Varstahl
Copy link
Collaborator

@knappster1 yes, absolutely. I just asked for Germans because a couple Germans reported the issue first, but US accounts should work as well. As for the logs, you can attach it here or send it in a PM on the forums, however you like.

@knappster1
Copy link

@Varstahl, I looked, but unfortunately did not see anything. It did not see the infiniload either. I will try to take a short video so you can see the behavior and scroll through the resource names and send you a link.

@dtechniker
Copy link

dtechniker commented Dec 1, 2022

So I'm in Germany and also have the problem. In German there seems to be no search. My Opera/edge gives me this link:
(This is the only link with startIndex)

https://www.amazon.de/gp/video/api/storefront/ref=atv_hm_nxt_2?startIndex=7&targetId=V2%3D4AEA6u69gYPeuYe-toZwYWdlSWSIcGFnZVR5cGWMY29sbGVjdGlvbklkiHdpZGdldElkjo5zd2lmdElkVmVyc2lvbt6UioRob21li4Rob21ljA-ND46CVjI%3D&decorationScheme=web-decoration-asin-v4&dynamicFeatures=integration&dynamicFeatures=CLIENT_DECORATION_ENABLE_DAAPI&dynamicFeatures=ENABLE_DRAPER_CONTENT&dynamicFeatures=HorizontalPagination&serviceToken=eyJ0eXBlIjoidnBhZ2UiLCJuYXYiOmZhbHNlLCJzZWMiOiJjZW50ZXIiLCJwcmlkIjoiYTQyNDdlMGEtZTJiZi00MjBjLTgwMmEtZDcxZDAyOWZkNzRlIiwicnQiOiIzIiwiZmlsdGVyIjp7IlBSSU1FIjpbXX0sInJhbmsiOiJINHNJQUFBQUFBQUFBQ1dSUjVhRU1BeEVMelFMSEhDWW5RTVkweVFiSjN6L2c4eWdYdW8vVlVrcW9WK2tSTFFQRmlpYVpIN1FMK0xVT3BtUENXdFczeG90Zk5Sb2Q2YmNVcndBSjE3UDIxbk1jb0VPRytmbGttM1Y5elJEZzVhWkMyNU1tK3NJRmpYY2NkUTNyV2pITDdqaWVOTkY5Mm5QTUJQdFZWV013eUphU1dDQnVuR2RUbnl4bzNzQm1mSmkxc3NuRkx5SGpzS3lMczJMRXhQd3hBOGhjc00ySFBPQlh1RE1yUm9wazA3ekFrUHlrL0lkK3RDU0F3dlVxandHZnM1cXUrRXk1SkZoclZvVlovMWRRMkk3ZSt0NklpMitJT250dXVscS9KMEdhQmlQUGJBTmNSUlllMEVSNnI3OXhiRG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Q5MDMxOTkxMTQ1MjY2MywtNTg0NDIzMDE1MDIzNDY4NTMwMywtODYyOTY3ODM2MTQ1MDgyMzI4Miw1MDY2ODM0MTg0MTk1MTYzNjcwLC00OTEyNTYwODU5NjAyMjQ3OTk5LDYxMjEzMDEwMDUzMTE0Mjc4MzUsLTY3Mjg3MDgxNzEwNzcxMDY2NDIsNDgxNTc3MjM0MTc3MTE5NDE1NCwtNjI1MzkyNTY3MTU3Njc1MTIzNiwzMjI0Njg1NzQ3Njk5MDA5NzAwLC04OTM2Mzk2MTM4MDQ0NTIzMjgyLDUwMzMwNDEyMzY5NzY5NDYxMzIsLTcwOTM3MDY3MDkwOTk0MDQyODUsNDIyODQ4Mjk0NjgwMzYxNDk4NCwtODY4NjQ0MDA0MTg2NjY5MTAwNCw0NzEzMTYxNzIzNTgyMTA0MzM0LC03NzE0NTA1NzMxOTU1MDY5ODMyXX0%3D&variant=desktopWindows&featureScheme=web-features-v5&actionScheme=default&pageSize=14&widgetScheme=web-explore-v1&contentId=home&contentType=home&pageNumber=2

@dtechniker
Copy link

Im Kodi (18.9) log:

2022-12-01 08:33:40.849 T:2721989440 NOTICE: [Amazon VOD] Service: Proxy server stopped
2022-12-01 08:33:40.850 T:2721989440 NOTICE: [Amazon VOD] Service stopped
2022-12-01 08:33:40.869 T:2721989440 WARNING: CPythonInvoker(68, /storage/.kodi/addons/plugin.video.amazon-test/service.py): the python script "/storage/.kodi/addons/plugin.video.amazon-test/service.py" has left several classes in memory that we couldn't clean up. The classes include: N14PythonBindings31XBMCAddon_xbmc_Monitor_DirectorE,N9XBMCAddon7xbmcgui6DialogE,N9XBMCAddon9xbmcaddon5AddonE

@yoshimo
Copy link

yoshimo commented Dec 2, 2022

Search Term panama

https://completion.amazon.de/api/2017/suggestions?limit=11&prefix=panama&suggestion-type=WIDGET%2CKEYWORD&page-type=ATVHome&alias=instant-video&site-variant=desktop&version=3&event=onkeypress&wc=&lop=de_DE&last-prefix=pana&avg-ks-time=384&fb=1&session-id=260--&request-id=2222&mid=A1PA6,...R9&plain-mid=4&client-info=amazon-search-ui

https://www.amazon.de/s/ref=nb_sb_noss_1?__mk_de_DE=ÅMÅŽÕÑ&url=search-alias=instant-video&field-keywords=panama&crid=XASDASDAS&sprefix=panama,instant-video,114

when you reach the end of the page the last non image request is

https://www.amazon.de/s/query?__mk_de_DE=ÅMÅŽÕÑ&crid=XARAQ&i=instant-video&k=panama&page=3&ref=sr_pg_2&sprefix=panama,instant-video,114

@schlumpf1986
Copy link

@Varstahl:
"I need someone in Germany to do me a favor"
I am from germany and would love to do your the favor.
Unfortunately, I am not able to do a search on primevideo.com

When I access primevideo.com, I get automatically forwarded to: amazon.de/Amazon-Video
I can do a search there, but the searchDefault-Item doesn't appear in the list.

@Varstahl
Copy link
Collaborator

Varstahl commented Dec 5, 2022

Yeah, because I'm a moron, I made a typo, and didn't realise. I meant do everything that was written if you're able to, but not on primevideo.com but rather on the website you access amazon content from. 🤦‍♂️

Sorry for the misunderstanding, I'm getting annihilated by fever from a week, slowly going insane.

Edit: I guess the results would be similar to this #656 (comment)
So yeah, I think amazon changed the APIs again. What a time to be alive not dead…

@eggbeater98
Copy link

@Varstahl I hope you're doing well!
I'm having the same issue using OSMC on an RPi in the US. If there's anything I can do to help troubleshoot, please let me know.

@Varstahl
Copy link
Collaborator

@Varstahl I hope you're doing well!

Had a massive server outage and raid metadata failure that took 3 full days to recover. Send help (or booze) ç_ç

Sandmann79 added a commit that referenced this issue Apr 25, 2023
Fixes #675,#674,#665,#660,#659,#656,#649,#640,#639,#637,#632,#607,#602,#525,#516,#405,#391,#150

Signed-off-by: Sandmann79 <sandmann79@gmx.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests