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