Open Source redirects to GNU.ORG page why 'Open Source' is a bad term.

This commit is contained in:
jyamihud 2022-04-02 14:11:49 +03:00
parent 0edccb2ba7
commit 2fab588efa
3 changed files with 8 additions and 3 deletions

View file

@ -12,6 +12,5 @@
"formats_read":[],
"formats_write":[],
"generic_name":["LBRY Client",
"Publication",
"Video Player",
"Music Player"]}

View file

@ -23,7 +23,14 @@ def html(page, json):
page = page + "</h1>"
# Few words about it
page = page + "<p>"+json.get("comment","")+"</p>"
comment = json.get("comment","")
if "open source" in comment.lower():
# Well... Here is a thing. Free Software, not open source.
where = comment.lower().find("open source")
os = comment[where:where+11]
comment = comment.replace(os,
"<a href=\"https://www.gnu.org/philosophy/open-source-misses-the-point.en.html\">"+os+"</a>")
page = page + "<p>"+comment+"</p>"
# I want to show nothing else from if it's proprietary
if not free:

View file

@ -77,7 +77,6 @@ def suggest(json_data):
with open("apps/"+i) as json_file:
idata = json.load(json_file)
except Exception as e:
print("Error!", i, e)
idata = {}
all_apps.append(idata)