INNER CODE UNIT · Dart

maxContinuations

sheikhhaziq/gyawun_music · lib/services/download_manager.dart:461

    int maxContinuations = 50, // playlist and albums with up to 24 * 51 songs
  }) async {
    final songs = [];
    if (playlistId != null) {
      Map result = await GetIt.I<YTMusic>().getNextSongList(
        playlistId: playlistId,
      );
      songs.addAll(result['contents']);
      String? continuation = result['continuation'];
      while (maxContinuations > 0 && continuation != null) {
        result = await GetIt.I<YTMusic>().getNextSongList(
          continuation: continuation,
        );
        songs.addAll(result['contents']);
        continuation = result['continuation'];
        maxContinuations -= 1;
      }
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…