Open Source redirects to GNU.ORG page why 'Open Source' is a bad term.
This commit is contained in:
parent
0edccb2ba7
commit
2fab588efa
3 changed files with 8 additions and 3 deletions
|
@ -12,6 +12,5 @@
|
||||||
"formats_read":[],
|
"formats_read":[],
|
||||||
"formats_write":[],
|
"formats_write":[],
|
||||||
"generic_name":["LBRY Client",
|
"generic_name":["LBRY Client",
|
||||||
"Publication",
|
|
||||||
"Video Player",
|
"Video Player",
|
||||||
"Music Player"]}
|
"Music Player"]}
|
||||||
|
|
|
@ -23,7 +23,14 @@ def html(page, json):
|
||||||
page = page + "</h1>"
|
page = page + "</h1>"
|
||||||
|
|
||||||
# Few words about it
|
# 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
|
# I want to show nothing else from if it's proprietary
|
||||||
if not free:
|
if not free:
|
||||||
|
|
|
@ -77,7 +77,6 @@ def suggest(json_data):
|
||||||
with open("apps/"+i) as json_file:
|
with open("apps/"+i) as json_file:
|
||||||
idata = json.load(json_file)
|
idata = json.load(json_file)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print("Error!", i, e)
|
|
||||||
idata = {}
|
idata = {}
|
||||||
|
|
||||||
all_apps.append(idata)
|
all_apps.append(idata)
|
||||||
|
|
Loading…
Reference in a new issue