cat-message
cat-message copied to clipboard
Add YouTube support
This closes #3. There are a couple things you may want to change though.
So sorry. This is embarrassing. I really screwed this up. I shouldn't program when I am tired. Tomorrow it will work.
@ginglis13 Now this is ready for review!
You should probably squash merge this when ready because of my mistake.
A little busy today but I'll take a look later this afternoon - thanks ! :)
@MasterOfTheTiger This is great! Looks like it downloads a youtube video to the current directory and names it cat.mp4. Just a small request or two: The line os.unlink('cat.mp4')
could be problematic if the file cat.mp4 does not exist (because oftentimes media types are .jpg or .gif). Maybe just move the call to get_yt
to be below the current handling of this unlinking. (or unlink earlier in the function).
Okay. I understand. I'll do that later.
@ginglis13 It is now ready.
@ginglis13, I realize you are busy, but you may want to see what I did and test it for yourself.