summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--bazarr/api.py2
-rw-r--r--views/systemreleases.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/bazarr/api.py b/bazarr/api.py
index fca4ac7a1..948bfd2dc 100644
--- a/bazarr/api.py
+++ b/bazarr/api.py
@@ -299,7 +299,7 @@ class SystemReleases(Resource):
releases = json.loads(f.read())
releases = releases[:5]
for i, release in enumerate(releases):
- body = release['body'].replace('- ', '').split('\r\n')[1:]
+ body = release['body'].replace('- ', '').split('\n')[1:]
releases[i] = {"body": body,
"name": release['name'],
"date": release['date'][:10],
diff --git a/views/systemreleases.html b/views/systemreleases.html
index f7708e010..74a746639 100644
--- a/views/systemreleases.html
+++ b/views/systemreleases.html
@@ -44,7 +44,7 @@
releases += '</h4><hr/><p><b>From newest to oldest:</b></p><ul>'+entries+'</ul>';
function appendEntry(entry) {
- entries = entries + '<li>'+entry+'</li>';
+ entries = entries + '<li>'+entry.replace(/(\s\[.*?\])\(.*?\)/, '')+'</li>'; // removing the commit url
}
}