mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 14:36:34 +00:00
Simplify directory_path for Media
This commit is contained in:
parent
b829b233f8
commit
f464acaa63
@ -1263,8 +1263,7 @@ class Media(models.Model):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def directory_path(self):
|
def directory_path(self):
|
||||||
dirname = self.source.directory_path / self.filename
|
return self.filepath.parent
|
||||||
return dirname.parent
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def filepath(self):
|
def filepath(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user