home · contact · privacy
Fix variability of VideoFile hash due to missing sorting of joined tags.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 23 Dec 2024 16:14:51 +0000 (17:14 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 23 Dec 2024 16:14:51 +0000 (17:14 +0100)
src/ytplom/misc.py

index ece413cd253556eb6a30f111b3c1921c6cc46685..596ad7c4b4905cfc86f3806ab170ea27b4890e3a 100644 (file)
@@ -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: