[booru] call nameext_from_url() before update() and _prepare()
to be able to overwrite filename and extension in _prepare()
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright 2015-2021 Mike Fährmann
|
# Copyright 2015-2022 Mike Fährmann
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License version 2 as
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
@@ -41,9 +41,9 @@ class BooruExtractor(BaseExtractor):
|
|||||||
page_html = self._extended_tags(post)
|
page_html = self._extended_tags(post)
|
||||||
if notes:
|
if notes:
|
||||||
self._notes(post, page_html)
|
self._notes(post, page_html)
|
||||||
self._prepare(post)
|
|
||||||
post.update(data)
|
|
||||||
text.nameext_from_url(url, post)
|
text.nameext_from_url(url, post)
|
||||||
|
post.update(data)
|
||||||
|
self._prepare(post)
|
||||||
|
|
||||||
yield Message.Directory, post
|
yield Message.Directory, post
|
||||||
yield Message.Url, url, post
|
yield Message.Url, url, post
|
||||||
|
|||||||
Reference in New Issue
Block a user