Artwork from Apple TV?
Issue #658
resolved
Recently, whenever I use Subler, artwork is fetched from Apple TV, and usually it is the wrong artwork. Only after loading more artwork – up to three times – the correct artwork shows up.
Why is this, and how can I change this?
Jurgen
Comments (2)
-
-
repo owner - changed status to resolved
The new version will check if the title is similar, so it will show less random artworks.
- Log in to comment
I’ve experienced this as well. When Subler searched for artwork via uts-api.itunes.apple.com API for a particular TV Show Name as query string, it gets back results of multiple items, often of the same genre, for some reason, and it seems to pull the first one, even if it has an entirely different title. For instance, an episode of “Only Murders in the Building” causes a query to https://uts-api.itunes.apple.com/uts/v2/search/incremental?&sf=143441&locale=EN&utsk=0&caller=wta&v=58&pfm=desktop&q=Only Murders in the Building, and the results look like:
If we pipe that json into jq '.data.canvas.shelves[]|select(.title=="TV Shows").items[].title' we get:
Okay, so the sought tv show isn’t even in the list. And in AppleTV.swift, it looks like if there’s no exact title match, it goes with the first item.
Okay, so in the AppleTV app, searching for “Only Murders in the Building” returns no results, as well. I guess since the Hulu doesn’t share info with Apple?
Anyway, it’s only annoying to me because I have the queue process automatically, and I’ve had a number of shows automatically receive the wrong artwork. It would be nice if Subler excluded AppleTV artwork if the edit distance between the returned titles and the query were beyond some reasonable threshold.