mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
assume lists with no file extension are in raw txt format
This commit is contained in:
parent
7f37515cfa
commit
0cc92c8ff3
1 changed files with 3 additions and 2 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue