Nice script, I did think that you might not want to wait for the extra step of choosing quality(format) every time so I put an an extra menu item called default format so that It just downloads at format choice 18 for me without having to wait and choose, maybe you could add something like that in your script.