Skip to content

Commit

Permalink
Einzelupdate arte.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rols1 committed Nov 17, 2024
1 parent 0590aa2 commit 72c5460
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions resources/lib/arte.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
# Auswertung via Strings statt json (Performance)
#
################################################################################
# <nr>48</nr> # Numerierung für Einzelupdate
# Stand: 29.09.2024
# <nr>49</nr> # Numerierung für Einzelupdate
# Stand: 17.11.2024

# Python3-Kompatibilität:
from __future__ import absolute_import # sucht erst top-level statt im akt. Verz.
Expand Down Expand Up @@ -1322,7 +1322,12 @@ def get_next_url(page):

page_akt =stringextract('"page": ', ',', p)
page_anz =stringextract('"pages": ', ',', p)
anz =stringextract('"totalCount": ', ',', p)
try:
anz = re.search(r'totalCount": (\d+)', p).group(1)
except Exception as exception:
anz=""
PLog("anz_error: " + str(exception))


next_url = stringextract('"next": "', '"', p)
next_page = stringextract('page=', '&', next_url)
Expand Down

0 comments on commit 72c5460

Please sign in to comment.