summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-11-07 23:03:00 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2022-11-07 23:03:00 +0100
commit4be09641a33e00c84a257f4358ff6efd2fb9c619 (patch)
tree31ea42f891fe5b9327a42fa8dfea9ac0fffadc44
parent200000-999999 removed from server, added check to skip them (diff)
downloadbiblos-stat-4be09641a33e00c84a257f4358ff6efd2fb9c619.tar
biblos-stat-4be09641a33e00c84a257f4358ff6efd2fb9c619.tar.gz
biblos-stat-4be09641a33e00c84a257f4358ff6efd2fb9c619.tar.bz2
biblos-stat-4be09641a33e00c84a257f4358ff6efd2fb9c619.tar.lz
biblos-stat-4be09641a33e00c84a257f4358ff6efd2fb9c619.tar.xz
biblos-stat-4be09641a33e00c84a257f4358ff6efd2fb9c619.tar.zst
biblos-stat-4be09641a33e00c84a257f4358ff6efd2fb9c619.zip
-rwxr-xr-xgather.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gather.py b/gather.py
index 6b5cd36..d52995c 100755
--- a/gather.py
+++ b/gather.py
@@ -104,7 +104,7 @@ try:
elif r.text.startswith('<error xmlns="http://ns.adobe.com/adept" data="E_URLLINK_PARAMETER_SYNTAX rights lrt http://cs.alliance.inkbook.eu:443/fulfillment/URLLink.acsm"/>'):
logger.warning(f"received urllink parameter syntax error with no usable data for acsm {acsm_id}, so I did not store anything")
force_acsm_id = acsm_id+1
- if acsm_id >= 199999:
+ if acsm_id >= 199999 and acsm_id <= 999999:
logger.warning(f"on 2022-11-07, library removed access for acsms 200000-999999. skipping to 1000000")
force_acsm_id = 1000000
failed_acsms += 1