Dropbox URL rewrite

More
24 Apr 2017 01:41 #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
24 Apr 2017 11:14 #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.

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

More
26 Apr 2017 22:48 #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.

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

Time to create page: 0.111 seconds
Powered by Kunena Forum