fix: clean up debug logs and test forcing
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user