mirror of
https://github.com/AgathaSorceress/mstdn-ebooks.git
synced 2024-11-20 03:25:53 +01:00
handle case with a single json page better
This commit is contained in:
parent
eea48dda1c
commit
dbd74ed6fe
5
main.py
5
main.py
@ -193,7 +193,10 @@ for f in following:
|
||||
sys.exit(1)
|
||||
|
||||
pleroma = False
|
||||
if 'next' not in j:
|
||||
if 'next' not in j and 'prev' not in j:
|
||||
# there's only one page of results, don't bother doing anything special
|
||||
pass
|
||||
elif 'next' not in j:
|
||||
print("Using Pleroma compatibility mode")
|
||||
pleroma = True
|
||||
j = j['first']
|
||||
|
Loading…
Reference in New Issue
Block a user