question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generic origin_url in Soundcloud connector

See original GitHub issue

Hello!

Describe the bug When scrobbling from Souncloud, the resulting origin_url (used for ListenBrainz submissions) is the current browser location. This does not always represent the location of the track being played.

For example, listening to tracks from the home page, the origin_url will be https://soundcloud.com/discover for each track. Similarly, if playing from a set (playlist) , the origin_url will be that of the set rather than the URL of the track itself.

Expected behavior While getting the actual resource URL might prove a bit tricky without access to the Soundcloud player, I would expect the origin_url to represent the actual resource URL rather than a generic page.

Debug logs Output from browser console:

Web Scrobbler: {
  "track": "Midnight Walk",
  "artist": "Richard Griffith",
  "album": null,
  "albumArtist": null,
  "uniqueID": null,
  "duration": 120,
  "currentTime": null,
  "isPlaying": false,
  "trackArt": "https://i1.sndcdn.com/artworks-000124055312-ghsz4i-t120x120.jpg",
  "isPodcast": false,
  "originUrl": "https://soundcloud.com/discover"
}
Web Scrobbler: isPlaying state changed to true

Additional context I am a developer for ListenBrainz and currently working on playback features on our website. It would be helpful to have access to a URL or unique ID for playback purposes, and more generally to have a more descriptive URL. I am happy to help implement an improvement but being new to the codebase I would appreciate help with pointing me in the right direction. Also happy to provide more information as necessary. Thanks for your time!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
MonkeyDocommented, Apr 28, 2022

This issue is still valid and current.

0reactions
MonkeyDocommented, Apr 29, 2022

I’m terribly sorry, I got confused! That ticket was so old I forgot the issue was about Soundcloud and was focusing on Bandcamp.

Thank you for both of those fixes !

The Soundcloud PR fixed this issue perfectly.

For Bandcamp, now that you have set up the mechanism to retrieve the album URL, I’ll be able to open another PR if the mechanism ends up being different for the different Bandcamp pages.

Thanks again !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Embedding a track or playlist - SoundCloud Help Center
To get an embed code for your track or playlist, click the 'Share' button below the waveform and an overlay will appear. Click...
Read more >
Unsafe links on SoundCloud
We block certain sites to ensure the safety of our users and their accounts. We flag any site that is suspected for hosting...
Read more >
Your Display Name and Profile URL - SoundCloud Help Center
You can change your display name and profile URL by visiting your profile page via a web browser on your computer and clicking...
Read more >
Unable to play tracks - SoundCloud Help Center
Unable to play tracks. If you are unable to play a certain track it might be that this SoundCloud member does not have...
Read more >
kendrick lamar (oklama) - top of the morning - SoundCloud
Stream kendrick lamar (oklama) - top of the morning by xUnizon/uzoszn on desktop and mobile. Play over 265 million tracks for free on ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found