aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/facebook.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2024-12-22 05:45:18 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2024-12-22 05:45:18 -0500
commitbb8260277ab7483652c6c1526a15d62da92acc96 (patch)
tree02959c9d5aceb66f4429e0be1bc927921e01bbdc /gallery_dl/extractor/facebook.py
parentf6877087773089220d68288d055276fca6c556d4 (diff)
New upstream version 1.28.2.upstream/1.28.2
Diffstat (limited to 'gallery_dl/extractor/facebook.py')
-rw-r--r--gallery_dl/extractor/facebook.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gallery_dl/extractor/facebook.py b/gallery_dl/extractor/facebook.py
index 04acfc5..2f3fdbf 100644
--- a/gallery_dl/extractor/facebook.py
+++ b/gallery_dl/extractor/facebook.py
@@ -40,7 +40,8 @@ class FacebookExtractor(Extractor):
@staticmethod
def decode_all(txt):
return text.unescape(
- txt.encode("utf-8").decode("unicode_escape")
+ txt.encode().decode("unicode_escape")
+ .encode("utf_16", "surrogatepass").decode("utf_16")
).replace("\\/", "/")
@staticmethod