Missing title in get_current_track_info
See original GitHub issueWhen 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:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yep, that’s the same issue I’m seeing elsewhere. Working on a fix.
Fix released in SoCo v0.26.4. Thanks for spotting this issue.