From: Christian Heller Date: Mon, 23 Dec 2024 16:14:51 +0000 (+0100) Subject: Fix variability of VideoFile hash due to missing sorting of joined tags. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/static/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/todo?a=commitdiff_plain;h=914550c8ebf0a092a3289a1ff2d831cde54815d6;p=ytplom Fix variability of VideoFile hash due to missing sorting of joined tags. --- diff --git a/src/ytplom/misc.py b/src/ytplom/misc.py index ece413c..596ad7c 100644 --- a/src/ytplom/misc.py +++ b/src/ytplom/misc.py @@ -128,7 +128,7 @@ class TagSet: @property def as_str_list(self) -> list[str]: """Return self list of strings.""" - return [str(t) for t in self._tags] + return sorted([str(t) for t in self._tags]) @property def joined(self) -> str: