Lol sorry about that. Those were both obvious tries before creating a post.
I use the repositories all the time, but for some reason I never looked for that. Probably because I just accepted using my youtube-dl hack. The addon looks great! I'll have to play with it some more, but this is definitely the kind of thing I wanted.
--get-name is indeed an option. When I wrote the script I was in a hurry, and the above script worked for me. Still, there is a right way and a wrong way to program which is why I suggested the improvement.
Thank you both!
