Skip to content

Commit

Permalink
- Add support for another GoIndex variant
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaBear84 committed Apr 6, 2021
1 parent 3787c75 commit 068d8d8
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/OpenDirectoryDownloader/DirectoryParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ public static async Task<WebDirectory> ParseHtml(WebDirectory webDirectory, stri
return await Go2IndexParser.ParseIndex(httpClient, webDirectory);
}

if (htmlDocument.QuerySelector("script[src*=\"5MayRain/goIndex-theme-nexmoe\" i]") != null)
{
return await GoIndexParser.ParseIndex(httpClient, webDirectory);
}

if (htmlDocument.QuerySelector("script[src*=\"gdindex\" i]") != null)
{
return await GdIndexParser.ParseIndex(httpClient, webDirectory, html);
}

if (htmlDocument.QuerySelector("script[src*=\"Bhadoo-Drive-Index\" i]") != null ||
htmlDocument.QuerySelector("script[src*=\"/AjmalShajahan97/goindex\" i]") != null ||
htmlDocument.QuerySelector("script[src*=\"/LeeluPradhan/G-Index\" i]") != null ||
Expand All @@ -84,11 +94,6 @@ public static async Task<WebDirectory> ParseHtml(WebDirectory webDirectory, stri
return await BhadooIndexParser.ParseIndex(httpClient, webDirectory);
}

if (htmlDocument.QuerySelector("script[src*=\"gdindex\" i]") != null)
{
return await GdIndexParser.ParseIndex(httpClient, webDirectory, html);
}

if (htmlDocument.QuerySelector("script[src*=\"/go2index/\" i]") != null ||
htmlDocument.QuerySelector("script[src*=\"/alx-xlx/goindex\" i]") != null)
{
Expand Down

0 comments on commit 068d8d8

Please sign in to comment.