Skip to content

Commit

Permalink
Improve scoop author accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Oct 29, 2022
1 parent 2a32665 commit c7b8d3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wingetui/scoopHelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ def getInfo(signal: Signal, title: str, id: str, useId: bool, verbose: bool = Fa
appInfo["homepage"] = w
if "https://github.com/" in w:
appInfo["author"] = w.replace("https://github.com/", "").split("/")[0]
else:
for e in ("https://", "http://", "www.", ".com", ".net", ".io", ".org", ".us", ".eu", ".es", ".tk", ".co.uk", ".in", ".it", ".fr", ".de"):
w = w.replace(e, "")
appInfo["author"] = w.split("/")[0].capitalize()
elif("Version" in line):
version = line.replace("Version", "").strip()[1:].strip()
elif("Updated by" in line):
Expand Down

0 comments on commit c7b8d3a

Please sign in to comment.