[booru] call nameext_from_url() before update() and _prepare()

to be able to overwrite filename and extension in _prepare()
This commit is contained in:
Mike Fährmann 2022-02-18 00:35:46 +01:00
parent 4fee3a0e52
commit 9ebc20e290
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -1,6 +1,6 @@
# -*- 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
# 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)
if notes:
self._notes(post, page_html)
self._prepare(post)
post.update(data)
text.nameext_from_url(url, post)
post.update(data)
self._prepare(post)
yield Message.Directory, post
yield Message.Url, url, post