From 883938994b701a1c47f59cda99f7a2a76bae0ed2 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sun, 17 May 2020 20:30:37 -0500 Subject: [PATCH] Change to
in chapter text adapter_adultfanfictionorg --- fanficfare/adapters/adapter_adultfanfictionorg.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fanficfare/adapters/adapter_adultfanfictionorg.py b/fanficfare/adapters/adapter_adultfanfictionorg.py index c1f8ea08..a0900e84 100644 --- a/fanficfare/adapters/adapter_adultfanfictionorg.py +++ b/fanficfare/adapters/adapter_adultfanfictionorg.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -- coding: utf-8 -- -# Copyright 2013 Fanficdownloader team, 2018 FanFicFare team +# Copyright 2013 Fanficdownloader team, 2020 FanFicFare team # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -402,5 +402,7 @@ class AdultFanFictionOrgAdapter(BaseSiteAdapter): chaptertag = soup.find('div',{'class' : 'pagination'}).parent.findNext('td') if None == chaptertag: raise exceptions.FailedToDownload("Error downloading Chapter: {0}! Missing required element!".format(url)) + # Change td to a div. + chaptertag.name='div' return self.utf8FromSoup(url,chaptertag)