dev: Versionsfilter fuer 4-teilige Versionsnummern korrigiert
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<addon id="plugin.video.viewit" name="ViewIt" version="0.1.76.0-dev" provider-name="ViewIt">
|
||||
<addon id="plugin.video.viewit" name="ViewIt" version="0.1.76.5-dev" provider-name="ViewIt">
|
||||
<requires>
|
||||
<import addon="xbmc.python" version="3.0.0" />
|
||||
<import addon="script.module.requests" />
|
||||
|
||||
@@ -1242,15 +1242,15 @@ def _version_sort_key(version: str) -> tuple[int, ...]:
|
||||
|
||||
|
||||
def _is_stable_version(version: str) -> bool:
|
||||
return bool(re.match(r"^\d+\.\d+\.\d+$", str(version or "").strip()))
|
||||
return bool(re.match(r"^\d+\.\d+\.\d+(\.\d+)?$", str(version or "").strip()))
|
||||
|
||||
|
||||
def _is_nightly_version(version: str) -> bool:
|
||||
return bool(re.match(r"^\d+\.\d+\.\d+-nightly$", str(version or "").strip()))
|
||||
return bool(re.match(r"^\d+\.\d+\.\d+(\.\d+)?-nightly$", str(version or "").strip()))
|
||||
|
||||
|
||||
def _is_dev_version(version: str) -> bool:
|
||||
return bool(re.match(r"^\d+\.\d+\.\d+-dev$", str(version or "").strip()))
|
||||
return bool(re.match(r"^\d+\.\d+\.\d+(\.\d+)?-dev$", str(version or "").strip()))
|
||||
|
||||
|
||||
def _filter_versions_for_channel(channel: int, versions: list[str]) -> list[str]:
|
||||
|
||||
Reference in New Issue
Block a user