Finished watching a movie online ? save the movie in your machine without downloading

alright. I’ve been watching TV series for the paste couple of days non-stop . one of the things keep bothering me is to save the file after finish watching it online . So I thought I’ll just write a script to do it for me . (I know this can be done in couple of lines . but I added some function which made the code bigger than I thought )

so the script can be found at HERE (Only tested in Ubuntu 12.10 – Chromium. Feel free to change the code for your requirements )

its easy but you need to have ruby installed and the gem “readline”

install Ruby on Ubuntu

sudo apt-get install ruby

install Readline Gem

sudo gem install readline

Ok now we have ruby and readline gem installed now lets go trough the installation process

cd /tmp
wget -O  flash_save
chmod -x flash_save
sudo mv flash_save /usr/local/bin/flash_save
cd ~/

Ok to run flash_save just type “flash_save” and it will get your home folder and save the file in there
or you can give a instruction.

flash_player /home/nuke/Video/big_bang_theory_S1_E01.flv
[+] saved in /home/nuke/Video/big_bang_theory_S1_E01.flv

and if you have multiple videos in your browser it will give you a prompt to select what video to save . use the “help” command to get the instructions . using “list” command you will be able to get the no list of the loaded files and “play ” will play the selected video so can check before downloading and finally “save ” will save the video to the path given

nuke@ihackmybox:~/$ flash_save /home/nuke/Videos/big_bang_theory_S3-E11.flv
[!] You have more than one flash player loaded in your browser
> help
help          : gets the list of the commands
list          : list the number of the vid file
play  : will play the selected file with the given player
save          : will save the file
quit          : exit the prompt
> list
> play 24
VLC media player 2.0.1 Twoflower (revision 2.0.1-0-gf432547)
[0x1f19108] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
> save 24
[+] saved in /home/nuke/Videos/big_bang_theory_S3-E11.flv
> quit

Using VLC as the media player

@@default_player = 'vlc' <= Change that to "vlc"
@@mem_id = 12624
@@files = []
@@path = Dir.home # You can change the path to anyplace you want
@@file_name = "#{rand(6)}.flv"
@@list_item = []

Alright mates have fun


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s