mirror of https://github.com/devine-dl/devine.git
refactor(Track): Move the path class instance variable with the rest
This commit is contained in:
parent
3358c4d203
commit
5b7c72d270
|
@ -62,6 +62,7 @@ class Track:
|
||||||
except TypeError:
|
except TypeError:
|
||||||
raise TypeError(f"Expected drm to be an iterable, not {type(drm)}")
|
raise TypeError(f"Expected drm to be an iterable, not {type(drm)}")
|
||||||
|
|
||||||
|
self.path: Optional[Path] = None
|
||||||
self.url = url
|
self.url = url
|
||||||
self.language = Language.get(language)
|
self.language = Language.get(language)
|
||||||
self.is_original_lang = is_original_lang
|
self.is_original_lang = is_original_lang
|
||||||
|
@ -93,8 +94,6 @@ class Track:
|
||||||
# Called before the Track is multiplexed
|
# Called before the Track is multiplexed
|
||||||
self.OnMultiplex: Optional[Callable] = None
|
self.OnMultiplex: Optional[Callable] = None
|
||||||
|
|
||||||
self.path: Optional[Path] = None
|
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
return "{name}({items})".format(
|
return "{name}({items})".format(
|
||||||
name=self.__class__.__name__,
|
name=self.__class__.__name__,
|
||||||
|
|
Loading…
Reference in New Issue