Skip to content

Commit

Permalink
[plugin.video.drnu] 6.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
TermeHansen committed Aug 21, 2024
1 parent 210eebc commit 3a0c353
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
5 changes: 4 additions & 1 deletion plugin.video.drnu/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.drnu" version="6.4.2" name="DR TV" provider-name="TermeHansen">
<addon id="plugin.video.drnu" version="6.4.3" name="DR TV" provider-name="TermeHansen">
<requires>
<import addon="xbmc.python" version="3.0.1"/>
<import addon="script.module.dateutil" version="2.8.2" />
Expand Down Expand Up @@ -32,6 +32,9 @@
<screenshot>resources/media/Screenshot3.jpg</screenshot>
<screenshot>resources/media/Screenshot4.jpg</screenshot>
</assets>
<news>[B]Version 6.4.3 - 2024-08-20[/B]
- Fix issue of distutils being reomved in python 3.12
</news>
<news>[B]Version 6.4.2 - 2024-05-06[/B]
- Fix not unfolding my-list
</news>
Expand Down
3 changes: 3 additions & 0 deletions plugin.video.drnu/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[B]Version 6.4.3 - 2024-08-20[/B]
- Fix issue of distutils being reomved in python 3.12

[B]Version 6.4.2 - 2024-05-06[/B]
- Fix not unfolding my-list

Expand Down
13 changes: 8 additions & 5 deletions plugin.video.drnu/resources/lib/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import traceback
import time
import urllib.parse as urlparse
from distutils.version import StrictVersion

import xbmc
import xbmcaddon
Expand Down Expand Up @@ -71,6 +70,10 @@ def kodi_version_major():
return int(kodi_version().split('.')[0])


def version(s):
return [int(item) for item in s.split('.')]


class DrDkTvAddon(object):
def __init__(self, plugin_url, plugin_handle):
self._plugin_url = plugin_url
Expand Down Expand Up @@ -102,7 +105,7 @@ def _version_change_fixes(self):
if settings_version == '' and kodi_version_major() <= 19:
# kodi matrix subtitle handling https://github.com/xbmc/inputstream.adaptive/issues/1037
set_setting('enable.localsubtitles', 'true')
elif addon_V == StrictVersion('6.2.0').version and kodi_version_major() == 20:
elif addon_V == version('6.2.0') and kodi_version_major() == 20:
set_setting('enable.localsubtitles', 'false')

def _version_check(self):
Expand All @@ -114,10 +117,10 @@ def _version_check(self):

# Compare versions (settings_version was not present in version 6.0.2 and older)
if settings_version != '':
settings_V = StrictVersion(settings_version.split('+')[0]).version
settings_V = version(settings_version.split('+')[0])
else:
settings_V = StrictVersion('6.0.2').version
addon_V = StrictVersion(addon_version.split('+')[0]).version
settings_V = version('6.0.2')
addon_V = version(addon_version.split('+')[0])

if addon_V > settings_V:
# New version found, save addon version to settings
Expand Down

0 comments on commit 3a0c353

Please sign in to comment.