Fix bug where file extension is never specified for text posts
This commit is contained in:
parent
945116063f
commit
d3c8897f6a
|
@ -17,7 +17,7 @@ class SelfPost(BaseDownloader):
|
|||
super().__init__(post)
|
||||
|
||||
def find_resources(self, authenticator: Optional[SiteAuthenticator] = None) -> list[Resource]:
|
||||
out = Resource(self.post, self.post.url)
|
||||
out = Resource(self.post, self.post.url, '.txt')
|
||||
out.content = self.export_to_string().encode('utf-8')
|
||||
out.create_hash()
|
||||
return [out]
|
||||
|
|
Loading…
Reference in a new issue