aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/Downloader.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/Downloader.java')
-rw-r--r--src/main/java/Downloader.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/Downloader.java b/src/main/java/Downloader.java
index aed0bb4..c480a85 100644
--- a/src/main/java/Downloader.java
+++ b/src/main/java/Downloader.java
@@ -254,8 +254,6 @@ public class Downloader {
return true;
}
-
-
public static int timestampToSeconds(String timestamp) {
int totalSeconds = 0;
try {
@@ -271,4 +269,8 @@ public class Downloader {
}
return totalSeconds;
}
+
+ public boolean videoIdAlreadyDownloaded(String videoId){
+ return FileUtility.findFileContainingString(this.outputDirectory, videoId);
+ }
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage