refactor(Track): Move the path class instance variable with the rest

This commit is contained in:
rlaphoenix 2024-03-01 03:42:45 +00:00
parent 3358c4d203
commit 5b7c72d270
1 changed files with 1 additions and 2 deletions

View File

@ -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__,