adapter_storiesonline(FineStories.com) fix for missing author link in header tag.

This commit is contained in:
Jim Miller 2018-03-12 19:00:58 -05:00
parent 99880b7c97
commit 33480c3ce4

View file

@ -176,7 +176,7 @@ class StoriesOnlineNetAdapter(BaseSiteAdapter):
# Find authorid and URL from... author url. Sometimes in top,
# other times in footer.
authfrom = soup.find('div', {'id':'top-header'})
if authfrom is None:
if authfrom is None or 'author' not in str(authfrom):
authfrom = soup.find('footer')
alist = authfrom.findAll('a', {'rel' : 'author'})
for a in alist: