[weibo] fix 'livephoto' filename extensions (#5287)

This commit is contained in:
Mike Fährmann
2024-03-06 15:55:00 +01:00
parent a8027745e3
commit 0676a9d6ec
2 changed files with 6 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ class WeiboExtractor(Extractor):
append(pic["largest"].copy())
file = {"url": pic["video"]}
file["filehame"], _, file["extension"] = \
file["filename"], _, file["extension"] = \
pic["video"].rpartition("%2F")[2].rpartition(".")
append(file)