fix: better bodge

This commit is contained in:
Ashhhleyyy 2024-05-07 13:49:08 +01:00
parent e7a88e8143
commit ff913c7488
Signed by: ash
GPG key ID: 83B789081A0878FB

View file

@ -130,7 +130,7 @@ fn find_season_children(
for entry in entries { for entry in entries {
if let (Some(stem), Some(ext)) = (entry.file_stem(), entry.extension()) { if let (Some(stem), Some(ext)) = (entry.file_stem(), entry.extension()) {
if let (Some(stem), Some(ext)) = (stem.to_str(), ext.to_str()) { if let (Some(stem), Some(ext)) = (stem.to_str(), ext.to_str()) {
if stem.contains("Episode") && ext == "nfo" { if !(stem.contains("season") || stem.contains("tvshow")) && ext == "nfo" {
let data = read_data(entry)?; let data = read_data(entry)?;
let video = entry.with_extension("mp4"); let video = entry.with_extension("mp4");
let url = get_url( let url = get_url(