From 8f664d93690b0cc11b342c5f67c3ffc315fafa02 Mon Sep 17 00:00:00 2001 From: Philip Ardery Date: Sat, 14 Mar 2015 22:54:13 -0400 Subject: [PATCH] added variable for max direct urls scrapped --- youtube_dl/extractor/moviestorm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/moviestorm.py b/youtube_dl/extractor/moviestorm.py index 00cce76ed..b492449da 100644 --- a/youtube_dl/extractor/moviestorm.py +++ b/youtube_dl/extractor/moviestorm.py @@ -82,6 +82,7 @@ class MovieStormIE(InfoExtractor): max_retries = 5 retry_wait = 5 direct_urls = [] + direct_url_max = 50 def _parse_target(self, target): uri = compat_urlparse.urlparse(target) @@ -149,7 +150,7 @@ class MovieStormIE(InfoExtractor): for watch_url in watch_urls: # Stop after gathering 50 urls, moviestorm sends 503 if # request too many in rapid succession - if direct_url_count < 50: + if direct_url_count < self.direct_url_max: (_, _, token) = self._parse_target(watch_url) watchpage = self._download_webpage( watch_url, token,