From c3d36f134f6dc3a1b974a8155108ce3f2a6e0a3b Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Thu, 13 Mar 2014 16:52:13 +0100 Subject: [googlesearch] Fix next page indicator check --- youtube_dl/extractor/googlesearch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'youtube_dl') diff --git a/youtube_dl/extractor/googlesearch.py b/youtube_dl/extractor/googlesearch.py index 5c2564270..383032d81 100644 --- a/youtube_dl/extractor/googlesearch.py +++ b/youtube_dl/extractor/googlesearch.py @@ -46,6 +46,6 @@ class GoogleSearchIE(SearchInfoExtractor): 'url': mobj.group(1) }) - if (len(entries) >= n) or not re.search(r'class="pn" id="pnnext"', webpage): + if (len(entries) >= n) or not re.search(r'id="pnnext"', webpage): res['entries'] = entries[:n] return res -- cgit v1.2.3