chr233 / ASFEnhance

ASF 扩展命令插件 / External commands for ASF
GNU Affero General Public License v3.0
516 stars 41 forks source link

REMOVEDEMOS removes FreeOnDemand packages which are not demos #158

Open woctezuma opened 1 year ago

woctezuma commented 1 year ago

It seems the !REMOVEDEMOS command removes FreeOnDemand packages which do not belong to the Demo category.

I believe the filter must be based on the package name, but I am not sure as I have not dived into the code.

See https://store.steampowered.com/app/1729830/Tactical_Monsters__Strategy_Edition/ Picture

Indeed, these two packages are actually both named Tactical Monsters - Strategy Edition Demo:

And it seems that the !REMOVEDEMOS command has removed both packages.

If this is the case, it may be useful to:


Edit: Confirmed. There is a check for x.Name.EndsWith("Demo") in:

x.Type == LicenseType.Complimentary && x.Name.EndsWith("Demo")

Reference:

https://github.com/chr233/ASFEnhance/blob/0876ba2e6fbbb3137181fd3acd94c5ba48c30260/ASFEnhance/Account/Command.cs#L279

So the command catches FreeOnDemand packages:

chr233 commented 1 year ago

Got it

LORDIF56 commented 11 months ago

update pls to NET 8.0 global version ASF now use 8.0 and creat conflict if we start ASF and if we have ASFEnchance

woctezuma commented 11 months ago

update pls to NET 8.0 global version ASF now use 8.0 and creat conflict if we start ASF and if we have ASFEnchance

You have posted about an issue which was fixed 3 weeks ago, and in the wrong thread on top of that:

woctezuma commented 4 months ago

I suggest to remove this feature. Indeed:

  1. the feature does not work as expected, because it filters by name instead of by type, which leads to catching false positives,
  2. demos are automatically and regularly removed by Steam nowadays:
chr233 commented 4 months ago

yep