From: Jaime Marquínez Ferrándiz Date: Sat, 2 Apr 2016 16:01:58 +0000 (+0200) Subject: [instagram:user] Fix extraction (fixes #9059) X-Git-Tag: 2021.01.07~5940 X-Git-Url: https://jfr.im/git/yt-dlp.git/commitdiff_plain/2defa7d75aa424c16ca76a25a05297daed0bb5bd [instagram:user] Fix extraction (fixes #9059) The URL for the next page was incorrect and we always got the same page, therefore it got trapped in an infinite loop. --- diff --git a/youtube_dl/extractor/instagram.py b/youtube_dl/extractor/instagram.py index 4e62098b0..11bb58d8a 100644 --- a/youtube_dl/extractor/instagram.py +++ b/youtube_dl/extractor/instagram.py @@ -152,7 +152,7 @@ def _real_extract(self, url): if not page['items']: break - max_id = page['items'][-1]['id'] + max_id = page['items'][-1]['id'].split('_')[0] media_url = ( 'http://instagram.com/%s/media?max_id=%s' % ( uploader_id, max_id))