Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions plugin.video.sarpur/addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.sarpur"
name="Sarpur"
version="5.1"
version="5.2"
provider-name="Dagur Páll Ammendrup">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
Expand All @@ -25,12 +25,11 @@
<icon>resources/icon.png</icon>
<fanart>resources/fanart.jpg</fanart>
</assets>
<news>Version 5.1 (2024-03-14)
- Various fixes because of API changes on ruv.is
- Formatted code with black
<news>Version 5.2(2025-04-26)
- Fix search by updating api key (indridieinarsson)

Version 5.0 (2021-02-23)
- Upgraded to Python 3 for Kodi 19 compatibility
- Fixed podcast scraping</news>
Version 5.1 (2024-03-14)
- Various fixes because of API changes on ruv.is
- Formatted code with black</news>
</extension>
</addon>
2 changes: 1 addition & 1 deletion plugin.video.sarpur/sarpur/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def search(query, type="tv"):
gql = {
"operationName": "getSearch",
"variables": f'{{"type":"{type}","text":"{query}"}}',
"extensions": '{"persistedQuery":{"version":1,"sha256Hash":"99be6d8b3c99b265086df4b6d87e72d005bdbf1cf0d50173610632bc0ecf7ff5"}}',
"extensions": '{"persistedQuery":{"version":1,"sha256Hash":"823f9e99e09dadeca8896ea9f29374429e6fc3c4be2d2c2a93e7ce6dc65eec41"}}',
}
req = requests.get(GRAPHQL_URL, headers={"Content-Type": "text/plain"}, params=gql)
return req.json()["data"]["Search"]
Expand Down