Skip to content

Commit

Permalink
- Support variation on Directory Listing
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaBear84 committed Jun 4, 2020
1 parent 9d49714 commit 99a1c0e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions OpenDirectoryDownloader/DirectoryParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@ public static async Task<WebDirectory> ParseHtml(WebDirectory webDirectory, stri
return ParseDirectoryListingDoctComDirectoryListing(baseUrl, parsedWebDirectory, directoryListingDotComlistItems);
}

IHtmlCollection<IElement> directoryListingDotCom2listItems = htmlDocument.QuerySelectorAll(".directory-listing li");

if (directoryListingDotCom2listItems.Any())
{
return ParseDirectoryListingDoctComDirectoryListing(baseUrl, parsedWebDirectory, directoryListingDotCom2listItems);
}

IHtmlCollection<IElement> h5aiTableRows = htmlDocument.QuerySelectorAll("#fallback table tr");

if (h5aiTableRows.Any())
Expand Down

0 comments on commit 99a1c0e

Please sign in to comment.