mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 16:25:52 +03:00
[PR #1432] [MERGED] metadata: handle empty trailer_uri for shows #1389
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#1389
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/1432
Author: @eladyn
Created: 12/29/2024
Status: ✅ Merged
Merged: 12/30/2024
Merged by: @photovoltex
Base:
dev← Head:episode_metadata_fix📝 Commits (2)
d2e4ac0metadata: handle empty trailer_uri for shows3bf830fchore: update changelog📊 Changes
2 files changed (+8 additions, -2 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
metadata/src/show.rs(+7 -2)📄 Description
I stumbled across a show, which has an empty
trailer_uri. In particular, thetrailer_urifield on thelibrespot_protocol::metadata::Showstruct wasSome(""), which led to theSpotifyId::from_uriparsing to fail.This patch accounts for this possibility. Another option would of course be to just use
Stringfor that field, to avoid any parsing problems.Example:
previously, doing
Show::get(&session, &id).awaityielded forspotify:show:28sR8OiOq0MMnGEzMJTXSt:With this, it returns:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.