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

[plugin.audio.bbcpodcasts] 2.0.5 #4421

Merged
merged 1 commit into from
Nov 18, 2023
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
5 changes: 4 additions & 1 deletion plugin.audio.bbcpodcasts/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.audio.bbcpodcasts" name="BBC Podcasts" version="2.0.4" provider-name="Heckie">
<addon id="plugin.audio.bbcpodcasts" name="BBC Podcasts" version="2.0.5" provider-name="Heckie">
<requires>
<import addon="xbmc.python" version="3.0.0" />
<import addon="script.module.requests" version="2.25.1" />
Expand All @@ -23,6 +23,9 @@
<website>https://github.com/Heckie75/kodi-addon-bbc-podcasts</website>
<source>https://github.com/Heckie75/kodi-addon-bbc-podcasts/tree/main/plugin.audio.bbcpodcasts</source>
<news>
v2.0.5 (2023-11-15)
- Changed parser after changes on website, i.e. fix paging

v2.0.4 (2023-02-02)
- Improved thumbnail if item is added to favourites

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ def _make_menu(self, path: str, page=None) -> None:

def _get_podcasts(self, url: str, page=None) -> 'list[dict]':

def _parse_pager(soup) -> int:
def _parse_pager(soup: BeautifulSoup) -> int:

navs = soup.select("nav")
if len(navs) >= 3:
lis = navs[-1].find_all("li")
navs = soup.find_all("nav", attrs={"aria-label" : "Page Navigation"})
if len(navs) == 1:
lis = navs[0].find_all("li")
if len(lis) > 0:
if lis[-1].a:
m = re.match(".*page=([0-9]+).*", lis[-1].a["href"])
Expand Down
Loading