Skip to content

Commit

Permalink
use id as text fall back
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Aug 21, 2024
1 parent 58f4b99 commit 11e5a5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ofscraper/classes/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ def file_text(self):
text = self.get_text()
text = self.file_cleanup(text, mediatype=self.mediatype)
text = self.text_trunicate(text)
if not text:
return self.id
return text

@property
Expand Down

0 comments on commit 11e5a5f

Please sign in to comment.