youtube-music icon indicating copy to clipboard operation
youtube-music copied to clipboard

feat(downloader): New option to download on finish

Open Johannes7k75 opened this issue 10 months ago • 7 comments

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.

Johannes7k75 avatar Apr 11 '24 16:04 Johannes7k75

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%)

ArjixWasTaken avatar Apr 14 '24 13:04 ArjixWasTaken

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 image

And here the window where you can configure the two options (if clicked on "Advanced") image

Johannes7k75 avatar Apr 14 '24 20:04 Johannes7k75

I will test and review this later today.

ArjixWasTaken avatar Apr 30 '24 13:04 ArjixWasTaken

~~Why does your PR touch things unrelated to the download plugin?~~ My bad, the only unrelated file is the workflow file.

ArjixWasTaken avatar Apr 30 '24 20:04 ArjixWasTaken

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.

ArjixWasTaken avatar Apr 30 '24 20:04 ArjixWasTaken

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

Johannes7k75 avatar Apr 30 '24 23:04 Johannes7k75

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 image

I also fixed a bug where the paths were not changed after selecting a new path.

Johannes7k75 avatar May 01 '24 15:05 Johannes7k75

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!

JellyBrick avatar Jul 10 '24 09:07 JellyBrick

Awesome feature. Does this actually use the cached audio Blob? Or does it effectively download the song twice?

MulverineX avatar Jul 15 '24 02:07 MulverineX

@Johannes7k75

MulverineX avatar Jul 15 '24 02:07 MulverineX

It just calls the downloadSong function

Johannes7k75 avatar Jul 15 '24 02:07 Johannes7k75

So i think it downloads the song twice

Johannes7k75 avatar Jul 15 '24 02:07 Johannes7k75

would be really awesome if this somehow didn't use that

MulverineX avatar Jul 15 '24 02:07 MulverineX

Would it really benefit from using the cached audio blob? And beyond that, I don't know enough about it.

Johannes7k75 avatar Jul 16 '24 14:07 Johannes7k75