Skip to content

Commit 1b8e7f7

Browse files
committed
youtube-dl --no-playlist
1 parent 812e96d commit 1b8e7f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/src/main/java/org/archive/modules/extractor/ExtractorYoutubeDL.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,8 @@ protected YoutubeDLResults runYoutubeDL(CrawlURI uri) {
421421
*/
422422
ProcessBuilder pb = new ProcessBuilder("youtube-dl", "--ignore-config",
423423
"--simulate", "--dump-single-json", "--format=best[height <=? 576]",
424-
"--no-cache-dir", "--playlist-end=" + MAX_VIDEOS_PER_PAGE, uri.toString());
424+
"--no-cache-dir", "--no-playlist",
425+
"--playlist-end=" + MAX_VIDEOS_PER_PAGE, uri.toString());
425426
logger.info("running: " + String.join(" ", pb.command()));
426427

427428
Process proc = null;

0 commit comments

Comments
 (0)