custom-components / sensor.plex_recently_added

▶️ Plex component to feed Upcoming Media Card.
Apache License 2.0
78 stars 60 forks source link

Plex items aren’t clickable #80

Open ThePolarCat opened 3 weeks ago

ThePolarCat commented 3 weeks ago

I suppose the items showing from the Plex On Deck should be clickable, however nothing happens when tapping on any.

The Error No error!

Indicate if you followed all steps in the troubleshooting doc Well, did you? Yes

What data does the sensor display if any? Feel free to censor information pertaining to titles, networks, etc.

it shows the item On Deck, as expected.

What displays when visiting the API URL from the troubleshooting guide?

Blank page but no error

Does the default Home Assistant Plex component work for you? This is important to know, helps rule out issues with your Plex installation.

show the same data but also not clickable, it seems it’s a bug as other people are reporting it.

Home Assistant Version

Core 2024.5.4 Frontend 20240501.1

Additional Context I’m not sure if it’s problem with this component or the card.

mkanet commented 2 weeks ago

Hi, ere you using the default Show/Movie sensors? Can you show me in a screenshot which items are still clickable and which items are not? If none of the items are clickable, you are most likely using the wrong repo/version. You need to make sure you are using the below version of the plex recently added 0.4.6 integration or newer:

image

and Upcoming Media card version 0.5.5

image

Also, can you go to: Home Assistant's Developer Tools/STATES and type the name of the sensor entity that has unclickable items, then copy and paste the entity name and the first 5 items in the respective attributes? Below is mine (make sure you hide your plex token. I renamed my token to xxxxxxxxxxxxxxxxxxxx below).

sensor.plex_recently_added

data:
  - title_default: $title
    line1_default: $episode
    line2_default: $release
    line3_default: $number - $rating - $runtime
    line4_default: $genres
    icon: mdi:eye-off
  - airdate: "2024-06-03T02:26:18Z"
    aired: "2021-05-11"
    release: $day, $date $time
    flag: true
    title: The Chosen
    episode: The Perfect Opportunity
    season_num: "2"
    episode_num: "4"
    number: S02E04
    runtime: 58
    studio: ""
    genres: ""
    rating: ""
    summary: >-
      As Jesus and the disciples head to Jerusalem to celebrate the Feast of
      Tabernacles, a new enemy follows them, while a familiar enemy awaits.
    poster: /plex_recently_added?path=/library/metadata/10995/thumb/1714927464
    fanart: /plex_recently_added?path=/library/metadata/10995/art/1714927464
    deep_link: >-
      https://mediaplex.mydomain.com:443/web/index.html#!/server/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/details?key=%2Flibrary%2Fmetadata%2F11432
  - airdate: "2024-05-25T03:26:42Z"
    aired: "2010-07-08"
    release: $day, $date $time
    flag: true
    title: Despicable Me
    episode: Despicable Me
    number: ""
    runtime: 94
    studio: Illumination
    genres: ""
    rating: ""
    summary: >-
      Gru, a criminal mastermind, adopts three orphans as pawns to carry out the
      biggest heist in history. His life takes an unexpected turn when the
      little girls see the evildoer as their potential father.
    poster: /plex_recently_added?path=/library/metadata/11293/thumb/1716607663
    fanart: /plex_recently_added?path=/library/metadata/11293/art/1716607663
    deep_link: >-
      https://mediaplex.mydomain.com:443/web/index.html#!/server/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/details?key=%2Flibrary%2Fmetadata%2F11293
  - airdate: "2024-05-18T14:53:20Z"
    aired: "2024-05-08"
    release: $day, $date $time
    flag: true
    title: IF
    episode: IF
    number: ""
    runtime: 95
    studio: Paramount
    genres: ""
    rating: ""
    summary: >-
      A young girl who goes through a difficult experience begins to see
      everyone's imaginary friends who have been left behind as their real-life
      friends have grown up.
    poster: /plex_recently_added?path=/library/metadata/11234/thumb/1717756400
    fanart: /plex_recently_added?path=/library/metadata/11234/art/1717756400
    deep_link: >-
      https://mediaplex.mydomain.com:443/web/index.html#!/server/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/details?key=%2Flibrary%2Fmetadata%2F11234
  - airdate: "2024-05-16T06:34:08Z"
    aired: "2024-05-16"
    release: $day, $date $time
    flag: true
    title: "Star Trek: Discovery"
    episode: Labyrinths
    season_num: "5"
    episode_num: "8"
    number: S05E08
    runtime: 57
    studio: ""
    genres: ""
    rating: ""
    summary: >-
      When Captain Burnham is trapped within a “mindscape” designed to test her
      worthiness to retrieve the Progenitor's powerful technology, Book, Rayner,
      and the crew of the U.S.S. Discovery must hold off the Breen long enough
      for her to escape.
    poster: /plex_recently_added?path=/library/metadata/9878/thumb/1717491811
    fanart: /plex_recently_added?path=/library/metadata/9878/art/1717491811
    deep_link: >-
      https://mediaplex.mydomain.com:443/web/index.html#!/server/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/details?key=%2Flibrary%2Fmetadata%2F11199
  - airdate: "2024-05-10T01:34:11Z"
    aired: "2024-05-09"
    release: $day, $date $time
    flag: true
    title: Sugar (2024)
    episode: The Friends You Keep
    season_num: "1"
    episode_num: "7"
    number: S01E07
    runtime: 36
    studio: ""
    genres: ""
    rating: ""
    summary: >-
      Sugar's fears for the safety of his friends lead him to a clandestine
      gathering where he learns a dangerous secret—and the truth about Olivia.
    poster: /plex_recently_added?path=/library/metadata/10771/thumb/1716376098
    fanart: /plex_recently_added?path=/library/metadata/10771/art/1716376098
    deep_link: >-
      https://mediaplex.mydomain.com:443/web/index.html#!/server/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/details?key=%2Flibrary%2Fmetadata%2F11162
ThePolarCat commented 2 weeks ago

Hey,

I currently only have one item on deck and I’m using plex_recently_added sensor.

Here’s the STATE of the item:

data:   - title_default: $title     line1_default: $episode     line2_default: $release     line3_default: $number - $rating - $runtime     line4_default: $genres     icon: mdi:eye-off   - airdate: "2020-05-29T19:13:53Z"     aired: "2020-05-22"     release: $day, $date $time     flag: true     title: "Trailer Park Boys: The Animated Series"     episode: Scamazon     season_num: "2"     episode_num: "4"     number: S02E04     runtime: 25     studio: ""     genres: ""     rating: ""     summary: >-       Bubbles pours his life savings into Kitty Shakes while Julian and Ricky       drive off to steal packages. Later, a reality competition comes calling.     poster: /plex_recently_added?path=/library/metadata/6807/thumb/1714349431     fanart: /plex_recently_added?path=/library/metadata/6807/art/1714349431     deep_link: >-       http://192.168.2.8:32400/web/index.html#!/server/****************/details?key=%2Flibrary%2Fmetadata%i2F6845 friendly_name: Plex Recently Added

Thanks. On 9 Jun 2024 at 1:08 AM +0300, MKANET @.***>, wrote:

Hi, are you using the default Show/Movie sensors? Can you show me in a screenshot which items are still clickable and which items are not? Also, can you go to: Home Assistant's Developer Tools/STATES and type the name of the sensor entity that has unclickable items, then copy and paste the entity name and the first 5 items in the respective attributes? Below is mine (make sure you hide your plex token. I renamed my token to xxxxxxxxxxxxxxxxxxxx below). sensor.plex_recently_added data:

  • title_default: $title line1_default: $episode line2_default: $release line3_default: $number - $rating - $runtime line4_default: $genres icon: mdi:eye-off
  • airdate: "2024-06-03T02:26:18Z" aired: "2021-05-11" release: $day, $date $time flag: true title: The Chosen episode: The Perfect Opportunity season_num: "2" episode_num: "4" number: S02E04 runtime: 58 studio: "" genres: "" rating: "" summary: >- As Jesus and the disciples head to Jerusalem to celebrate the Feast of Tabernacles, a new enemy follows them, while a familiar enemy awaits. poster: /plex_recently_added?path=/library/metadata/10995/thumb/1714927464 fanart: /plex_recently_added?path=/library/metadata/10995/art/1714927464 deep_link: >- https://mediaplex.mydomain.com:443/web/index.html#!/server/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/details?key=%2Flibrary%2Fmetadata%2F11432
  • airdate: "2024-05-25T03:26:42Z" aired: "2010-07-08" release: $day, $date $time flag: true title: Despicable Me episode: Despicable Me number: "" runtime: 94 studio: Illumination genres: "" rating: "" summary: >- Gru, a criminal mastermind, adopts three orphans as pawns to carry out the biggest heist in history. His life takes an unexpected turn when the little girls see the evildoer as their potential father. poster: /plex_recently_added?path=/library/metadata/11293/thumb/1716607663 fanart: /plex_recently_added?path=/library/metadata/11293/art/1716607663 deep_link: >- https://mediaplex.mydomain.com:443/web/index.html#!/server/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/details?key=%2Flibrary%2Fmetadata%2F11293
  • airdate: "2024-05-18T14:53:20Z" aired: "2024-05-08" release: $day, $date $time flag: true title: IF episode: IF number: "" runtime: 95 studio: Paramount genres: "" rating: "" summary: >- A young girl who goes through a difficult experience begins to see everyone's imaginary friends who have been left behind as their real-life friends have grown up. poster: /plex_recently_added?path=/library/metadata/11234/thumb/1717756400 fanart: /plex_recently_added?path=/library/metadata/11234/art/1717756400 deep_link: >- https://mediaplex.mydomain.com:443/web/index.html#!/server/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/details?key=%2Flibrary%2Fmetadata%2F11234
  • airdate: "2024-05-16T06:34:08Z" aired: "2024-05-16" release: $day, $date $time flag: true title: "Star Trek: Discovery" episode: Labyrinths season_num: "5" episode_num: "8" number: S05E08 runtime: 57 studio: "" genres: "" rating: "" summary: >- When Captain Burnham is trapped within a “mindscape” designed to test her worthiness to retrieve the Progenitor's powerful technology, Book, Rayner, and the crew of the U.S.S. Discovery must hold off the Breen long enough for her to escape. poster: /plex_recently_added?path=/library/metadata/9878/thumb/1717491811 fanart: /plex_recently_added?path=/library/metadata/9878/art/1717491811 deep_link: >- https://mediaplex.mydomain.com:443/web/index.html#!/server/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/details?key=%2Flibrary%2Fmetadata%2F11199
  • airdate: "2024-05-10T01:34:11Z" aired: "2024-05-09" release: $day, $date $time flag: true title: Sugar (2024) episode: The Friends You Keep season_num: "1" episode_num: "7" number: S01E07 runtime: 36 studio: "" genres: "" rating: "" summary: >- Sugar's fears for the safety of his friends lead him to a clandestine gathering where he learns a dangerous secret—and the truth about Olivia. poster: /plex_recently_added?path=/library/metadata/10771/thumb/1716376098 fanart: /plex_recently_added?path=/library/metadata/10771/art/1716376098 deep_link: >- https://mediaplex.mydomain.com:443/web/index.html#!/server/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/details?key=%2Flibrary%2Fmetadata%2F11162 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
mkanet commented 2 weeks ago

Thanks. Can you verify that you're using the original Upcoming Media Card repo? Are you able to use any of the new Upcoming Media Card features like enable transparency, collapse filter, etc?

ThePolarCat commented 2 weeks ago

Yes. On 9 Jun 2024 at 11:12 AM +0300, MKANET @.***>, wrote:

Thanks. Can you verify that you're using the original Upcoming Media Card repo? Are you able to use any of the new Upcoming Media Card features like enable transparency, collapse filter, etc? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

mkanet commented 2 weeks ago

@ThePolarCat "Yes" isn't very helpful. Can you please tell me which new features you were able to successfully use? Also, try to add several more items to the sensor you are using with UMC. 1 item is very little to work with. That way, you will be able to test the new collapse feature; which also requires mouse clicking to toggle collapsing that stack.** I want to see if all clicking doesnt work for you or just deep_links.

BTW: A common issue is UMC getting stuck in web browser cache; requiring to delete your web browser cache. Please try both below and let me know the results:

1) Deleteing your web browser cache and try again
2) Also, try another web browser to see if you can reproduce the issue

ThePolarCat commented 2 weeks ago

Sorry for my previous scarce response, I was trying many things with UMC for over an hour and I was frustrated.

I don’t know how the transparent feature should look but I included a screen shot.

I’ve added more items to the list.

sensor.plex_recently_added

data:   - title_default: $title     line1_default: $episode     line2_default: $release     line3_default: $number - $rating - $runtime     line4_default: $genres     icon: mdi:eye-off   - airdate: "2022-09-02T01:54:23Z"     aired: "2014-11-17"     release: $day, $date $time     flag: false     title: American Dad!     episode: Now and Gwen     season_num: "12"     episode_num: "5"     number: S12E05     runtime: 21     studio: ""     genres: ""     rating: ""     summary: >-       When Francine's sister Gwen comes to town, Hayley suspects she is up to no       good. Meanwhile, Stan teaches Steve the art of hugging Aunt Gwen, and       Klaus shadows Roger's dramatic comments.     poster: /plex_recently_added?path=/library/metadata/8697/thumb/1716685235     fanart: /plex_recently_added?path=/library/metadata/8697/art/1716685235     deep_link: >-       http://192.168.2.8:32400/web/index.html#!/server/***/details?key=%2Flibrary%2Fmetadata%2F8972   - airdate: "2020-05-29T19:13:53Z"     aired: "2020-05-22"     release: $day, $date $time     flag: true     title: "Trailer Park Boys: The Animated Series"     episode: Bubbles for Mayor     season_num: "2"     episode_num: "7"     number: S02E07     runtime: 25     studio: ""     genres: ""     rating: ""     summary: >-       The city rounds up Bubbles’s free-range kitties, and when the mayor kicks       him to the curb, he decides to run for office. One paradigm shift coming       up.     poster: /plex_recently_added?path=/library/metadata/6807/thumb/1714349431     fanart: /plex_recently_added?path=/library/metadata/6807/art/1714349431     deep_link: >-       http://192.168.2.8:32400/web/index.html#!/server/***/details?key=%2Flibrary%2Fmetadata%2F6848   - airdate: "2019-10-14T23:22:15Z"     aired: "2019-10-13"     release: $day, $date $time     flag: false     title: Family Guy     episode: Absolutely Babulous     season_num: "18"     episode_num: "3"     number: S18E03     runtime: 21     studio: ""     genres: ""     rating: ""     summary: >-       When Stewie receives a participation medal in his school's toddler games,       he begins to question everything he has ever won. Meanwhile, Peter causes       a fight between Lois' parents and must repair the damage he caused.     poster: /plex_recently_added?path=/library/metadata/1552/thumb/1716511868     fanart: /plex_recently_added?path=/library/metadata/1552/art/1716511868     deep_link: >-       http://192.168.2.8:32400/web/index.html#!/server/****/details?key=%2Flibrary%2Fmetadata%2F6230   - airdate: "2016-03-27T22:25:09Z"     aired: "2000-02-13"     release: $day, $date $time     flag: false     title: Futurama     episode: Put Your Head on My Shoulders     season_num: "2"     episode_num: "10"     number: S02E10     runtime: 21     studio: ""     genres: ""     rating: ""     summary: >-       Fry's brief relationship with Amy is forcibly prolonged when a near-fatal       car crash leaves Fry's head grafted to Amy's left shoulder. Meanwhile,       Bender cashes in on Valentine's Day by starting a dating service.     poster: /plex_recently_added?path=/library/metadata/1688/thumb/1717461778     fanart: /plex_recently_added?path=/library/metadata/1688/art/1717461778     deep_link: >-       http://192.168.2.8:32400/web/index.html#!/server/***/details?key=%2Flibrary%2Fmetadata%2F1718 friendly_name: Plex Recently Added On 11 Jun 2024 at 6:02 AM +0300, MKANET @.***>, wrote:

@ThePolarCat "Yes" isn't very helpful. Can you please tell me which new features you were able to successfully use? Also, try to add several more items to the sensor you are using with UMC. 1 item is very little to work with. That way, you will be able to test the new collapse feature; which also requires mouse clicking to toggle collapsing that stack.** I want to see if all clicking doesnt work for you or just deep_links. BTW: A common issue is UMC getting stuck in web browser cache; requiring to delete your web browser cache. Please try both below and let me know the results:

  1. Deleteing your web browser cache and try again
  2. Also, try another web browser to see if you can reproduce the issue

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>