From 3848ff086be52d47b149c52283b52e2008d49fc2 Mon Sep 17 00:00:00 2001 From: stefanodvx <69367859+stefanodvx@users.noreply.github.com> Date: Thu, 17 Apr 2025 10:19:01 +0200 Subject: [PATCH] fixes #3 --- bot/core/default.go | 2 +- bot/core/inline.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bot/core/default.go b/bot/core/default.go index 04ac38c..974ad71 100644 --- a/bot/core/default.go +++ b/bot/core/default.go @@ -37,7 +37,7 @@ func HandleDefaultFormatDownload( mediaList := response.MediaList if len(mediaList) == 0 { - return fmt.Errorf("no media found for content ID: %s", dlCtx.MatchedContentID) + return nil } for i := range mediaList { diff --git a/bot/core/inline.go b/bot/core/inline.go index 6a65c1a..99daeb2 100644 --- a/bot/core/inline.go +++ b/bot/core/inline.go @@ -265,6 +265,7 @@ func GetInlineFormat( mediaList := response.MediaList if len(mediaList) == 0 { errChan <- fmt.Errorf("no media found for content ID: %s", dlCtx.MatchedContentID) + return } if len(mediaList) > 1 { errChan <- util.ErrInlineMediaGroup