Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: TvMaze won't scrape actual actor images only character images #1800

Closed
kolbdog323 opened this issue Sep 23, 2024 · 2 comments · Fixed by #1804
Closed

Bug: TvMaze won't scrape actual actor images only character images #1800

kolbdog323 opened this issue Sep 23, 2024 · 2 comments · Fixed by #1804

Comments

@kolbdog323
Copy link

When you scrape a show from tvmaze only the charactrer images will download/scrape the actual actor images wont scrape . Example if the tv show hsa a character image it will downlad that fine but not if the character has an actual actor image of the real actor. Example if the show only has actual actor images that someoen didnt add character imagees for those wont scrape but if it has an image of the chjaracter it will scrape.

A show i just tried to scrape from on tvmaze was Olaf Presents and taht only had one character olaf and it had a real actor image not an image of the character from the show and it wouldtn scrape/download it. Same with the show Berenstein Bears it would scrape 2 chracter images but not 2 of the characters who had real actor images not the chararacter specirfc image.

Sorry not sure if makes sense or not.

@bugwelle
Copy link
Collaborator

Hi,

indeed. This was more or less on purpose. But you're right, we should scrape the actor image first, and only the character image if the other one is not available.

Note to self: switch these statements:

if (character.contains("image")) {
actor.thumb = character["image"].toObject()["original"].toString();
} else {
actor.thumb = person["image"].toObject()["original"].toString();
}

Regards,
Andre

@bugwelle
Copy link
Collaborator

bugwelle commented Oct 6, 2024

Fixed via #1804

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants