mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-04-28 09:54:14 +02:00
Normalize anthology URLs both from page and from epub.
This commit is contained in:
parent
8cfa65d01b
commit
5cd4f23011
1 changed files with 2 additions and 2 deletions
|
|
@ -787,7 +787,7 @@ class FanFicFarePlugin(InterfaceAction):
|
|||
urlmapfile = {}
|
||||
url_list = []
|
||||
for f in filenames:
|
||||
url = get_dcsource(f)
|
||||
url = adapters.getNormalStoryURL(get_dcsource(f))
|
||||
if url:
|
||||
urlmapfile[url]=f
|
||||
url_list.append(url)
|
||||
|
|
@ -807,7 +807,7 @@ class FanFicFarePlugin(InterfaceAction):
|
|||
# it's *not* a valid story URL.
|
||||
mergeurl = self.get_story_url(db,book_id)
|
||||
if mergeurl and not self.is_good_downloader_url(mergeurl):
|
||||
url_list = self.get_urls_from_page(mergeurl)
|
||||
url_list = [ adapters.getNormalStoryURL(url) for url in self.get_urls_from_page(mergeurl) ]
|
||||
|
||||
url_list_text = "\n".join(url_list)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue