forked from 0x2620/pandora
parse_path expects top level
This commit is contained in:
parent
3de99bb4b6
commit
d87a7ce181
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ class File(models.Model):
|
||||||
if self.path:
|
if self.path:
|
||||||
self.path = self.normalize_path()
|
self.path = self.normalize_path()
|
||||||
self.sort_path = utils.sort_string(self.path)
|
self.sort_path = utils.sort_string(self.path)
|
||||||
data = ox.movie.parse_path(self.path)
|
data = ox.movie.parse_path('_/%s' % self.path)
|
||||||
self.type = data['type'] or 'unknown'
|
self.type = data['type'] or 'unknown'
|
||||||
self.is_audio = self.type == 'audio'
|
self.is_audio = self.type == 'audio'
|
||||||
self.is_video = self.type == 'video'
|
self.is_video = self.type == 'video'
|
||||||
|
|
Loading…
Reference in a new issue