[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
This commit is contained in:
parent
cf5f6ed5be
commit
6be08ce602
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue