summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/facebook.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-03-15 18:05:15 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2025-03-15 18:05:15 -0400
commit8026a3c45446030d7af524bfc487d3462c8114ef (patch)
tree0818c682a06f620c08a8b6b4c07f4935bd79493a /gallery_dl/extractor/facebook.py
parent243d1f1beb4e4eb75a524f1aff948c47761a4f1d (diff)
New upstream version 1.29.2.upstream/1.29.2
Diffstat (limited to 'gallery_dl/extractor/facebook.py')
-rw-r--r--gallery_dl/extractor/facebook.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/gallery_dl/extractor/facebook.py b/gallery_dl/extractor/facebook.py
index 1ec6adc..b284ee8 100644
--- a/gallery_dl/extractor/facebook.py
+++ b/gallery_dl/extractor/facebook.py
@@ -99,9 +99,10 @@ class FacebookExtractor(Extractor):
'"message":{"delight_ranges"',
'"},"message_preferred_body"'
).rsplit('],"text":"', 1)[-1]),
- "date": text.parse_timestamp(text.extr(
- photo_page, '\\"publish_time\\":', ','
- )),
+ "date": text.parse_timestamp(
+ text.extr(photo_page, '\\"publish_time\\":', ',') or
+ text.extr(photo_page, '"created_time":', ',')
+ ),
"url": FacebookExtractor.decode_all(text.extr(
photo_page, ',"image":{"uri":"', '","'
)),