youtube-music
youtube-music copied to clipboard
feat(downloader): New option to download on finish
This adds an option to the downloader menu. When the option is activated it tracks the time that is elapsed and then if the rest time of the song is below 20 seconds it downloads the song.
The range is 20 seconds for when you skip the last bit of the song.
What happens on songs with a length of 40 seconds?
20 seconds would be the half, and not the "last bit"
Either make it configurable based on how big a song is, or make it a percentage (like 99%)
What happens on songs with a length of 40 seconds?
20 seconds would be the half, and not the "last bit"
Either make it configurable based on how big a song is, or make it a percentage (like 99%)
If made it so that you can configure "last x seconds" and "after x percent".
The you have the choice between these to options
And here the window where you can configure the two options (if clicked on "Advanced")
I will test and review this later today.
~~Why does your PR touch things unrelated to the download plugin?~~ My bad, the only unrelated file is the workflow file.
Ok, it seems to work fine on my machine.
The only issue that I noticed is kinda unrelated to this plugin, but the song change callbacks are not called for the auto-play song on start-up. (which is totally not the responsibility of this plugin to fix)
Also, maybe it would be a good idea to allow a separate folder for the auto-downloaded tracks.
Also, maybe it would be a good idea to allow a separate folder for the auto-downloaded tracks.
I try to add it in the next days
Also, maybe it would be a good idea to allow a separate folder for the auto-downloaded tracks.
I try to add it in the next days
Option added
I also fixed a bug where the paths were not changed after selecting a new path.
I'm busy with my job, so I can't review it right now. I'll check this out in a couple days.
Thanks for your contribution!
Awesome feature. Does this actually use the cached audio Blob? Or does it effectively download the song twice?
@Johannes7k75
It just calls the downloadSong function
So i think it downloads the song twice
would be really awesome if this somehow didn't use that
Would it really benefit from using the cached audio blob? And beyond that, I don't know enough about it.