feat: redirect secondary YT channels to the YTM channel
Squashed commit of the following:
commit 88809265ead6eadfafab4b74091dd1af357b9577
Author: ThetaDev <t.testboy@gmail.com>
Date: Sat Jan 21 22:16:23 2023 +0100
feat: redirect secondary YT channels to the YTM channel
commit 02cc120912509f40f45da243ba5d37798b9ff411
Author: ThetaDev <t.testboy@gmail.com>
Date: Mon Jan 9 23:57:18 2023 +0100
add artists_no_tracks testfile
This commit is contained in:
parent
f44bc6434a
commit
a706a7011b
11 changed files with 13543 additions and 23 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
use std::collections::BTreeSet;
|
||||
|
||||
use crate::util::{self, ProtoBuilder};
|
||||
use crate::util::ProtoBuilder;
|
||||
|
||||
/// YouTube search filter
|
||||
///
|
||||
|
|
@ -201,7 +201,7 @@ impl SearchFilter {
|
|||
}
|
||||
|
||||
let b64 = base64::encode(pb.bytes);
|
||||
util::urlencode(&b64)
|
||||
urlencoding::encode(&b64).to_string()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -236,6 +236,6 @@ mod tests {
|
|||
#[case(SearchFilter::new().sort(Order::Views), "CAM%253D")]
|
||||
#[case(SearchFilter::new().sort(Order::Rating), "CAE%253D")]
|
||||
fn t_filter(#[case] filter: SearchFilter, #[case] expect: &str) {
|
||||
assert_eq!(util::urlencode(&filter.encode()), expect);
|
||||
assert_eq!(urlencoding::encode(&filter.encode()), expect);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue