diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-10-06 23:13:53 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-10-06 23:13:53 +0700 |
commit | 6be08ce60205a65a6739667783eead56ccc34456 (patch) | |
tree | 2b06886066bc033dde8a863606bef20a81929f53 /youtube_dl/utils.py | |
parent | cf5f6ed5be8bab252f3ded345b6b1fdf31426661 (diff) |
[utils] Use in OnDemandPagedList by default
Not using cache results in redundant network I/O due to downloading the same pages while using --playlist-items n-m
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 92b22e639..59fb33435 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -1933,7 +1933,7 @@ class PagedList(object): class OnDemandPagedList(PagedList): - def __init__(self, pagefunc, pagesize, use_cache=False): + def __init__(self, pagefunc, pagesize, use_cache=True): self._pagefunc = pagefunc self._pagesize = pagesize self._use_cache = use_cache |