From 2ccf6a9e35fc4e4b4e83d68ba55cac45ff33d09c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Thu, 8 Aug 2019 18:48:06 +0200 Subject: [PATCH] [instagram] make extractor tests happy (#373) --- docs/supportedsites.rst | 2 +- gallery_dl/extractor/instagram.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/supportedsites.rst b/docs/supportedsites.rst index cce36542..cd34f2dc 100644 --- a/docs/supportedsites.rst +++ b/docs/supportedsites.rst @@ -135,7 +135,7 @@ Turboimagehost https://www.turboimagehost.com/ individual Images .. |deviantart-C| replace:: Collections, Deviations, Favorites, Folders, Galleries, Journals, Popular Images, Scraps, Sta.sh .. |flickr-C| replace:: Images from Users, Albums, Favorites, Galleries, Groups, individual Images, Search Results .. |hentaifoundry-C| replace:: Images from Users, Favorites, individual Images, Popular Images, Recent Images, Scraps -.. |instagram-C| replace:: Images from Users, individual Images, Stories, Tag-Searches +.. |instagram-C| replace:: Images from Users, Channels, individual Images, Stories, Tag-Searches .. |joyreactor-C| replace:: Images from Users, Posts, Search Results, Tag-Searches .. |nijie-C| replace:: Images from Users, Doujin, Favorites, individual Images .. |pixiv-C| replace:: Images from Users, Favorites, Follows, pixiv.me Links, Rankings, Search Results, Individual Images diff --git a/gallery_dl/extractor/instagram.py b/gallery_dl/extractor/instagram.py index a22aa44d..c4a3c0a0 100644 --- a/gallery_dl/extractor/instagram.py +++ b/gallery_dl/extractor/instagram.py @@ -392,9 +392,9 @@ class InstagramUserExtractor(InstagramExtractor): return self._extract_profilepage(url) -class InstagramProfileChannelExtractor(InstagramExtractor): +class InstagramChannelExtractor(InstagramExtractor): """Extractor for ProfilePage channel""" - subcategory = "user" + subcategory = "channel" pattern = (r"(?:https?://)?(?:www\.)?instagram\.com" r"/(?!p/|explore/|directory/|accounts/|stories/|tv/)" r"([^/?&#]+)/channel")