Skip to content

Commit

Permalink
- Fix (partially) #142
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaBear84 committed Oct 31, 2024
1 parent 7361015 commit d57b976
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/OpenDirectoryDownloader/OpenDirectoryIndexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,7 @@ public async void StartIndexingAsync()
Session.TotalFiles = Session.Root.TotalFiles;
Session.TotalFileSizeEstimated = Session.Root.TotalFileSize;

// Replaced WebUtility.UrlDecode with Uri.UnescapeDataString because of issues with Google Drive alternatives (+ sign)
IEnumerable<string> distinctUrls = Session.Root.AllFileUrls.Distinct().Select(x => Uri.UnescapeDataString(x)).OrderBy(x => x, NaturalSortStringComparer.InvariantCulture);
IEnumerable<string> distinctUrls = Session.Root.AllFileUrls.Distinct().OrderBy(x => x, NaturalSortStringComparer.InvariantCulture);

if (Session.TotalFiles != distinctUrls.Count())
{
Expand Down

0 comments on commit d57b976

Please sign in to comment.