Fix broken gallery selector

This commit is contained in:
Thomas Wade 2020-04-21 21:38:32 +09:30
parent 27f3b5009e
commit 49970328f7
2 changed files with 2 additions and 2 deletions

View File

@ -330,7 +330,7 @@ class User:
# Try get the next page
try:
next_page_button = soup.select('.submission-list form button[type=submit]')[0]
next_page_button = soup.select('.submission-list .inline:last-child form button[type=submit]')[0]
next_page_url = FA_BASE_URL + next_page_button.parent.get('action')
except IndexError:
# No next page, null the url to break the loop

View File

@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='FAAPI',
version='0.2.0',
version='0.2.1',
packages=find_packages(),
url='https://tem.party/gitea/tom/FAAPI',
license='WTFPL',