Compare commits
2 commits
4dbb5e3c51
...
65fc082b1b
| Author | SHA1 | Date | |
|---|---|---|---|
| 65fc082b1b | |||
| 49356d2f7a |
2 changed files with 7 additions and 2 deletions
|
|
@ -181,6 +181,11 @@ class File(models.Model):
|
||||||
for type in ox.movie.EXTENSIONS:
|
for type in ox.movie.EXTENSIONS:
|
||||||
if data['extension'] in ox.movie.EXTENSIONS[type]:
|
if data['extension'] in ox.movie.EXTENSIONS[type]:
|
||||||
data['type'] = 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):
|
if 'part' in data and isinstance(data['part'], int):
|
||||||
data['part'] = str(data['part'])
|
data['part'] = str(data['part'])
|
||||||
return data
|
return data
|
||||||
|
|
|
||||||
|
|
@ -1111,8 +1111,8 @@ pandora.escapeQueryValue = function(value) {
|
||||||
value = value.toString();
|
value = value.toString();
|
||||||
}
|
}
|
||||||
return value
|
return value
|
||||||
.replace(/%/, '%25')
|
.replace(/%/g, '%25')
|
||||||
.replace(/&/, '%26')
|
.replace(/&/g, '%26')
|
||||||
.replace(/_/g, '%09')
|
.replace(/_/g, '%09')
|
||||||
.replace(/\s/g, '_')
|
.replace(/\s/g, '_')
|
||||||
.replace(/</g, '%0E')
|
.replace(/</g, '%0E')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue