diff options
author | morpheus65535 <[email protected]> | 2021-02-26 12:24:20 -0500 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2021-02-26 12:24:20 -0500 |
commit | af1e1e9d5f8b022c9093f2fec44acedfaa4eacac (patch) | |
tree | cca4dacb99e54237513e0ae54d9a71a8a4124c51 | |
parent | c2cbf0ad53e5fc40008dab12945f76321b25b9fc (diff) | |
download | bazarr-af1e1e9d5f8b022c9093f2fec44acedfaa4eacac.tar.gz bazarr-af1e1e9d5f8b022c9093f2fec44acedfaa4eacac.zip |
Fixed the parsing of changes for releases.
-rw-r--r-- | bazarr/api.py | 2 | ||||
-rw-r--r-- | views/systemreleases.html | 2 |
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 } } |