OTW/AO3: Don't apply series page handling to non-series pages

This commit is contained in:
Jim Miller 2025-10-19 22:14:08 -05:00
parent 74bc398994
commit c14f1014b8

View file

@ -674,7 +674,7 @@ class BaseOTWAdapter(BaseSiteAdapter):
## easiest way to get all the weird URL possibilities and stay ## easiest way to get all the weird URL possibilities and stay
## up to date with future changes. ## up to date with future changes.
m = re.match(self.getSiteURLPattern().replace('/works/','/series/'),url) m = re.match(self.getSiteURLPattern().replace('/works/','/series/'),url)
if m: if m and m.group('id'): # only series, not tags, collections, etc.
seriesid = m.group('id') seriesid = m.group('id')
soup = self.make_soup(data) soup = self.make_soup(data)
retval = {} retval = {}