Skip to content

Commit

Permalink
Fix issue parsing some websites.
Browse files Browse the repository at this point in the history
  • Loading branch information
Si13n7 committed Dec 7, 2023
1 parent 4aeb7b9 commit 1a50098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PortAble.Suite/CacheData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ private static IEnumerable<AppData> AppInfoCollector(IReadOnlyList<AppData> curr
var website = Ini.Read(section, "Website", config);
if (string.IsNullOrWhiteSpace(website))
website = Ini.Read(section, "URL", config).ToLowerInvariant().Replace("https", "http");
if (string.IsNullOrWhiteSpace(website) || website.Any(char.IsUpper))
if (string.IsNullOrWhiteSpace(website) || !website.StartsWithEx("https:", "http:"))
website = default;

// Parsing the app`s version data.
Expand Down Expand Up @@ -798,7 +798,7 @@ private static IEnumerable<AppData> AppInfoCollector(IReadOnlyList<AppData> curr
}
}
};
if (path2.StartsWithEx("http") && !path2.EqualsEx(path1))
if (path2.StartsWithEx("https:", "http:") && !path2.EqualsEx(path1))
downloadDict[defLanguage].Add(Tuple.Create(path2, hash));

foreach (var lang in LocalGetInstallerLangs())
Expand Down

0 comments on commit 1a50098

Please sign in to comment.