Switch url for media to the HPR CCDN #225
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: HPR/hpr_generator#225
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We need to enable the Community Content Delivery Network.
The system needs to redirect based on filename.
This needs to be supported by the redirector, and the website.
This means the url will need to change to "https://hub.hackerpublicradio.org/ccdn.php?filename=${/path/to/file/name.ext}"
Where the filename will be the full path to the files:
"https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4231/hpr4231.mp3"
If you set the to media_baseurl in site.cfg:
media_baseurl: https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr$eps_id/
This will generate links to the episode related media (i.e: .mp3, .ogg, .spx, .srt, .txt ) like:
I generated an index page using this site.cfg setting and the links work for the various audio links. The txt, vvt, and srt files are broken.
But that won't work for links to series eg /series/14/image.png ?