From 11e5a5ffbf75a73683d739f093015adcddcb83ae Mon Sep 17 00:00:00 2001 From: datawhores Date: Wed, 21 Aug 2024 10:59:00 -0500 Subject: [PATCH] use id as text fall back --- ofscraper/classes/media.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ofscraper/classes/media.py b/ofscraper/classes/media.py index cd03dd67..201e2a60 100644 --- a/ofscraper/classes/media.py +++ b/ofscraper/classes/media.py @@ -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