feat: add DRM and audio channel number filtering to StreamFilter
This commit is contained in:
parent
7cd9246260
commit
d5abee2753
8 changed files with 2443 additions and 87 deletions
|
|
@ -800,6 +800,9 @@ impl DownloadQuery {
|
|||
let (video, audio) = player_data.select_video_audio_stream(filter);
|
||||
|
||||
if video.is_none() && audio.is_none() {
|
||||
if player_data.drm.is_some() {
|
||||
return Err(DownloadError::Input("video is DRM-protected".into()));
|
||||
}
|
||||
return Err(DownloadError::Input("no stream found".into()));
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue