mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-12-01 21:36:42 +02:00
@@ -807,6 +807,8 @@ class TestUtil(unittest.TestCase):
|
||||
testPL(5, 2, (0, 3), [0, 1, 2])
|
||||
testPL(5, 2, (1, 4), [1, 2, 3])
|
||||
testPL(5, 2, (2, 99), [2, 3, 4])
|
||||
testPL(5, 2, (0, 0), [])
|
||||
testPL(5, 2, (2, 1), [])
|
||||
testPL(5, 2, (20, 99), [])
|
||||
|
||||
def test_read_batch_urls(self):
|
||||
|
||||
@@ -2337,6 +2337,8 @@ class PagedList:
|
||||
return page_results
|
||||
|
||||
def getslice(self, start=0, end=None):
|
||||
if end is not None and start >= end:
|
||||
return []
|
||||
return list(self._getslice(start, end))
|
||||
|
||||
def _getslice(self, start, end):
|
||||
|
||||
Reference in New Issue
Block a user