Okay
  Public Ticket #3351397
Bug report - Download button on podcast page
Closed

Comments

  • Aurelien started the conversation

    Hi,

    The plugin is on v4.5, a download button has been setup in the settings ("Add Download Button for each Track'").

    The Download button works fine on the sticky player, but gives a console error on the track page, resulting in no visible action to the user. On v4.0, the link was opening the MP3. Not a Save as... window but directly the MP3, which wasn't great but usable.

    See related URL for an example behaviour.

    Console log:

    sonaar-music-public.js?ver=4.5:228

    Uncaught TypeError: Cannot read properties of null (reading 'previousElementSibling')
        at HTMLAnchorElement.<anonymous> (sonaar-music-public.js?ver=4.5:228:66)
    (anonymous) @ sonaar-music-public.js?ver=4.5:228


    The line itself:

    let fileName = event.currentTarget.closest('.store-list').previousElementSibling.querySelector('.tracklist-item-title').textContent + '.' + urlExtension;


    Can you please provide a way to fix that?

    Thanks!

  •  1,114
    Max replied

    Hi,

    please update your 2 plugins to version 4.5.1. We have just released an update that fix this

    Thanks,


    Max from the Sonaar.io Crew

  • Aurelien replied

    That sets this back to opening the MP3 file. 

    It's usable, thanks, however that would have been great to keep the "Save as" window opening for both buttons, like the sticky player on v4.5.

  •  1,114
    Max replied

    Yeah, the issue is that you would need specific server config for this to by pass security issue. We'd like to prioritize stability and reliability, as we faced some unexpected hiccups and glitches with this feature.

    Thanks,


    Max from the Sonaar.io Crew

  • Aurelien replied

    Gotcha, thanks.