diff --git a/src/FilterLists.Agent/ListArchiver/DownloadList.cs b/src/FilterLists.Agent/ListArchiver/DownloadList.cs index aae7d53e0..25914086e 100644 --- a/src/FilterLists.Agent/ListArchiver/DownloadList.cs +++ b/src/FilterLists.Agent/ListArchiver/DownloadList.cs @@ -31,9 +31,10 @@ public Handler(HttpClient httpClient) protected override async Task Handle(Command request, CancellationToken cancellationToken) { - if (Path.GetExtension(request.ListInfo.ViewUrl.AbsolutePath) == ".txt") + if (!Path.HasExtension(request.ListInfo.ViewUrl.AbsolutePath) || + Path.GetExtension(request.ListInfo.ViewUrl.AbsolutePath) == ".txt") { - Debug.WriteLine($"Downloading list {request.ListInfo.Id}..."); + Debug.WriteLine($"Downloading list {request.ListInfo.Id} from {request.ListInfo.ViewUrl}..."); try { using (var result = await _httpClient.GetAsync(request.ListInfo.ViewUrl, cancellationToken))