invidious
invidious copied to clipboard
Ensure IO is properly closed when importing NewPipe subscriptions
File.open accepts a second argument which will close the initial stream (IO::Memory.new(body)) when the File stream closes.
I also made it so that the code is a bit more safe with closing connections. ex: if an error occurs. This may also fix some potential memory leaks