volumio / volumio-plugins-sources

Volumio plugins source code for Volumio 3
47 stars 253 forks source link

Add JP_Radio plugin 0.0.1 #265

Open mOqOm opened 1 year ago

balbuze commented 1 year ago

thank you for your contribution! can you check why :


Nov 02 18:37:23 volumio-rpi4 volumio[824]: info: CoreCommandRouter::executeOnPlugin: jp_radio , handleBrowseUri
Nov 02 18:37:23 volumio-rpi4 volumio[824]: info: Preload queue cleared
Nov 02 18:37:33 volumio-rpi4 volumio[824]: (node:824) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'stations' of undefined
Nov 02 18:37:33 volumio-rpi4 volumio[824]:     at Radiko.#getStations (/data/plugins/music_service/jp_radio/lib/radiko.js:243:62)
Nov 02 18:37:33 volumio-rpi4 volumio[824]:     at runMicrotasks (<anonymous>)
Nov 02 18:37:33 volumio-rpi4 volumio[824]:     at processTicksAndRejections (internal/process/task_queues.js:93:5)
Nov 02 18:37:33 volumio-rpi4 volumio[824]:     at async Radiko.init (/data/plugins/music_service/jp_radio/lib/radiko.js:70:7)
Nov 02 18:37:33 volumio-rpi4 volumio[824]:     at async JpRadio.#init (/data/plugins/music_service/jp_radio/lib/radio.js:104:5)
Nov 02 18:37:33 volumio-rpi4 volumio[824]:     at async Server.<anonymous> (/data/plugins/music_service/jp_radio/lib/radio.js:78:9)
Nov 02 18:37:33 volumio-rpi4 volumio[824]: (Use `node --trace-warnings ...` to show where the warning was created)
Nov 02 18:37:33 volumio-rpi4 volumio[824]: (node:824) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
Nov 02 18:37:33 volumio-rpi4 volumio[824]: (node:824) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

thanks

mOqOm commented 1 year ago

Error content confirmed. The error seems to be occurring because Radiko's #getToken function is responsible for determining whether the access is from within Japan or from outside Japan. The error is likely due to it being detected as access from outside Japan.

To run the JP_Radio plugin, as specified in the README, it is necessary to access it from a Japanese IP address.

thanks