From 8b2fa8a1d08bc597674a7001cf7db3f2bc6cb789 Mon Sep 17 00:00:00 2001 From: mcarlton00 Date: Sun, 3 Nov 2019 21:46:31 -0500 Subject: [PATCH 1/3] Bump version for 0.3.5 --- addon.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/addon.xml b/addon.xml index 38be1920..bc734a65 100644 --- a/addon.xml +++ b/addon.xml @@ -1,7 +1,7 @@ @@ -37,8 +37,11 @@ Welcome to Jellyfin for Kodi! A whole new way to manage and view your media library. The Jellyfin addon for Kodi combines the best of Kodi - ultra smooth navigation, beautiful UIs and playback of any file under the sun, and Jellyfin - the most powerful fully open source multi-client media metadata indexer and server. Jellyfin for Kodi is the absolute best way to enjoy the incredible Kodi playback engine combined with the power of Jellyfin's centralized database. Features: * Direct integration with the Kodi library for native Kodi speed * Instant synchronization with the Jellyfin server * Full support for Movie, TV and Music collections * Jellyfin Server direct stream and transcoding support - use Kodi when you are away from home! - v0.3.4 (2019-10-05) - #109 Remove dependency on `ipaddress` (not stdlib in py2) + v0.3.5 (2019-11-03) + #117 Add support for upnext addon + #124 Fixed incorrect window titles during library management + #127 Removed unused code + #128 Removed port field on server setup resources/icon.png From c856aadbd46fb4c2d794f2ddde30acf88967d066 Mon Sep 17 00:00:00 2001 From: Filip Gurbal Date: Mon, 4 Nov 2019 11:30:54 +0100 Subject: [PATCH 2/3] Fix libraries sync when jellyfin library has apostrophes in name --- resources/lib/helper/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/resources/lib/helper/utils.py b/resources/lib/helper/utils.py index 95c99c7c..19411b1b 100644 --- a/resources/lib/helper/utils.py +++ b/resources/lib/helper/utils.py @@ -293,7 +293,11 @@ def indent(elem, level=0): def write_xml(content, file): with open(file, 'w') as infile: - content = content.replace("'", '"') + def replace_apostrophes(match): + return match.group(0).replace("'", '"') + + content = re.sub("<(.*?)>", replace_apostrophes, content) + content = content.replace('?>', ' standalone="yes" ?>', 1) infile.write(content) From 287a92889e93aa96795d8680e34ba1825c6f8f53 Mon Sep 17 00:00:00 2001 From: Filip Gurbal Date: Mon, 4 Nov 2019 14:04:50 +0100 Subject: [PATCH 3/3] Added comment for replace_apostrophes function in write_xml --- resources/lib/helper/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/helper/utils.py b/resources/lib/helper/utils.py index 19411b1b..058349c1 100644 --- a/resources/lib/helper/utils.py +++ b/resources/lib/helper/utils.py @@ -293,9 +293,9 @@ def indent(elem, level=0): def write_xml(content, file): with open(file, 'w') as infile: + # replace apostrophes with double quotes only in xml keys, not texts def replace_apostrophes(match): return match.group(0).replace("'", '"') - content = re.sub("<(.*?)>", replace_apostrophes, content) content = content.replace('?>', ' standalone="yes" ?>', 1)