Video Downloader Code
Status: Alpha
Brought to you by:
sly2011
| File | Date | Author | Commit |
|---|---|---|---|
| modules | 2011-06-30 |
|
[36109d] Initial commit. |
| README | 2011-06-30 |
|
[03070f] Well, I can tell I need sleep. |
| getvideo | 2011-06-30 |
|
[36109d] Initial commit. |
Video Downloader
By: Sly
If you're reading this, you obviously got the archive untar'd.
So, what to do from here?
Well, I found that my preference was to make this script available system wide.
That way, all users can benefit from it's use.
The way you can do this is:
sudo mv getvideo /etc/
sudo ln -s /etc/getvideo/getvideo /usr/bin/getvideo
If you're a developer, and you don't want to have to sudo everytime you want to
edit the script, you can do this instead:
mv /tar/dir/getvideo /your/directory # Must be an absolute directory.
# I.E., /home/user/ instead of ~/
sudo ln -s /your/directory/getvideo /etc/getvideo
sudo ln -s /etc/getvideo/getvideo /usr/bin/getvideo
Now you can just go to /your/directory/getvideo/modules/ to add a "module" to
parse with.
The only requirement for modules is that they set the variable $FILE. This is
what triggers the download for the video.