Fix comment misspelling

This commit is contained in:
bytedream 2024-01-14 22:39:05 +01:00
parent 937e9a2fdc
commit 6e01e9e8a7

View file

@ -138,7 +138,7 @@ pub async fn parse_url(
let old_url_regex = Regex::new(r"https?://(www\.)?crunchyroll\.com/.+").unwrap(); let old_url_regex = Regex::new(r"https?://(www\.)?crunchyroll\.com/.+").unwrap();
if old_url_regex.is_match(&url) { if old_url_regex.is_match(&url) {
debug!("Detected maybe old url"); debug!("Detected maybe old url");
// replace the 'http' prefix with 'https' as https is not supported by the reqwest client // replace the 'http' prefix with 'https' as http is not supported by the reqwest client
if url.starts_with("http://") { if url.starts_with("http://") {
url.replace_range(0..4, "https") url.replace_range(0..4, "https")
} }