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.

Missing title in get_current_track_info

See original GitHub issue

When investigating a missing title in my audio software, I traced it back to some incorrect output from get_current_track_info.

In short, the following code:

print(device.get_current_track_info())

gives:

{'title': '', 'artist': 'Angel City', 'album': 'Face to Face', 'album_art': '...', 'position': '0:01:59', 'playlist_position': '9', 'duration': '0:03:14', 'uri': '...', 'metadata': '<DIDL-Lite xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:r="urn:schemas-rinconnetworks-com:metadata-1-0/" xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/"><item id="-1" parentID="-1" restricted="true"><res protocolInfo="x-file-cifs:*:audio/mpeg:*" duration="0:03:14">...</res><r:streamContent></r:streamContent><upnp:albumArtURI>...</upnp:albumArtURI><dc:title>Waiting for the World</dc:title><upnp:class>object.item.audioItem.musicTrack</upnp:class><dc:creator>Angel City</dc:creator><upnp:album>Face to Face</upnp:album><upnp:originalTrackNumber>9</upnp:originalTrackNumber><r:albumArtist>Angel City</r:albumArtist></item></DIDL-Lite>'}

The track title is present in the metadata but not in the dict.

I’m using the latest version from pip: 0.26.3.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jjlawrencommented, Feb 28, 2022

Yep, that’s the same issue I’m seeing elsewhere. Working on a fix.

0reactions
pwtcommented, Mar 2, 2022

Fix released in SoCo v0.26.4. Thanks for spotting this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Track info of currently playing music - android - Stack Overflow
I want to implement code to get current music track info in all Android devices (e.g. HTC and Samsung devices). Is there any...
Read more >
How get current track info from IcyMetadata? #414 - GitHub
My intent is to get Cover image and Title of a current song from a SHOUTcast/Icecast stream defined in the icy-metain property.
Read more >
Read Spotify track info using C# - harrewijnen.net
As you can see, the track title is in the window name of a Spotify process: Spotify track info in the process. While...
Read more >
Missing Titles / Applying for a Duplicate Title
If your title has been lost, mutilated, or destroyed, you may apply for a duplicate title. To apply for a duplicate title, you...
Read more >
MediaPlayer - Android Developers
Once you have called release() , you must no longer interact with the released instance. MediaPlayer objects created using new is in the...
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