Skip to content

Commit

Permalink
Don't skip .ssa download when .chat.json exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Assistant committed Apr 8, 2024
1 parent 42097e0 commit d171d00
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/downloader/twitch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,8 @@ pub(super) fn get_channel_ids<T: VideoInfo>(

pub(super) fn get_chat(id: &str, context: &mut Context) -> Result<(), Error> {
let chat_string = format!("{id}.ssa");
let json_string = format!("{id}.chat.json");
let chat = Path::new(&chat_string);
let json = Path::new(&json_string);
if chat.exists() || json.exists() {
if chat.exists() {
return Err(Error::AlreadyExists);
}
if context.missing.contains(&External::Tcd) {
Expand All @@ -142,7 +140,6 @@ pub(super) fn get_chat(id: &str, context: &mut Context) -> Result<(), Error> {
Ok(())
}

#[allow(unreachable_code, unused)]
pub(super) fn process_chat(id: &str, context: &mut Context) -> Result<(), Error> {
let chat_string = format!("{id}.ssa");
let chat = Path::new(&chat_string);
Expand Down

0 comments on commit d171d00

Please sign in to comment.