-
Notifications
You must be signed in to change notification settings - Fork 4
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
Soundcloud support #6
Comments
I will take a look, thanks. How you suggest I implement it? I as thinking of adding a command to toggle soundcloud search source. This way, when the user do a search, the displayed results come from the search sources he enabled. Is that good? |
The toggle method sounds good, but I'd also suggest adding a preference inside |
It's WIP in the dev branch. I had to create "migration" so the saved playlists from previous versions doesn't break (since now the URL isn't based in the stored ID). Right now, the search sourcers are always enabled and results from SoundCloud are yellow: Now I need to "parse" the duration (right now it displays |
Awesome! Hopefully SoundCloud doesn't rate limit the requests on its v2 API. I've realised two things while using |
I've noticed the screen flickering as well, but it doesn't happen that often here. Right now, every second or every important player event triggers the display function. The display function clear the terminal and print everything again. I was thinking of creating a different function to the progress bar, removing it from the display function. I guess that's already enough to reduce this problem. About the loop icon, it uses Font Awesome 5. I forgot to add it to the README, sorry. |
I think the last commits fixed the flashing screen. Now, there's a renderPlayer() and a renderProgressBar(). This reduced the amount of times that the player is redraw. The progress bar continues to be redraw every second and when the player is seeked, but I think it's not going to "flick". |
I've just built the latest Additionally, it'd be great if one could use custom
|
Hello, happy holidays!
The
No reason. Should I change it? I was thinking of 75% or maybe 100%. What do you think?
That's a great idea. I will try to add this in a future release. Thanks a lot for your feedback! |
I see, thank you for the quick fix, it's already working as intended. My setup consists of
IMO the default should be 100% Thank you for your ongoing hard work, it's highly appreciated! |
I don't think it's possible to "unload" a MPV script so I would have to kill the entire MPV instance and I think that's not good. Usually "idle" (with "Stopped" Playback status) players are ignored (or treated with lower priority) by panel bar modules. Right now I use a module that was made by me and it works with polybar (https://github.com/Pauloo27/gotroller). It looks nice, but is kinda buggy. When you click the "menu" icon a GTK window opens and you can select the player to be displayed in the bar: This GTK window comes with a cost, the RAM/CPU usage isn't great. I think that best solution is to find a way to "configure" your bar module to show "playing/paused" over "stopped" players. |
I'd love to see SoundCloud search supported by this, as the only other cli streaming alternative I've found,
mopidy-soundcloud
, requires you to have a SoundCloud account and it's written in Python.Perhaps you could use this unofficial golang SoundCloud API or maybe take some inspiration from NewPipeExtractor's SoundCloud service.
The text was updated successfully, but these errors were encountered: