[PR #846] Feature: show queued songs #1053

Open
opened 2026-02-28 14:54:18 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Rigellute/spotify-tui/pull/846
Author: @rudiejd
Created: 7/31/2021
Status: 🔄 Open

Base: masterHead: master


📝 Commits (2)

  • b04aaa1 feat: show queued songs
  • 26b4988 fix: remove from queue when song is played

📊 Changes

9 files changed (+142 additions, -1 deletions)

View changed files

📝 .gitignore (+2 -0)
📝 src/app.rs (+18 -0)
📝 src/handlers/mod.rs (+8 -0)
src/handlers/queue_menu.rs (+37 -0)
📝 src/main.rs (+3 -0)
📝 src/network.rs (+19 -1)
📝 src/ui/help.rs (+5 -0)
📝 src/ui/mod.rs (+48 -0)
📝 src/user_config.rs (+2 -0)

📄 Description

Resolves my feature request https://github.com/Rigellute/spotify-tui/issues/841. This is probably a pretty bad implementation. I just piggy backed off of the code for the help menu and made a couple of modifications.

  • I wanted to use the Table format from the draw_song_menu, but I was unsure how to without major refactoring of the way tables are drawn.
  • It only works for tracks
  • Currently removing a song from queue whenever a song with the same ID is played, but it could be from any source. Is there any API endpoint that lets you know whether a song is played from queue?
  • I have to fetch the track info a second time in the add to queue call. Maybe this could be avoided?
  • I'm also super new to rust, so comments are helpful. I would love to get this working properly so I can know what I've queued in spt

🔄 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/Rigellute/spotify-tui/pull/846 **Author:** [@rudiejd](https://github.com/rudiejd) **Created:** 7/31/2021 **Status:** 🔄 Open **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (2) - [`b04aaa1`](https://github.com/Rigellute/spotify-tui/commit/b04aaa19112630071a316e3d4664abccea5f00a3) feat: show queued songs - [`26b4988`](https://github.com/Rigellute/spotify-tui/commit/26b4988cb0f2a8fb14243a7286a2cddf4c3210de) fix: remove from queue when song is played ### 📊 Changes **9 files changed** (+142 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+2 -0) 📝 `src/app.rs` (+18 -0) 📝 `src/handlers/mod.rs` (+8 -0) ➕ `src/handlers/queue_menu.rs` (+37 -0) 📝 `src/main.rs` (+3 -0) 📝 `src/network.rs` (+19 -1) 📝 `src/ui/help.rs` (+5 -0) 📝 `src/ui/mod.rs` (+48 -0) 📝 `src/user_config.rs` (+2 -0) </details> ### 📄 Description Resolves my feature request https://github.com/Rigellute/spotify-tui/issues/841. This is probably a pretty bad implementation. I just piggy backed off of the code for the help menu and made a couple of modifications. - I wanted to use the Table format from the `draw_song_menu`, but I was unsure how to without major refactoring of the way tables are drawn. - It only works for tracks - Currently removing a song from queue whenever a song with the same ID is played, but it could be from any source. Is there any API endpoint that lets you know whether a song is played from queue? - I have to fetch the track info a second time in the add to queue call. Maybe this could be avoided? - I'm also super new to rust, so comments are helpful. I would love to get this working properly so I can know what I've queued in spt --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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/spotify-tui#1053
No description provided.