BrightDV / BoxBox

Unofficial Android and web app for Formula 1 and Formula E fans!
https://codeberg.org/BrightDV/BoxBox
GNU General Public License v3.0
106 stars 10 forks source link

[BUG] Hall of Fame images not loading #104

Closed Ultimatum22 closed 1 year ago

Ultimatum22 commented 1 year ago

Is your feature request related to a problem? Please describe. Hall of Fame images are not loaded

Describe the solution you'd like Looks like the path is either wrong, moved or typo or something.

Screenshot_20230707_191748.jpg

`======== Exception caught by image resource service ================================================ The following NetworkImageLoadException was thrown resolving an image codec: HTTP request failed, statusCode: 404, https://www.formula1.com/content/fom-website/en/drivers/hall-of-fame/Jochen_Rindt/_jcr_content/image16x9.img.640.medium.jpg

When the exception was thrown, this was the stack:

0 NetworkImage._loadAsync (package:flutter/src/painting/_network_image_io.dart:135:9)

Image provider: NetworkImage("https://www.formula1.com/content/fom-website/en/drivers/hall-of-fame/Jochen_Rindt/_jcr_content/image16x9.img.640.medium.jpg", scale: 1.0) Image key: NetworkImage("https://www.formula1.com/content/fom-website/en/drivers/hall-of-fame/Jochen_Rindt/_jcr_content/image16x9.img.640.medium.jpg", scale: 1.0)` **Describe alternatives you've considered** **Additional context** Can you put it on my name, I'm working a fix now
BrightDV commented 1 year ago

I konw that they recently changed the image domain to https://media.formula1.com so it might be related. You can inspect the official website to see the new url.

Ultimatum22 commented 1 year ago

I thought it was a quick fix but no url has the same format. I'll modify the scraping to get it by tags if possible