This commit is contained in:
stefanodvx 2025-04-17 10:19:01 +02:00
parent 7d19f8af71
commit 3848ff086b
2 changed files with 2 additions and 1 deletions

View file

@ -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 {

View file

@ -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