aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2026-05-14 00:35:32 -0700
committerPinapelz <yukais@pinapelz.com>2026-05-14 00:35:32 -0700
commit34606cd95856449bdb8dc3a5d3e0ff823bb6af4e (patch)
tree8840875d5cc3d1e36662cde83cc7058b9e2769ce /src
parentb8e9549304761b624e1b92c1245054a960c6297b (diff)
skip duplicate video confirmation if task has start-stop time
Diffstat (limited to 'src')
-rw-r--r--src/main/java/Main.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/Main.java b/src/main/java/Main.java
index 7ab6572..0d1ef41 100644
--- a/src/main/java/Main.java
+++ b/src/main/java/Main.java
@@ -101,7 +101,7 @@ public class Main extends JFrame {
System.out.println(line);
Downloader downloader = new Downloader(completedDir, outputArea);
String videoId = extractVideoId(line);
- if(downloader.videoIdAlreadyDownloaded(videoId)){
+ if(downloader.videoIdAlreadyDownloaded(videoId) && !line.contains(",")){ // if video has a time range we assume its on purpose and not a duplicate
int continueConfirm = JOptionPane.showConfirmDialog(
null,
"A file with the same video ID (" + videoId + ") already exists in the output directoy. Download anyways?",
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage