add mapping for codecs + sorting
This commit is contained in:
parent
a98aa59446
commit
f706d875f6
3 changed files with 62 additions and 10 deletions
|
|
@ -118,10 +118,7 @@ pub struct Format {
|
|||
|
||||
impl Format {
|
||||
pub fn is_audio(&self) -> bool {
|
||||
self.audio_quality.is_some()
|
||||
&& self.audio_sample_rate.is_some()
|
||||
&& self.audio_channels.is_some()
|
||||
&& self.loudness_db.is_some()
|
||||
self.audio_quality.is_some() && self.audio_sample_rate.is_some()
|
||||
}
|
||||
|
||||
pub fn is_video(&self) -> bool {
|
||||
|
|
|
|||
Reference in a new issue