Skip to content

Commit

Permalink
Merge branch 'vget-1.0.31'
Browse files Browse the repository at this point in the history
  • Loading branch information
axet committed Dec 3, 2012
2 parents 7ca1916 + bbb2b66 commit d69aca5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.github.axet</groupId>
<artifactId>vget</artifactId>
<packaging>jar</packaging>
<version>1.0.30</version>
<version>1.0.31</version>
<name>vget</name>
<description>vget java video download library</description>
<url>https://github.com/axet/vget</url>
Expand Down
12 changes: 6 additions & 6 deletions src/main/java/com/github/axet/vget/VGet.java
Original file line number Diff line number Diff line change
Expand Up @@ -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/")) {
Expand Down

0 comments on commit d69aca5

Please sign in to comment.