Skip to content

Commit

Permalink
Make filters more lenient towards NoCost packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Feb 12, 2024
1 parent fb8e77c commit 4f02215
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion FreePackages/Handlers/PackageHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ private async static Task HandleProductInfo(List<SteamApps.PICSProductInfoCallba

// Filter out any packages which contain unavailable apps
packages.RemoveAll(package => {
if (!package.IsAvailablePackageContents()) {
if (!package.IsAvailablePackageContents() && package.BillingType != EBillingType.NoCost) {
// Ignore this check for NoCost packages; assume that everything is available
// Ex: https://steamdb.info/sub/1011710 is redeemable even though it contains https://steamdb.info/app/235901/ (which as of Feb 12 2024 is some unknown app)
Handlers.Values.ToList().ForEach(x => x.BotCache.RemoveChange(packageID: package.ID));

if (!package.IsNew) {
Expand Down

0 comments on commit 4f02215

Please sign in to comment.