Switch url for media to the HPR CCDN #225

Open
opened 2024-10-20 20:46:44 +00:00 by ken_fallon · 2 comments
Owner

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"

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"
Owner

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.

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: - https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4230/hpr4230.vtt - https://hub.hackerpublicradio.org/ccdn.php?filename=/eps/hpr4230/hpr4230.mp3 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.
Author
Owner

But that won't work for links to series eg /series/14/image.png ?

But that won't work for links to series eg /series/14/image.png ?
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: HPR/hpr_generator#225
No description provided.