radiobrowser-api icon indicating copy to clipboard operation
radiobrowser-api copied to clipboard

Server issues

Open Wikinaut opened this issue 8 years ago • 2 comments

(moved from https://github.com/segler-alex/RadioDroid/issues/2 )

Server ouput

add new fields for

  • clickcounts "clicks":""
  • UTC timestamp of last change "upd":"YYYYMMDDHHMMSS"
  • UTC timestamp of last data validation "ok":"YYYYMMDDHHMMSS"
  • md5 : per station entry: md5 (or sha1 or sha256, but md5 is fine here) hash of all data "md5":""
  • coding method (MP3, OGG, ...) (if known)
  • bitrate indication (CBR, VBR) (128/64/36) and/or value HQ / MQ / LQ (if known)
  • use PRETTY_PRINT in PHP json_encode( ..., PRETTY_PRINT) for nicer output

new endpoints

  • add new endpoint /modified-after/YYYYMMDDHHMMSS which results in all records which were modified after the indicated date
  • compact output formats for results: instead of presenting the whole record(s), only respond with md5 hash and upd timestamp only

implement a server method to link different stream entries for the same radio station/program

Example: MP3-HQ-128, MP3-MQ-64, OGG-VBR-HQ, OGG-VBR-MQ, OGG-VBR-LQ-MONO (example: Deutschlandradio Kultur) This might require a modification of the JSON/XML output. Or link different entries by a "handle" which glues the different stream entries.

User interface UX

  • add a flag "report invalid stream url", which the user can click in the app, and which flags the station data as "possibly broken"
  • give users the hint text how to add several tags (comma-separated)

Sanitize all inputs and outputs

  • XSS protection
  • check and validate inputs, e.g. protocol handler
  • normalize tag entries (currently, tags are separated by "," like "tag1, tag2, tag3"). There was no information, that commas must be used.

Wikinaut avatar Mar 13 '16 16:03 Wikinaut

I added the clickcount to each station. i think i will split this issue in many sub-issues. so i can say i closed one, each time i improve something :)

segler-alex avatar Mar 18 '16 00:03 segler-alex

i think the one with nice JSON output is not optimal, if you need that you should use a browser extension. in firefox for example: http://jsonview.com/

segler-alex avatar Mar 18 '16 20:03 segler-alex