diff --git a/pom.xml b/pom.xml
index f3ca396..e1a55c7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.github.axet
vget
jar
- 1.0.30
+ 1.0.31
vget
vget java video download library
https://github.com/axet/vget
diff --git a/src/main/java/com/github/axet/vget/VGet.java b/src/main/java/com/github/axet/vget/VGet.java
index 9e4826d..96e8a04 100644
--- a/src/main/java/com/github/axet/vget/VGet.java
+++ b/src/main/java/com/github/axet/vget/VGet.java
@@ -220,14 +220,14 @@ boolean retry(Throwable e) {
public void download(final AtomicBoolean stop, final Runnable notify) {
try {
- if (info.empty())
- info.extract(stop, notify);
-
- info.setState(States.EXTRACTING_DONE);
- notify.run();
-
while (!done(stop)) {
try {
+ if (info.empty()) {
+ info.extract(stop, notify);
+ info.setState(States.EXTRACTING_DONE);
+ notify.run();
+ }
+
final DownloadInfo dinfo = info.getInfo();
if (dinfo.getContentType() == null || !dinfo.getContentType().contains("video/")) {