                       _ _ 
 _   _  __ _ _   _  __| | |
| | | |/ _` | | | |/ _` | |
| |_| | (_| | |_| | (_| | |
 \__, |\__,_|\__, |\__,_|_|
 |___/       |___/         


yaydl - yet another youtube downloader

MAKE SURE YOU READ THIS TO THE VERY END!


1. License Information
2. Installation 
3. Usage
4. Additional Information
5. Examples
6. Thanks

+++
License information:
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+++

+++
Installation:
Run ./install and do not ignore its output!
+++

+++
Usage: yaydl  [-esrtpnqxfmikdahv] "link1" "link2" ...

Important notice: all links must be quoted correctly!
In order to get the full functionality you either need ffmpeg *or*
mplayer *and* mencoder *and* lame.
Parameters:
   -e, --encode 	 Encode the videos from *.flv to *.avi.
    				 Uses ffmpeg as default encoder, or mencoder if ffmpeg is not available
    					 yaydl -e "http://youtube..."
   -s, --sound		 Extract the soundtracks from all downloaded videos.
    				 Uses mplayer as default encoder for flv files, or ffmpeg if mplayer is not available.
    				 In order to encode non-flv files (mp4) you either need ffmpeg (recommended) or
	 				 a combination of mplayer and lame.
    					 yaydl -s "http://youtube..."
   -r, --rename 	 Rename the downloaded/encoded files
   -t, --tag		 Provides a basic way for tagging the extracted sound files (activates --sound)
   -p, --path PATH 	 Change the default download path to PATH
   -n  --print 		 Display the downloadlinks and exit
   -q, --quiet		 Don't wait for the user's confirmation
   -x  --stdin		 Read URLs from STDIN (activates --quiet and deactivates --rename/tag)
   -l  --file FILE	 Read URLs from FILE
   -f, --forceflv	 Choose flv over HD (youtube/dailymotion only)
   -m  --fmt VALUE	 Set a custom fmt value for youtube - if the value is not available for a video, 
   					 it will be ignored
   -i, --title		 Rename the videos according to the website's title (overrides --rename)
   -k, --keep		 Never delete the downloaded files
   -d, --debug		 Dumps additional debugging information on errors
   -a  --debug-all	 Always dump the debugging infos - you should never use this one
   -h, --help   	 Show this help.
   -v, --version 	 Prints the version and a list of all supported videosites.

+++

+++
Additional information:
	* Make sure that all links passed on the command-line are surrounded by quotation marks!
	  The reason for this is simple: your shell will most likely (mis)interpret some special characters
	  like '&' if you do not quote them. :-) 
	* Please be aware of the fact, that yaydl overwrites existing files without asking for confirmation!
+++

+++
Examples:
	`yaydl "link1" "link" "link3"`:
	saves all videos to the default directory (by default ~)
	
	`yaydl --title --sound "link1"`:
	downloads the video, extracts the soundtrack, deletes the original file and renames the mp3-file according to the text
	provided in the title-tags of the html sourcecode, with all non \w-characters replaced by an underscore.

	`yaydl --rename --encode --sound --keep "link"`:
	downloads the video, extracts the soundtrack, encodes the video to avi, keeps the original file 
	and asks you interactively for three new filenames.

	`yaydl --stdin < inputfile`:
	downloads the videos from all valid urls found in 'inputfile'

	`yaydl --tag "link1" "link2"`:
	downloads the videos, extracts the soundtracks, asks you for some basic md3-information (title, artist, album),
	tags the mp3-files and deletes the flv files.
	
	
Bad Examples:
	`yaydl --tag --stdin < inputfile`:
	Won't work - you can't redirect STDIN *and* enter the md3-tags via STDIN
+++

+++
Thanks to everyone who reported errors/bugs and especially Mounir, who takes care of the Ebuild for Gentoo!
+++

