mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 14:06:36 +00:00
Put os.path.basename() back
Without this the subdirectory from `media_format` is doubled.
This commit is contained in:
parent
fe4f6dd6b8
commit
7b1aedf7ae
@ -1308,7 +1308,7 @@ class Media(models.Model):
|
|||||||
filename = str(mf_path.relative_to(self.source.directory_path))
|
filename = str(mf_path.relative_to(self.source.directory_path))
|
||||||
else:
|
else:
|
||||||
filename = self.filename
|
filename = self.filename
|
||||||
prefix, ext = os.path.splitext(filename)
|
prefix, ext = os.path.splitext(os.path.basename(filename))
|
||||||
return prefix
|
return prefix
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user