forked from xbapps/xbvr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scraper: Validate cover image for VirtualReal websites (xbapps#1458)
Some of the covers provided by the VirtualReal websites are using a pixel format that is not compatible with golang's `image/jpeg` decoder and also with some VR players like HereSphere. It should be kinda safe to assume that if a image can't be decoded by the golang decoders it may not work in some players. This patch validates the cover images against the golang decoders, and tries to use some gallery image as cover, if no valid coner image is found. This is the only scraper I had this issue so far, but more scrapers may need the same changes.
- Loading branch information
1 parent
b368ba5
commit 98b72a0
Showing
1 changed file
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters