Fix bug where file extension is never specified for text posts
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user