mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 13:36:35 +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))
|
||||
else:
|
||||
filename = self.filename
|
||||
prefix, ext = os.path.splitext(filename)
|
||||
prefix, ext = os.path.splitext(os.path.basename(filename))
|
||||
return prefix
|
||||
|
||||
@property
|
||||
|
Loading…
Reference in New Issue
Block a user