Artwork from Apple TV?

Issue #658 new
Jürgen Pöschel created an issue

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 (1)

  1. Scott Mann

    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:

    {
      "data": {
        "q": "Only Murders in the Building",
        "canvas": {
          "id": "uts.cvs.search",
          "type": "Canvas",
          "title": "",
          "nextToken": null,
          "shelves": [
            {
              "title": "TV Shows",
              "id": "uts.col.search.SH",
              "items": [
                {
                  "id": "umc.cmc.5wg8cnigwrkfzbdruaufzb6b0",
                  "type": "Show",
                  "isEntitledToPlay": false,
                  "title": "The Afterparty",
                  "ratingValue": 600,
    ...SNIP...
    

    If we pipe that json into jq '.data.canvas.shelves[]|select(.title=="TV Shows").items[].title' we get:

    "The Afterparty"
    "Loot"
    "What We Do in the Shadows"
    "Based on a True Story"
    "Year of the Rabbit"
    "Bored to Death"
    "Search Party"
    "Brooklyn Nine-Nine"
    

    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.

  2. Log in to comment