custom-cards / upcoming-media-card

📺 A card to display upcoming episodes and movies from services like: Plex, Kodi, Radarr, Sonarr, and Trakt.
281 stars 78 forks source link

disable_hyperlinks doesn't function #96

Closed lichenophile closed 5 months ago

lichenophile commented 5 months ago

Describe the bug:

adding disable_hyperlinks: true does not prevent clicking items that lead to *arr pages

Config YAML:

                - type: custom:upcoming-media-card
                  title: ↔ Upcoming Films
                  date: ddmm
                  clock: 24
                  max: 66
                  entity: sensor.radarr_upcoming_media
                  image_style: fanart
                  title_text: $title
                  line1_text: $genres
                  line2_text: $runtime - $rating
                  line3_text: $release, $time
                  line4_text: $studio
                  title_size: medium
                  line_size: small
                  border_color: "#f92aad66"
                  hide_empty: false
                  sort_by: airdate
                  sort_ascending: true
                  enable_tooltips: true
                  enable_transparency: true
                  enable_trailers: true
                  flag: false
                  box_shadows: false
                  disable_hyperlinks: true

Components:

This issue seems present when powering the card with either *arr upcoming media custom components

HA Error:

No HA error logs present that I could find

Troubleshooting Guide:

I have given it a read, nothing related to this issue present.

Home Assistant Version:

Core 2024.6.4 Supervisor 2024.06.0 Operating System 12.4 Frontend 20240610.1

Screenshots:

Not helpful in this case

Additional Context:

I discovered this issue when attempting to set enable_trailers: true for the media which I have checfked is supplying a trailer within the radarr sensor data. This did not open the trailer upon clicking, instead leading to the movies listing in my radarr instance. So I tried disable_hyperlinks in case the deep link was overriding, which caused me to discover that disable_hyperlinks doesn't seem to work regardless if the item has a trailer or not, or is an item form the sonarr or radarr sensor.

This issue may be the cause of enable_trailers not functioning correctly, so I will hold off on making an issue for that until this is solved, just in case.

Ideally, I would like to be able to disable deep links being clicked through by users but still allow trailers to be played.

mkanet commented 5 months ago

disable_hyperlinks disables trailer playback since the trailer URLs are hyperlinks too.

PS: trailer playback has only been tested on chrome and edge browser and also the Companion App (if you enable video play in the compabion app settings.

lichenophile commented 5 months ago

How Embarrassing for me, I just had to force clear lovelace cache

Both feature toggles are now working for me on both FF, Chrome and Companion app

Issue resolved

mkanet commented 5 months ago

How Embarrassing for me, I just had to force clear lovelace cache

Both feature toggles are now working for me on both FF, Chrome and Companion app

Issue resolved

Glad you figured it out. Thanks for reminding me to put that troubleshooting tip (cleared browser cache) in the readme.md, especially when upgrading to a new version.

1liminal1 commented 5 months ago

Hi there,

What do you mean by "force clear lovelace cache" thanks :)