From 7306069ebe347f5a00b65f0556c57fef9a36d728 Mon Sep 17 00:00:00 2001 From: sigma67 Date: Thu, 28 Oct 2021 22:19:02 +0200 Subject: [PATCH] explain limit parameter workings in docs (#190) --- docs/source/faq.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/source/faq.rst b/docs/source/faq.rst index 011cb0b..73a03b1 100644 --- a/docs/source/faq.rst +++ b/docs/source/faq.rst @@ -72,3 +72,11 @@ What is a browseId? *********************************************************************** A ``browseId`` is an internal, globally unique identifier used by YouTube Music for browsable content. + +Why is ytmusicapi returning more results than requested with the limit parameter? +*********************************************************************** +YouTube Music always returns increments of a specific pagination value, usually between 20 and 100 items at a time. +This is the case if a ytmusicapi method supports the ``limit`` parameter. The default value of the ``limit`` parameter +indicates the server-side pagination increment. ytmusicapi will keep fetching continuations from the server until it has +reached at least the ``limit`` parameter, and return all of these results. +