aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxarantolus <xarantolus@protonmail.com>2020-07-10 11:47:13 +0200
committerxarantolus <xarantolus@protonmail.com>2020-07-10 11:47:13 +0200
commitc37ca4732bf806113e2645efaebd037a6bcc0b5c (patch)
tree9e744cc55bdaed1aa9430c930f0f53b817954352
parent5cbe7563bece11e52c833a79b0197ca4444ffe37 (diff)
downloadhypervideo-pre-c37ca4732bf806113e2645efaebd037a6bcc0b5c.tar.lz
hypervideo-pre-c37ca4732bf806113e2645efaebd037a6bcc0b5c.tar.xz
hypervideo-pre-c37ca4732bf806113e2645efaebd037a6bcc0b5c.zip
[youtube] Remote download limit
-rw-r--r--youtube_dl/extractor/youtube.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 745e14fa3..b53376d31 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -3319,8 +3319,6 @@ class YoutubeFeedsInfoExtractor(YoutubeBaseInfoExtractor):
def _entries(self, page):
# The extraction process is the same as for playlists, but the regex
# for the video ids doesn't contain an index
- limit = self._downloader.params.get('max_downloads') or 1000
-
ids = []
more_widget_html = content_html = page
for page_num in itertools.count(1):
@@ -3333,19 +3331,11 @@ class YoutubeFeedsInfoExtractor(YoutubeBaseInfoExtractor):
if not new_ids:
break
- done = False
- if len(new_ids) + len(ids) > limit:
- new_ids = new_ids[:limit - len(ids)]
- done = True
-
ids.extend(new_ids)
for entry in self._ids_to_results(new_ids):
yield entry
- if done:
- break
-
mobj = re.search(r'data-uix-load-more-href="/?(?P<more>[^"]+)"', more_widget_html)
if not mobj:
break