Media Downloader. Search, preview, slideshow and download images and videos from Google Image and YouTube
Copyright (C) 2009-2011  Marco Bavagnoli - lil.deimos@gmail.com

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/>.


ABOUT
MediaDownloader is an opensource software that let you search, watch and download items with Google Image and YouTube.
Search results are displayed as thumbnails within a nice mouse scrollable view.
The interface is fully real time customizable by editing a style file and, for thumbnails view, by a dialog to choose background image and a three color gradient.
MediaDownloader can also do a slide show of searched videos and images, set images as wallpaper, save and restore searches, do multiple searches by a given text file, can also convert local videos or videos while downloading with a ffmpeg frontend.
"Firefox monitor" will look at the firefox cache to catch video streaming contents while browsing (only linux for now). Thumbnail images for these aren't grabbed, so you will see the mediadownloader icon insted, while for youTube they are treated as usual.


NOTES
Could happens that Google changes some search url parameters, for this reason there is an ajax search method, 
it most likely always works but it's slower because it searches only 3 results at once instead of the 21 of the public method and it is limited to 63 results.
On windows, if you can't see video, maybe you must install some codecs. Google for "windows codec pack".
OpenGL is determined on compiling time.


Hope you enjoy this app and if you have any comment, suggestions or bug report,
leave me an email <lil.deimos@gmail.com>, I will be happy for your support.

http://marcobavagnoli.wordpress.com


Building
In Linux/X11, Mac OS/X or Windows, install the latest Qt development packages that
you will find on http://qt.nokia.com/ then on dos prompt (windows) or terminal, go inside the
source tree and run:
qmake (or qmake-qt4, usually in Debian)
make (or nmake, if you're on windows)
You will find the executable under bin directory.
To compile in linux the above packages must be installed:
libx11-dev, libxtst-dev, qt4-qmake, libqt4-dev, libqt4-opengl-dev, libphonon-dev, libqt4-webkit, libqtwebkit-dev
Recomended packages are:
phonon-backend-gstreamer, gstreamer0.10-ffmpeg, ffmpeg, libmp3lame0


Changelog
------------------------------------------------------------------------------------------------
v 1.5.2 (27 Oct 2011)
  project home page changed to http://marcobavagnoli.wordpress.com
  now mplayer works as expected
  added the option to download items within a directory named as the item was searched with
  added WebM Youtube video format support
  removed online check for update
  fixed non fuctional changing video format while viewing video
  fixed number of results when adding thumbs in most viewed, most popular etc.
  fixed a crash using google suggest

v 1.5.1-3 (9 aug 2011)
  fixed browse content of images link
  
v 1.5.1-2 (8 aug 2011)
  fixed download thumbnails instead original image

v 1.5.1 (07 aug 2011)
  now all videos (mp4 and flv) from YouTube are downloadable, playable and seekable (see know issue)
  new buffer device and seek slider to play videos
  new video seek slider with buffer status
  new extract audio menu entry
  fixed parser for the new changes of Google Image format
  fixed parser for the new changes of YouTube format
  fixed automatic increase of max concurrent download when downloading

v 1.5.0 (26 feb 2011)
  added Google Suggestion hints for search box
  added automatic search to add items while scrolling the view
  added a button to open downloads directory
  thumbnails color customizations
  thumbnails redesigned
  now downloads doesn't overwrite existing file
  fixed diplayed text in download window
  fixed background of volume slider
  fixed display video toolbar when back from fullscreen

v 1.4.3-2 (01 jan 2011)
  fixed retrieve bug for some youtube url

v 1.4.3 (15 dec 2010)
  added a function to monitor firefox for streaming videos while browsing
  download class rewritten with the choice of number of concurrent downloads
  fixed crash with high number of downloads
  added ffmpeg frontend support to convert downloaded or local videos,
        with support of ffmpeg and user presets and possibility to make our own
  added search method by search strings stored into .cvs or .txt file
  added search and download without displaying thumbnails
  added search and clear content 
  added customization of items background with gradient and/or image
  added German translations ( thanks to Markus Schulz )

v 1.4.2 (25 oct 2010)
  support for custom styles and realtime css style changes
  double-click videos on OS/2 will play with smplayer
  menu entry to play videos with mplayer
  changed a bit the behaviour of scrolling items
  some fixes

v 1.4.1 (10 oct 2010)
  layout rearranged
  video controls and mouse cursor autohide while playing
  added brightness, contrast, hue and saturation video control sliders
  added video volume slider
  added online version control check
  added confirmation to overwrite file to save
  added support for all forwarded links (like for deviantArt)
  added tab to import items from a local directory
  fixed images loading from deviantArt in slideshow

v 1.4 (15 sep 2010)
  added support for images from deviantart.com
  added save and load thumbnails
  added a dialog box to choose which resolution of the video should be downloaded
  added preferred video resolution for watch and for download all
  added slideshow (images and videos) with timer or keyboard
  added fullscreen, play/pause button and keys
  some improvements

v 1.3.2 (23 july 2010)
  fix url changed by YouTube for playback videos

v 1.3.1 (21 july 2010)
  fix video downloads

v 1.3
  changed the application name
  support for non OpenGL systems
  YouTube search, view, download
  added sliders to increase or decrease thumbnail size
  removed html thumbnail view
  view images and videos are now outside GraphicsView

v 1.2.3
  fixed Safe Search filter

v 1.2.2
  added button to hide top frame
  added italian translation
  added russian and ukrainian translations (thanks to Motsyo Gennadi)
  finally added application icon (thanks to Motsyo Gennadi)
  added an entry menu to set image as wallpaper (only gnome, kde 3.5, win)

v 1.2.1
  restyling
  replace proxyWidgets with pixmapItems for better performances
  contextual menù over items in flow view
  some output messages

v 1.2
  Code completly rewritten
  Multithread class for multiple downloads with a progress bars
  Google class for search images with the ajax google api (max 64 results) or by parsing html public page
  Thumbnails viewer using QGraphicsView in a grid view. Scroll, zoom, panning with mouse.
  Old html view could be choosen instead of graphicsView
  Last session parameters are restored when run program again
  Support for Qt 4.5

v 1.1
  add a link to do a single image download
  fix when removing thumbnail the scroolbar doesn't reset to top

v 1.0.2
  fix searching with non english chars (maybe, need more testing)

v 1.0.1
  RegExp to work with source Google page fixed

v 1.0
  browse and search images like in Google
  search images with criteria like size, domain, content type, color or black and white and safe search
  specify number of results
  starting searching from the image number you like
  view results in a handy grid thumbnail
  choose which images you don't want to download
  browse to the original image web page or only disply it (as in Google)
  download all and save them with progressive number and/or with original image name
