metadata_service
backend.api.tracks.metadata_service
Section titled “backend.api.tracks.metadata_service”Helpers for track metadata updates.
Functions
Section titled “Functions”resolve_feature_handles source
Section titled “resolve_feature_handles source”resolve_feature_handles(features_json: str) -> list[dict[str, Any]]Parse and resolve feature handles from JSON.
apply_album_update source
Section titled “apply_album_update source”apply_album_update(db: AsyncSession, track: Track, album_value: str | None) -> boolApply album updates to the track, returning whether a change occurred.
upload_track_image source
Section titled “upload_track_image source”upload_track_image(image: UploadFile) -> tuple[str, str | None, str | None]Persist a track image and return (image_id, public_url, thumbnail_url).