Compare commits

...

2 commits

Author SHA1 Message Date
j
65fc082b1b if file has audio/video track flag as type 2021-11-14 13:42:06 +00:00
j
49356d2f7a replace all % and & 2021-11-14 13:41:49 +00:00
2 changed files with 7 additions and 2 deletions

View file

@ -181,6 +181,11 @@ class File(models.Model):
for type in ox.movie.EXTENSIONS:
if data['extension'] in ox.movie.EXTENSIONS[type]:
data['type'] = type
if data['type'] == 'unknown':
if self.info.get('video'):
data['type'] = 'video'
elif self.info.get('audio'):
data['type'] = 'audio'
if 'part' in data and isinstance(data['part'], int):
data['part'] = str(data['part'])
return data

View file

@ -1111,8 +1111,8 @@ pandora.escapeQueryValue = function(value) {
value = value.toString();
}
return value
.replace(/%/, '%25')
.replace(/&/, '%26')
.replace(/%/g, '%25')
.replace(/&/g, '%26')
.replace(/_/g, '%09')
.replace(/\s/g, '_')
.replace(/</g, '%0E')