sneat / patreon-downloader

Download media and attachments from Patreon pages.
MIT License
42 stars 6 forks source link

No support for audio posts #10

Closed Lovasz-Akos closed 1 year ago

Lovasz-Akos commented 2 years ago

Using it on a podcast's patreon only downloads images, none of the audios

Lovasz-Akos commented 2 years ago

Didn't check the source code yet, but if you're filterig by classes, they always have a source link in an \<audio> tag, opening the link results in automatically downloading the file. image

Lovasz-Akos commented 2 years ago

this firefox only extension is specialized in audio downloads (but doesn't seem to work?), maybe it can help?

sneat commented 2 years ago

I might need to see an example post, or at least the data attached to the post. They must be attaching the audio in a different way to what I expect (perhaps embedding in the content rather than attaching to the post).

This public post for instance works (since it's the method I expect) - https://www.patreon.com/posts/new-ambience-35325847

Would you be able to chat to me on Discord (https://discord.gg/NQkFhnxcqC) at some stage?

Lovasz-Akos commented 2 years ago

they indeed use a (probably patreon's own) embedded audio player thingy that looks like this, it's not just attached to the post. image here's some podcast using the same feature that's a public post so you can disect it yourself :D https://www.patreon.com/posts/646-liv-strong-7-69272897

The block itself has an audio element, if you click the link inside it just downloads the source file

<audio preload="none" src="https://c10.patreonusercontent.com/4/patreon-media/p/post/69272897/dc2fc416c2f34f39bef9af0d6c0c6dd8/eyJhIjoxLCJwIjoxfQ%3D%3D/1.mp3?token-time=1661904000&amp;token-hash=3uqM8elfw9aL35LW4I-W7-n_BpaszKKICq3dZrUHvFA%3D" type="audio/mp3?token-time=1661904000&amp;token-hash=3uqM8elfw9aL35LW4I-W7-n_BpaszKKICq3dZrUHvFA%3D"><span role="status">We couldn't load the audio player! Please try a different browser.</span></audio>
sneat commented 2 years ago

@Lovasz-Akos interestingly, that post works correctly for me. I see 3 files listed, and end up with a 101MB mp3 file which plays correctly.

What are you seeing?

image