Logo of SermonSpeaker Extension Claim

Login Form

Dropbox URL rewrite

More
1 year 5 months ago #6633 by Ian
Dropbox URL rewrite was created by Ian
on saving an external Dropbox url, it would be great if a php routine could rewrite the 'copy and paste' url from dropbox to be a valid file for download / use in sermon speaker
ie
currently a dropbox download url such as
www.dropbox.com/s/gk094038p7uey5s/10000.mp3?dl=0
works in sermon speaker if it is is changed to
dl.dropboxusercontent.com/s/gk094038p7uey5s/10000.mp3

ie drop the "?dl=0" on the end of the url
and change the " www.dropbox.com " to "dl.dropboxusercontent.com"

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #6634 by Thomas Hunziker
Replied by Thomas Hunziker on topic Dropbox URL rewrite
That sounds doable for sure.
I'll see if I can even populate the dropdown with the data from there and upload to dropbox. Similar to the Amazon S3 integration.

Feel free to rate SermonSpeaker on JED .
Useful documentation for beginners: First Steps & FAQ
How to say "Thank You!": Contribute or support using the Donate button at the bottom of each page.

Please Log in or Create an account to join the conversation.

More
1 year 5 months ago #6643 by Thomas Hunziker
Replied by Thomas Hunziker on topic Dropbox URL rewrite
I just did a few tests and read some Dropbox documentation. Actually you can just change ?dl=0 to ?dl=1 or ?raw=1 and that's enough. Both ways worked for me.
The list player can work with that. The single sermon player not so much because the logic to determine the file extension doesn't ignore the part behind the ?. I can fix that in the player plugins easily.

Feel free to rate SermonSpeaker on JED .
Useful documentation for beginners: First Steps & FAQ
How to say "Thank You!": Contribute or support using the Donate button at the bottom of each page.

Please Log in or Create an account to join the conversation.

Time to create page: 0.090 seconds
Powered by Kunena Forum