From 5b7c72d27053b00b88f63b7f32fb023c6584b846 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Fri, 1 Mar 2024 03:42:45 +0000 Subject: [PATCH] refactor(Track): Move the path class instance variable with the rest --- devine/core/tracks/track.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/devine/core/tracks/track.py b/devine/core/tracks/track.py index 7bb8ed4..7b4aec8 100644 --- a/devine/core/tracks/track.py +++ b/devine/core/tracks/track.py @@ -62,6 +62,7 @@ class Track: except TypeError: raise TypeError(f"Expected drm to be an iterable, not {type(drm)}") + self.path: Optional[Path] = None self.url = url self.language = Language.get(language) self.is_original_lang = is_original_lang @@ -93,8 +94,6 @@ class Track: # Called before the Track is multiplexed self.OnMultiplex: Optional[Callable] = None - self.path: Optional[Path] = None - def __repr__(self) -> str: return "{name}({items})".format( name=self.__class__.__name__,