Skip to content

Commit a62c4be

Browse files
committed
just a release that prints the videoInfo when retrieved. Used for debugging only
1 parent 7aa82ea commit a62c4be

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>com.sapher</groupId>
88
<artifactId>youtubedl</artifactId>
9-
<version>1.3</version>
9+
<version>1.3-print-info</version>
1010
<packaging>jar</packaging>
1111

1212
<name>YoutubeDL wrapper</name>

src/main/java/com/sapher/youtubedl/YoutubeDL.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ public static VideoInfo getVideoInfo(String url) throws YoutubeDLException {
143143

144144
try {
145145
videoInfo = objectMapper.readValue(response.getOut(), VideoInfo.class);
146+
System.out.println("videoInfo="+videoInfo.toString());
146147
} catch (IOException e) {
147148
throw new YoutubeDLException("Unable to parse video information: " + e.getMessage());
148149
}

src/main/java/com/sapher/youtubedl/YoutubeDLProxychains.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ public static VideoInfo getVideoInfo(String url) throws YoutubeDLException {
6767

6868
try {
6969
videoInfo = objectMapper.readValue(output, VideoInfo.class);
70+
System.out.println("videoInfo="+videoInfo.toString());
7071
} catch (IOException e) {
7172
throw new YoutubeDLException("Unable to parse video information: " + e.getMessage());
7273
}

src/test/java/com/sapher/youtubedl/YoutubeDLProxychainsTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
public class YoutubeDLProxychainsTest{
1313

1414
private final static String DIRECTORY = System.getProperty("java.io.tmpdir");
15-
private final static String VIDEO_URL = "https://www.youtube.com/watch?v=nMfPqeZjc2c";
15+
//private final static String VIDEO_URL = "https://www.youtube.com/watch?v=nMfPqeZjc2c";
16+
private final static String VIDEO_URL = "https://www.youtube.com/watch?v=x3hGMgd2X14";
1617
private final static String NONE_EXISTENT_VIDEO_URL = "https://www.youtube.com/watch?v=dQw4w9WgXcZ";
1718

1819
/**@Test

0 commit comments

Comments
 (0)