mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 12:01:28 +00:00
[instagram] really fix uploader_id detection (Fixes #1038)
This commit is contained in:
parent
73b57f0ccb
commit
aa6b734e02
|
@ -22,8 +22,9 @@ def _real_extract(self, url):
|
||||||
r'<title>(.+?)</title>',
|
r'<title>(.+?)</title>',
|
||||||
webpage, u'title', flags=re.DOTALL)
|
webpage, u'title', flags=re.DOTALL)
|
||||||
title = re.sub(u'(?: *\(Videos?\))? \u2022 Instagram$', '', html_title).strip()
|
title = re.sub(u'(?: *\(Videos?\))? \u2022 Instagram$', '', html_title).strip()
|
||||||
uploader_id = self._html_search_regex(r'<div class="media-user" id="media_user"><h2><a href="[^"]*">([^<]*)</a></h2>',
|
uploader_id = self._html_search_regex(
|
||||||
webpage, u'uploader name', fatal=False)
|
r'<div class="media-user" id="media_user">.*?<h2><a href="[^"]*">([^<]*)</a></h2>',
|
||||||
|
webpage, u'uploader id', fatal=False, flags=re.DOTALL)
|
||||||
ext = 'mp4'
|
ext = 'mp4'
|
||||||
|
|
||||||
return [{
|
return [{
|
||||||
|
|
Loading…
Reference in a new issue