Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Status when music is downloading #30

Open
adamrdrew opened this issue May 31, 2022 · 0 comments
Open

Status when music is downloading #30

adamrdrew opened this issue May 31, 2022 · 0 comments

Comments

@adamrdrew
Copy link
Owner

If you go to play something that isn't cached you'll basically get nothing back from the daemon because caching happens on the main thread and it is busy:

 ╭─addrew  ~ 
 $ mosh control next
Went forward. Next up: You Know What You Are? by Nine Inch Nails from the album With Teeth

 ╭─addrew  ~ 
 $ mosh get playing
2022/05/31 08:24:19 Post "http://127.0.0.1:9666/listener": EOF

 ╭─addrew  ~ 
 $ mosh get playing
2022/05/31 08:24:20 Post "http://127.0.0.1:9666/listener": EOF

 ╭─addrew  ~ 
 $ mosh get playing
2022/05/31 08:24:23 Post "http://127.0.0.1:9666/listener": EOF

 ╭─addrew  ~ 
 $ mosh get queue
+---------+-------+-------------------------------+------------+-----------------+
| PLAYING | TRACK | TITLE                         | ALBUM      | ARTIST          |
+---------+-------+-------------------------------+------------+-----------------+
|         | 1     | All the Love in the World     | With Teeth | Nine Inch Nails |
| X       | 2     | You Know What You Are?        | With Teeth | Nine Inch Nails |
|         | 3     | The Collector                 | With Teeth | Nine Inch Nails |
|         | 4     | The Hand That Feeds           | With Teeth | Nine Inch Nails |
|         | 5     | Love Is Not Enough            | With Teeth | Nine Inch Nails |
|         | 6     | Every Day Is Exactly the Same | With Teeth | Nine Inch Nails |
|         | 7     | With Teeth                    | With Teeth | Nine Inch Nails |
|         | 8     | Only                          | With Teeth | Nine Inch Nails |
|         | 9     | Getting Smaller               | With Teeth | Nine Inch Nails |
|         | 10    | Sunspots                      | With Teeth | Nine Inch Nails |
|         | 11    | The Line Begins to Blur       | With Teeth | Nine Inch Nails |
|         | 12    | Beside You in Time            | With Teeth | Nine Inch Nails |
|         | 13    | Right Where It Belongs        | With Teeth | Nine Inch Nails |
+---------+-------+-------------------------------+------------+-----------------+

 ╭─addrew  ~ 
 $ mosh get playing
+------------------------+-----------------+------------+
| TRACK                  | ARTIST          | ALBUM      |
+------------------------+-----------------+------------+
| You Know What You Are? | Nine Inch Nails | With Teeth |
+------------------------+-----------------+------------+
0:07 / 3:70 [--------------------] 2 %

We play the song, it hasn't been played before so it isn't cached. It goes off an gets it but then when we get queue it looks like the daemon is dead. Its not, its just busy. We should handle this gracefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant