From 6667186826fdb6259ec6a9cfd57b878ed416c38a Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Wed, 22 Jan 2020 14:12:36 -0800 Subject: [PATCH] java 8 compatibility --- .../modules/extractor/ExtractorYoutubeDL.java | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/contrib/src/main/java/org/archive/modules/extractor/ExtractorYoutubeDL.java b/contrib/src/main/java/org/archive/modules/extractor/ExtractorYoutubeDL.java index 81b9a1d5..661e0669 100644 --- a/contrib/src/main/java/org/archive/modules/extractor/ExtractorYoutubeDL.java +++ b/contrib/src/main/java/org/archive/modules/extractor/ExtractorYoutubeDL.java @@ -347,22 +347,6 @@ public class ExtractorYoutubeDL extends Extractor } return n; } - - @Override - public byte[] readNBytes(int len) throws IOException { - byte[] buf = in.readNBytes(len); - out.write(buf); - return buf; - } - - @Override - public int readNBytes(byte[] b, int off, int len) throws IOException { - int n = in.readNBytes(b, off, len); - if (n > 0) { - out.write(b, off, n); - } - return n; - } } /** @@ -488,7 +472,7 @@ public class ExtractorYoutubeDL extends Extractor // the process should already have completed proc.waitFor(1, TimeUnit.SECONDS); } catch (InterruptedException e) { - logger.warning("killing pid " + proc.pid()); + logger.warning("youtube-dl still running? killing it"); proc.destroyForcibly(); } threadPool.shutdown();