From 1073b16e8042c7efb5d4c6590e99ae08bfced7c3 Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov Date: Mon, 3 Dec 2012 20:44:18 +0100 Subject: [PATCH 1/4] bump version vget 1.0.31-SNAPSHOT --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e1a55c7..1bf1345 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.github.axet vget jar - 1.0.31 + 1.0.31-SNAPSHOT vget vget java video download library https://github.com/axet/vget From 08a0ab700e6d1cc30bcbf459d2e86cf1a3d09156 Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov Date: Mon, 3 Dec 2012 20:44:54 +0100 Subject: [PATCH 2/4] update comment --- src/main/java/com/github/axet/vget/info/VGetParser.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/github/axet/vget/info/VGetParser.java b/src/main/java/com/github/axet/vget/info/VGetParser.java index e6e9564..b976688 100644 --- a/src/main/java/com/github/axet/vget/info/VGetParser.java +++ b/src/main/java/com/github/axet/vget/info/VGetParser.java @@ -34,6 +34,11 @@ void getVideo(VideoInfo vvi, Map sNextVideoURL, VideoQuality } } + // Rare error: + // + // The live recording you're trying to play is still being processed and will be available soon. + // Sorry, please try again later. + // // retry. since youtube may already rendrered propertly quality. throw new DownloadRetry("no video with required quality found"); } From e25df0752d1f9c40e79e15cffcf2c4c251f25b8f Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov Date: Thu, 6 Dec 2012 16:03:36 +0100 Subject: [PATCH 3/4] disable private exception --- .../github/axet/vget/info/YouTubeParser.java | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/github/axet/vget/info/YouTubeParser.java b/src/main/java/com/github/axet/vget/info/YouTubeParser.java index 1ee8c72..97c95e7 100644 --- a/src/main/java/com/github/axet/vget/info/YouTubeParser.java +++ b/src/main/java/com/github/axet/vget/info/YouTubeParser.java @@ -1,5 +1,6 @@ package com.github.axet.vget.info; +import java.io.FileNotFoundException; import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxException; @@ -52,6 +53,14 @@ public EmbeddingDisabled(String msg) { } } + public static class VideoDeleted extends DownloadError { + private static final long serialVersionUID = 1L; + + public VideoDeleted(String msg) { + super(msg); + } + } + HashMap sNextVideoURL = new HashMap(); URL source; @@ -218,9 +227,12 @@ public void notifyMoved() { if (map.get("status").equals("fail")) { String r = URLDecoder.decode(map.get("reason"), "UTF-8"); if (map.get("errorcode").equals("150")) - throw new PrivateVideoException(r); - else - throw new EmbeddingDisabled(r); + throw new EmbeddingDisabled("error code 150"); + if (map.get("errorcode").equals("100")) + throw new VideoDeleted("error code 100"); + + throw new DownloadError(r); + // throw new PrivateVideoException(r); } info.setTitle(URLDecoder.decode(map.get("title"), "UTF-8")); From 72c67226e4289acffb702c1a430affcef9da1cc0 Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov Date: Thu, 6 Dec 2012 16:03:58 +0100 Subject: [PATCH 4/4] bump version vget 1.0.32 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1bf1345..17ebafb 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.github.axet vget jar - 1.0.31-SNAPSHOT + 1.0.32 vget vget java video download library https://github.com/axet/vget