mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-16 05:43:59 +01:00
Save corrected URL in DownloadMeta record so status & recent have good URL.
This commit is contained in:
parent
433e371b74
commit
f25eae83d3
1 changed files with 2 additions and 0 deletions
2
main.py
2
main.py
|
|
@ -293,6 +293,7 @@ class FanfictionDownloader(UserConfigServer):
|
|||
story = adapter.getStoryMetadataOnly()
|
||||
download.title = story.getMetadata('title')
|
||||
download.author = story.getMetadata('author')
|
||||
download.url = story.getMetadata('storyUrl')
|
||||
download.put()
|
||||
|
||||
taskqueue.add(url='/fdowntask',
|
||||
|
|
@ -413,6 +414,7 @@ class FanfictionDownloaderTask(UserConfigServer):
|
|||
logging.debug('getOutputFileName:'+writer.getOutputFileName())
|
||||
download.title = adapter.getStory().getMetadata('title')
|
||||
download.author = adapter.getStory().getMetadata('author')
|
||||
download.url = adapter.getStory().getMetadata('storyUrl')
|
||||
download.put()
|
||||
index=0
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue