Skip to content

Commit 63c9ebf

Browse files
committed
removed unnecessary url extract
1 parent afbb486 commit 63c9ebf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gallery_dl/extractor/facebook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def parse_photo_page(photo_page):
113113
)
114114
}
115115

116-
text.nameext_from_url(text.rextract(photo["url"], "/", "?")[0], photo)
116+
text.nameext_from_url(photo["url"], photo)
117117

118118
photo["followups_ids"] = []
119119
for comment_raw in text.extract_iter(
@@ -204,7 +204,7 @@ def parse_video_page(video_page):
204204
key=lambda x: int(x[0][:-1])
205205
)[-1][1]
206206

207-
text.nameext_from_url(text.rextract(video["url"], "/", "?")[0], video)
207+
text.nameext_from_url(video["url"], video)
208208
text.nameext_from_url(video["filename"] + ".m4a", audio)
209209

210210
return video, audio

0 commit comments

Comments
 (0)