Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JP_Radio plugin 0.0.1 #265

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mOqOm
Copy link

@mOqOm mOqOm commented Nov 2, 2023

No description provided.

@balbuze
Copy link
Collaborator

balbuze commented Nov 2, 2023

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
Copy link
Author

mOqOm commented Nov 3, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants