Profile in movie list
This commit is contained in:
1 parent
6c960afad6
commit
332d7128b1
3 files changed
+16
-4
No files matched your search
@@ -39,13 +39,20 @@ var Movie = new Class({
|
|||||||
'text': self.data.library.plot
|
'text': self.data.library.plot
|
||||||
}),
|
}),
|
||||||
self.quality = new Element('div.quality', {
|
self.quality = new Element('div.quality', {
|
||||||
'text': self.profile ? self.profile.get('label') : ''
|
'text': self.profile.get('label')+ ':'
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
self.actions = new Element('div.actions')
|
self.actions = new Element('div.actions')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
self.profile.get('types').each(function(type){
|
||||||
|
var q = Quality.getQuality(type.quality_id);
|
||||||
|
new Element('span', {
|
||||||
|
'text': ' '+q.label
|
||||||
|
}).inject(self.quality);
|
||||||
|
})
|
||||||
|
|
||||||
Object.each(self.options.actions, function(action, key){
|
Object.each(self.options.actions, function(action, key){
|
||||||
self.actions.adopt(
|
self.actions.adopt(
|
||||||
self.action[key.toLowerCase()] = new self.options.actions[key](self)
|
self.action[key.toLowerCase()] = new self.options.actions[key](self)
|
||||||
|
|||||||
@@ -19,6 +19,12 @@ var QualityBase = new Class({
|
|||||||
return this.profiles[id]
|
return this.profiles[id]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getQuality: function(id){
|
||||||
|
return this.qualities.filter(function(q){
|
||||||
|
return q.id == id;
|
||||||
|
}).pick();
|
||||||
|
},
|
||||||
|
|
||||||
addSettings: function(){
|
addSettings: function(){
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
@@ -106,9 +112,7 @@ var QualityBase = new Class({
|
|||||||
new Element('input.min', {'value': quality.size_min}),
|
new Element('input.min', {'value': quality.size_min}),
|
||||||
new Element('input.max', {'value': quality.size_max})
|
new Element('input.max', {'value': quality.size_max})
|
||||||
).inject(group)
|
).inject(group)
|
||||||
})
|
});
|
||||||
|
|
||||||
p(group)
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -131,6 +131,7 @@ class Renamer(Plugin):
|
|||||||
final_file_name = final_file_name.replace(' ', separator)
|
final_file_name = final_file_name.replace(' ', separator)
|
||||||
|
|
||||||
# Main file
|
# Main file
|
||||||
|
group['destination_dir'] = os.path.join(destination, final_folder_name)
|
||||||
rename_files[file] = os.path.join(destination, final_folder_name, final_file_name)
|
rename_files[file] = os.path.join(destination, final_folder_name, final_file_name)
|
||||||
|
|
||||||
# Check for extra subtitle files
|
# Check for extra subtitle files
|
||||||
|
|||||||
Reference in new issue
Block a user