Skip to content

Commit

Permalink
[nitter] extract videos from 'source' elements (#3912)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Apr 14, 2023
1 parent 9501579 commit 2cd4411
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gallery_dl/extractor/nitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ def items(self):
"filename" : name.rpartition(".")[0],
"extension": "mp4",
})

for url in text.extract_iter(
attachments, '<source src="', '"'):
append(text.nameext_from_url(url, {"url": url}))

else:
files = ()
tweet["count"] = len(files)
Expand Down

0 comments on commit 2cd4411

Please sign in to comment.