Send to kodi from bandcamp

It doesn’t work. For some reason Bandcamp surrounds urls by new line symbols (%0A). Shared it to a regular Notes app - that’s true, url has new line before and after:

2020-05-26 14:17:43.073 T:140455765341952 DEBUG: JSONRPC: Incoming request: {“id”:396,“jsonrpc”:“2.0”,“method”:“Player.Open”,“params”:{“item”:{“file”:“plugin://plugin.audio.kxmxpxtx.bandcamp/?mode=url&url=%0Ahttp%3A%2F%2Ftrdr.bandcamp.com%2Falbum%2Fdo-what-you-must-and-come-what-may%0A”}}}

Soundcloud works just fine:

2020-05-26 14:21:40.305 T:140455765341952 DEBUG: JSONRPC: Incoming request: {“id”:240,“jsonrpc”:“2.0”,“method”:“Player.Open”,“params”:{“item”:{“file”:“plugin://plugin.audio.soundcloud/play/?url=https%3A%2F%2Fsoundcloud.com%2Fthiago-silva-394%2Fsets%2Fchill-out-2018”}}}

If you don’t plan to implement trim of non-printable characters in Yatse - I will handle in on the addon side.

This is strange those should not be in the URL and where not during my tests, from what / how do you share it?

  1. Open bandcamp
  2. Discovery > Top > Album > Share
  3. Play on Media Center
  4. Share to Google Keep to show new lines before and after the url
  5. Share in SoundCloud to show how it looks like there
    I’m on Android 10 (Mi A2 Lite) with Bandcamp 2.1.24-172734

Screencast of the reproduce:

Ok so from the app I tested from the website, will test and see to remove on Yatse side.

Ok so yes incredible but true, Android tells me that the url is ok returns proper part when parsing it but when converted to strings keeps those new lines…

Anyway will strip them for next release.

Works now, case closed!
Thx!

It’s great to see how this issue was investigated and resolved. Sometimes even a small formatting problem, like extra newline characters in a shared URL, can cause unexpected behavior. Thanks to DimaKompot for providing the reproduction steps and screencast, and to Tolriq for identifying the Android parsing issue and fixing it on the Yatse side. Glad to see everything is working now!