Skip to content

Commit

Permalink
Hotfix: remove misbehaving check
Browse files Browse the repository at this point in the history
  • Loading branch information
hstr0100 committed Nov 21, 2024
1 parent a348f2e commit 81b848f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rootProject.version = '1.2.0'
rootProject.version = '1.2.1'

subprojects {
repositories {
Expand Down
1 change: 1 addition & 0 deletions core/src/main/java/net/brlns/gdownloader/GDownloader.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
// TODO Crawl for valid links that can be consumed by direct-http
// TODO Toolbar button to toggle different downloaders
// TODO Two column layout when in full screen
// TODO Fix notification line wrapping
/**
* GDownloader - GUI wrapper for yt-dlp
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
import net.brlns.gdownloader.ui.menu.IMenuEntry;
import net.brlns.gdownloader.util.Nullable;
import net.brlns.gdownloader.util.collection.ConcurrentRearrangeableDeque;
import net.brlns.gdownloader.util.collection.ExpiringSet;
import net.brlns.gdownloader.util.collection.LinkedIterableBlockingQueue;

import static net.brlns.gdownloader.downloader.enums.DownloadFlagsEnum.*;
Expand Down Expand Up @@ -93,8 +92,6 @@ public class DownloadManager implements IEvent {

private final AtomicReference<DownloaderIdEnum> suggestedDownloaderId = new AtomicReference<>(null);

private final ExpiringSet<String> urlIgnoreSet = new ExpiringSet<>(TimeUnit.SECONDS, 5);

private final ExecutorService forcefulExecutor = Executors.newCachedThreadPool();// No limits, power to ya
private final String _forceStartKey = l10n("gui.force_download_start");
private final String _restartKey = l10n("gui.restart_download");
Expand Down Expand Up @@ -193,7 +190,7 @@ public CompletableFuture<Boolean> captureUrl(@Nullable String inputUrl, boolean

List<AbstractDownloader> compatibleDownloaders = getCompatibleDownloaders(inputUrl);

if (downloadsBlocked.get() || inputUrl == null || urlIgnoreSet.contains(inputUrl) && !force
if (downloadsBlocked.get() || inputUrl == null
|| compatibleDownloaders.isEmpty() || capturedLinks.contains(inputUrl)) {
future.complete(false);
return future;
Expand All @@ -219,8 +216,6 @@ public CompletableFuture<Boolean> captureUrl(@Nullable String inputUrl, boolean
return future;
}

urlIgnoreSet.add(inputUrl);

String filteredUrl;
// TODO: move these to the appropriate classes.
if (filter instanceof YoutubePlaylistFilter) {
Expand Down

0 comments on commit 81b848f

Please sign in to comment.