Closed artemplaksiy closed 4 years ago
After a quick investigation: current URL for searching is: 2020-03-14 16:18:10.367 T:1552429936 DEBUG: [plugin.video.hbogoeu] GET FROM HBO URL: https://czapi.hbogo.eu/v8/Search/Json/ENG/COMP/paw/0
, but in web browser I see this URL: https://czapi.hbogo.eu/v8/Search/json/CES/COMP/paw/-/-/-/-/-/3
See how searching working in this logs: browser_search.har.zip plugin_search.har.zip
I already changed the URL in my forked branch and after quick test search works fine..
After a little bit longer investigation :smile: I assumed that the current search doesn't find any series and only in Kids category. For example, I can find "Bad Banks" but cannot find Paw patrol, Blaze and the Monster Machines or Slugterra. My change above at first glance fix this problem, but I'm still not sure about the pull request.
Hello, your findings are correct. Made the necessary change to the search URL. After some testing will be included in the next release is already in master.
@all-contributors please add @artemplaksiy for bug, ideas
@arvvoid
I've put up a pull request to add @artemplaksiy! :tada:
Test release: https://github.com/arvvoid/plugin.video.hbogoeu/releases/tag/2.3.11
Testing on Matrix is not necessary atm since lot of dependencies are still missing. Test only on Leia.
Great! I'll be happy to test it! :+1:
@artemplaksiy see also #126 you can test directly the current master there have been a breakthrough last night regarding the Kids category :)
Search is working properly now. Attaching the log: test_kodi.log.zip
There are few findings:
However, all this issues apparently are not relevant to this bug, so I think we can close it and release the fix.
Tnx for reporting will look into those issues and try to polish the rough edges :) What search string returned such a large result? I should probably limit the search to 50 results more is not going to be useful anyway...
This one: https://czapi.hbogo.eu/v8/Search/Json/ENG/COMP/pa/-/-/-/-/-/3 I know, there are only two chars which shouldn't be used, but yesterday it was stuck with four also ("thro" for example). It's worth to point that after several attempts plug-in successfully displaying the results.. maybe a cache helping.
Yes, it's the cache helping the add-on cache all requests with 24h validity so no request is repeated more than once every 24h to HBO go. But such large result will generate a lot of additional requests to hbo go with the current code, to get additional content info like plot ecc... so i suggest not testing that again until fixed to avoid spikes in requests and potential trouble. I will limit the search result and implement the 3 char min requirement before release probably later today. Tnx for letting me know.
Is fixed now is already in master will make a release later today. Now it won't send searches below 3 chars, it limit to 20 results at API level and i also implemented a hard 20 result limit client side.
Describe the bug Search doesn't return all items available on HBO
To Reproduce Steps to reproduce the behaviour:
Expected behaviour Currently there are two matches available in HBO library:
Debug log
search_kodi.log
Operating System
Additional informatin on the environment
Kodi (18.2 Git:newclock5_18.2-Leia). Platform: Linux ARM 32-bit Using Release Kodi x32 build (version for Raspberry Pi) Kodi compiled 2019-05-04 by GCC 8.2.0 for Linux ARM 32-bit version 4.19.36 (267044) Running on LibreELEC (official): 9.0.2, kernel: Linux ARM 32-bit version 4.19.36