mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-25 07:05:49 +00:00
Update ExtractorYoutubeDL.java
This commit is contained in:
committed by
Barbara Miller
parent
677744e756
commit
122417c0fb
@@ -452,14 +452,13 @@ public class ExtractorYoutubeDL extends Extractor
|
||||
*/
|
||||
protected YoutubeDLResults runYoutubeDL(CrawlURI uri) {
|
||||
/*
|
||||
* --format=best
|
||||
*
|
||||
* best: Select the best quality format represented by a single file
|
||||
* with video and audio.
|
||||
* https://github.com/ytdl-org/youtube-dl/blob/master/README.md#format-selection
|
||||
* updated for yt-dlp v.2023.07.06
|
||||
* Download the best video with best codec no better than h264 and
|
||||
* with height no larger than 576...
|
||||
* https://github.com/yt-dlp/yt-dlp#format-selection-examples
|
||||
*/
|
||||
ProcessBuilder pb = new ProcessBuilder("yt-dlp", "--ignore-config",
|
||||
"--simulate", "--dump-single-json", "--format=best[height <=? 576]",
|
||||
ProcessBuilder pb = new ProcessBuilder("youtube-dl", "--ignore-config",
|
||||
"--simulate", "--dump-single-json", "-S codec:h264,height:576",
|
||||
"--no-cache-dir", "--no-playlist",
|
||||
"--playlist-end=" + MAX_VIDEOS_PER_PAGE, uri.toString());
|
||||
logger.info("running: " + String.join(" ", pb.command()));
|
||||
|
||||
Reference in New Issue
Block a user