fix: clean up debug logs and test forcing

This commit is contained in:
2026-05-02 17:07:35 +02:00
committed by Mikkel Elvers
parent d83a6f4a37
commit 2850c56143
2 changed files with 1 additions and 4 deletions

View File

@@ -64,9 +64,7 @@ func (h *Handler) HandleWatchPage(w http.ResponseWriter, r *http.Request) {
}
for i := range episodes.Data {
log.Printf("Ep %s image: %s", episodes.Data[i].Episode, episodes.Data[i].Images.Jpg.ImageURL)
episodes.Data[i].Images.Jpg.ImageURL = episodes.Data[i].GetFallbackImage(id)
log.Printf("Ep %s fallback image: %s", episodes.Data[i].Episode, episodes.Data[i].Images.Jpg.ImageURL)
}
sort.Slice(episodes.Data, func(i, j int) bool {

View File

@@ -38,8 +38,7 @@ func (e *Episode) GetFallbackImage(animeID int) string {
}
// Always trigger scraping if we encounter the banned icon OR the generic placeholder
// OR if it's the specific Code Geass episode we are testing
if imageUrl != bannedImageURL && imageUrl != placeholderImageURL && imageUrl != "" && !(animeID == 2904 && episodeNum == 6) {
if imageUrl != bannedImageURL && imageUrl != placeholderImageURL && imageUrl != "" {
return imageUrl
}