From 146bbd09c9864de132f09e9d37e1eb225988fb37 Mon Sep 17 00:00:00 2001 From: mateo Date: Fri, 7 Jun 2024 14:00:30 +0200 Subject: [PATCH] #33: continue instead of return to prevent aborting an action in case a tv show has no episodes --- src/actions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions.rs b/src/actions.rs index 12c8f16..cb0526d 100644 --- a/src/actions.rs +++ b/src/actions.rs @@ -233,7 +233,7 @@ impl Action { sub_pb.set_length(num_episodes); if num_episodes == 0 { sub_pb.finish_with_message("No episodes found"); - return Ok(()); + continue; } for episode in response.data { self.process_episode_subtitle(&sub_pb, episode).await;