From 7719ef4681addaf43e2c68881b269e366386e124 Mon Sep 17 00:00:00 2001 From: Andrew Udvare Date: Sat, 24 Nov 2018 04:05:38 -0500 Subject: [PATCH] [Minds] Use negative lookahead in channel IE to ignore invalid names --- youtube_dl/extractor/minds.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/youtube_dl/extractor/minds.py b/youtube_dl/extractor/minds.py index 4517fc794..4523d0938 100644 --- a/youtube_dl/extractor/minds.py +++ b/youtube_dl/extractor/minds.py @@ -133,13 +133,11 @@ class MindsActivityIE(InfoExtractor): class MindsChannelIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?minds\.com/(?P[^/]+)' + _VALID_URL = r'https?://(?:www\.)?minds\.com/(?!newsfeed|media|api)(?P[^/]+)' def _real_extract(self, url): channel_name = self._match_id(url) api_url = 'https://www.minds.com/api/v1/channel/%s' % channel_name - if channel_name == 'media': - return self.url_result(url, ie='Minds') token = self._get_cookies(url).get('XSRF-TOKEN') headers = { 'authority': 'www.minds.com',