Update script and listen button URL's

Created on 19 November 2022, over 1 year ago
Updated 22 March 2023, over 1 year ago

Problem/Motivation

ReadSpeaker support has told me that the current script link is for a former product, which should instead be in this format, using a new Region value (example values eu and 1234567):

<script src="https://cdn-eu.readspeaker.com/script/1234567/webReader/webReader.js?pids=wr" type="text/javascript" id="rs_req_Init"></script>

With new Region token it could look like this in the URL field:

//cdn-[open-readspeaker:region].readspeaker.com/script/[open-readspeaker:account-id]/webReader/webReader.js?pids=wr

... where [open-readspeaker:region] is a token from a new Region field, with one of the following values:

  • eu: Europe
  • me: Middle East
  • af: Africa
  • as: Asia
  • oc: Oceania
  • eas: East Asia
  • na: North America
  • sa: South America

The same [open-readspeaker:region] value should then also be used in the href of the listen button, like so:

href="https://app-[open-readspeaker:region].readspeaker.com/cgi-bin/rsent?customerid=[open-readspeaker:account-id]&lang=...

Steps to reproduce

Try the new script path, and see that the design changes.

Updating the script URL Might also fix an error, where the player doesn't work (Curl error: 60) ...

Proposed resolution

  • Add new Region field in form
  • Update script URL
  • Update listen button URL

Remaining tasks

  • Decide whether to make this change in current 1.x branch or (if it's too much of a change) instead do it in 📌 Open Readspeaker 2.0 Postponed
  • Add new Region field in the form (token: [open-readspeaker:region]), with help text
  • Update the script link
  • Update the listen button link

User interface changes

The new ReadSpeaker listen button, will probably have new id's and classes.

Current (former) ReadSpeaker listener

New ReadSpeaker listener, after updating script

API changes

Data model changes

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇰Denmark ressa Copenhagen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024