{"action":"closed","issue":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/9059","repository_url":"https://api.github.com/repos/rg3/youtube-dl","labels_url":"https://api.github.com/repos/rg3/youtube-dl/issues/9059/labels{/name}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/issues/9059/comments","events_url":"https://api.github.com/repos/rg3/youtube-dl/issues/9059/events","html_url":"https://github.com/rg3/youtube-dl/issues/9059","id":145373084,"number":9059,"title":"Downloading all items for an Instagram user seems to loop indefinitely.","user":{"login":"Vrihub","id":3929903,"avatar_url":"https://avatars.githubusercontent.com/u/3929903?v=3","gravatar_id":"","url":"https://api.github.com/users/Vrihub","html_url":"https://github.com/Vrihub","followers_url":"https://api.github.com/users/Vrihub/followers","following_url":"https://api.github.com/users/Vrihub/following{/other_user}","gists_url":"https://api.github.com/users/Vrihub/gists{/gist_id}","starred_url":"https://api.github.com/users/Vrihub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vrihub/subscriptions","organizations_url":"https://api.github.com/users/Vrihub/orgs","repos_url":"https://api.github.com/users/Vrihub/repos","events_url":"https://api.github.com/users/Vrihub/events{/privacy}","received_events_url":"https://api.github.com/users/Vrihub/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-02T13:27:51Z","updated_at":"2016-04-02T16:04:35Z","closed_at":"2016-04-02T16:04:35Z","body":"### What is the purpose of your *issue*?\r\n- [x] Bug report (encountered problems with youtube-dl)\r\n\r\n---\r\n### If the purpose of this *issue* is a *bug report*, *site support request* or you are not completely sure provide the full verbose output as follows:\r\n\r\nAdd `-v` flag to **your command line** you run youtube-dl with, copy the **whole** output and insert it here. It should look similar to one below (replace it with **your** log inserted between triple ```):\r\n```\r\n$ youtube-dl -v -i --skip-download --write-pages --restrict-filenames https://www.instagram.com/natljazzmuseum/\r\n[debug] System config: []\r\n[debug] User config: []\r\n[debug] Command-line args: ['-v', '-i', '--skip-download', '--write-pages', '--restrict-filenames', 'https://www.instagram.com/natljazzmuseum/']\r\n[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8\r\n[debug] youtube-dl version 2016.04.01\r\n[debug] Python version 3.4.2 - Linux-3.2.0-3-686-pae-i686-with-debian-wheezy-sid\r\n[debug] exe versions: ffmpeg 2.8-1, ffprobe 2.8-1, rtmpdump 2.4\r\n[debug] Proxy map: {}\r\n[instagram:user] natljazzmuseum: Downloading page 1 \r\n[instagram:user] Saving request to natljazzmuseum_http_-_instagram.com_natljazzmuseum_media.dump\r\n[instagram:user] natljazzmuseum: Downloading page 2 \r\n[instagram:user] Saving request to natljazzmuseum_http_-_instagram.com_natljazzmuseum_mediamax_id=1111788462614946985_1640045680.dump\r\n[instagram:user] natljazzmuseum: Downloading page 3 \r\n[instagram:user] Saving request to natljazzmuseum_http_-_instagram.com_natljazzmuseum_mediamax_id=1111788462614946985_1640045680.dump\r\n[instagram:user] natljazzmuseum: Downloading page 4 \r\n[instagram:user] Saving request to natljazzmuseum_http_-_instagram.com_natljazzmuseum_mediamax_id=1111788462614946985_1640045680.dump\r\n[instagram:user] natljazzmuseum: Downloading page 5 \r\n[instagram:user] Saving request to natljazzmuseum_http_-_instagram.com_natljazzmuseum_mediamax_id=1111788462614946985_1640045680.dump\r\n[instagram:user] natljazzmuseum: Downloading page 6 \r\n[instagram:user] Saving request to natljazzmuseum_http_-_instagram.com_natljazzmuseum_mediamax_id=1111788462614946985_1640045680.dump\r\n[instagram:user] natljazzmuseum: Downloading page 7 \r\n[instagram:user] Saving request to natljazzmuseum_http_-_instagram.com_natljazzmuseum_mediamax_id=1111788462614946985_1640045680.dump\r\n[instagram:user] natljazzmuseum: Downloading page 8 \r\n[instagram:user] Saving request to natljazzmuseum_http_-_instagram.com_natljazzmuseum_mediamax_id=1111788462614946985_1640045680.dump\r\n[instagram:user] natljazzmuseum: Downloading page 9 \r\n[instagram:user] Saving request to natljazzmuseum_http_-_instagram.com_natljazzmuseum_mediamax_id=1111788462614946985_1640045680.dump\r\n[instagram:user] natljazzmuseum: Downloading page 10 \r\n[instagram:user] Saving request to natljazzmuseum_http_-_instagram.com_natljazzmuseum_mediamax_id=1111788462614946985_1640045680.dump\r\n...\r\nand so on... until I press Ctrl-C\r\n```\r\n---\r\n### Description of your *issue*, suggested solution and other information\r\n\r\nDownloading all items for an Instagram user seems to loop indefinitely.\r\n\r\nSince today, downloading all items from an Instagram profile doesn't work; if I run the command using `--write-pages` (see the log above) only two identical *.dump files are actually written to disc:\r\n\r\n    natljazzmuseum_http_-_instagram.com_natljazzmuseum_media.dump\r\n    natljazzmuseum_http_-_instagram.com_natljazzmuseum_mediamax_id=1111788462614946985_1640045680.dump\r\n\r\nIn fact, the program keeps displaying messages as if it was downloading further pages, but without actually doing anything; it seems trapped in an infinite loop, until I press Ctrl-C.\r\n\r\nUsing the example URL provided above I would expect the program to download about 6 *.dump files (105 posts are advertised in the instagram page, and IIRC there are 20 posts per page).\r\n\r\n"}}