-
Notifications
You must be signed in to change notification settings - Fork 55
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
download: use the Playback command instead of Download #86
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit hesitant to just replace something that's already working. Maybe we could create a new file called mixins/playback.py
, copy & paste most of the code from mixins/download.py
and then inside the api_handler.py
do an if with an or to run on both Download
and Playback
.
I know it's a bit extra work, but it would prevent potentially breaking behavior for others that rely on download.py
.
Understood.
|
@sven337 SGTM |
On my TrackMix Wifi, both API commands work the same way, but Download is limited to about 800kB/s, while Playback hits about 4MB/s. So, replace the Download command with Playback by default for get_file. The "method" optional argument can be used to switch back to Download for people who need it.
Done. |
On my TrackMix Wifi, both API commands work the same way, but Download is limited to about 800kB/s, while Playback hits about 4MB/s. So, replace the Download command with Playback for get_file.