[PR #339] [CLOSED] Added rudimentary support for podcasts #883

Closed
opened 2026-02-27 20:00:19 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/librespot-org/librespot/pull/339
Author: @ReasonableHippo
Created: 6/20/2019
Status: Closed

Base: masterHead: master


📄 Description

Hi,
I've been trying to get podcast support. I have no experience with rust and it will show. Hopefully, someone more experienced can review what I have done and rework it.
Basically, I added a bool switch in the session.
If a new track is added without gid but just with an uri (this is what is happening for me when i try to play a podcast, this bool is switched and the spotifyid is extracted from the uri).

I also added a new struct called episode with its own metadata and parsing. The base_url is the main thing that is changed. Podcasts also don't have album information, so this is not parsed.

In the player, it is really ugly.

In load_track, I differentiate between episode and track. But as a result of my lack of rust knowledge the only way to get it to compile was to copy the track code and make small adjustments.
This part will have to be reworked. In there, I also set the bitrate to 96 kbits as podcasts don't have higher quality.

So again. This is not suppost to be merged directly, but is intended as a "this might work maybe like this".
However, playback is working for me.

Cheers,
Jan


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/librespot-org/librespot/pull/339 **Author:** [@ReasonableHippo](https://github.com/ReasonableHippo) **Created:** 6/20/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `master` --- ### 📄 Description Hi, I've been trying to get podcast support. I have no experience with rust and it will show. Hopefully, someone more experienced can review what I have done and rework it. Basically, I added a bool switch in the session. If a new track is added without gid but just with an uri (this is what is happening for me when i try to play a podcast, this bool is switched and the spotifyid is extracted from the uri). I also added a new struct called episode with its own metadata and parsing. The base_url is the main thing that is changed. Podcasts also don't have album information, so this is not parsed. In the player, it is really ugly. In load_track, I differentiate between episode and track. But as a result of my lack of rust knowledge the only way to get it to compile was to copy the track code and make small adjustments. This part will have to be reworked. In there, I also set the bitrate to 96 kbits as podcasts don't have higher quality. So again. This is not suppost to be merged directly, but is intended as a "this might work maybe like this". However, playback is working for me. Cheers, Jan --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:00:19 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#883
No description provided.