Page 1 of 13 12311 ... LastLast
Results 1 to 10 of 121

Thread: Howto: Movie covers as video thumbnails (hack) (it works for books too)

  1. #1
    Join Date
    Oct 2006
    Location
    Argentina
    Beans
    584
    Distro
    Ubuntu

    Smile Howto: Movie covers as video thumbnails

    Description
    This is a video thumbnailer that searches imdb for covers based on the file names.
    It works for movies in the specified paths (recursively).
    For the rest of the cases or if no cover is found the default thumbnailer is used.

    Screenshot:


    Installation
    Now there is a deb package.
    Download and install:
    Download (gnomefiles)

    You can access the rest of the instructions with the following command:
    Code:
    imdb-thumbnailer --help
    Set the thumbnailer
    For nautilus:
    Code:
    imdb-thumbnailer --set-nautilus
    For thunar:
    Code:
    imdb-thumbnailer --set-thunar
    Preferences
    Code:
    gedit ~/.imdb-thumbnailer/config
    Add there the paths to your films like this:
    Code:
    films_path[1]=/home/user/Films
    films_path[2]=/home/user/trailers
    Don't forget to set a different number for every path.

    Options

    Set a custom cover:
    Code:
    imdb-thumbnailer --set video1 cover1 video2 cover2 etc...
    Remove thumbnails:
    If your movies already have thumbnails you can remove them with:
    Code:
    imdb-thumbnailer --remove video1 video2 etc...
    Update thumbnails:
    Force the filebrowser to rebuild the thumbnails for the specified videos by changing their modification time 1 second:
    Code:
    imdb-thumbnailer --update video1 video2 etc...
    Uninstall
    Code:
    sudo rm /usr/bin/imdb-thumbnailer
    Last edited by Yuzem; November 9th, 2011 at 12:06 AM.

  2. #2
    Join Date
    Apr 2006
    Location
    Oregon
    Beans
    95
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Howto: Movie covers as video thumbnails (hack) (it works for books too)

    This is really cool. Thanks for the Howto!!


  3. #3
    Join Date
    Oct 2006
    Location
    Argentina
    Beans
    584
    Distro
    Ubuntu

    Re: Howto: Movie covers as video thumbnails (hack) (it works for books too)

    There is a new version.
    Now it is much better and is no longer a hack.

    Download

  4. #4
    Join Date
    Nov 2005
    Location
    Valencia, Spain
    Beans
    622
    Distro
    Hardy Heron (Ubuntu Development)

    Re: Howto: Movie covers as video thumbnails (hack) (it works for books too)

    Is there any chance to talk to Elisa developers and turn this into an Elisa plugin? That would be great.

  5. #5
    Join Date
    Oct 2006
    Location
    Argentina
    Beans
    584
    Distro
    Ubuntu

    Re: Howto: Movie covers as video thumbnails (hack) (it works for books too)

    I would like to help if I can but I am not a real programmer. I can only write in bash.

    I don't think Elisa's devs want bash code and the imagemagick dependency but if somehow I can help I would like to.

    The code to get the cover from a given name is very simple:
    Code:
    #!/bin/bash
    
    read -p "Tile of the movie: " input
    
    search_term=$(echo "${input##*/}" | sed -e 's/[cC][dD][1-9]//' -e 's/[\(][1-9][oO][fF][1-9][\)]//' -e 's/[1-9][oO][fF][1-9]//' -e 's/[_-\.]/ /g' -e 's\....$\\' -e 's/ /+/g' -e 's/(/%28/g' -e 's/)/%29/g')
    movie_cover=$(wget -U firefox -qO - "http://www.google.com/search?hl=en&q=site%3Aimdb.com%2Ftitle+${search_term}&btnI=I%27m+Feeling+Lucky&meta=" | grep -A1 -i '<div class="photo">' | sed -n "2 p" | sed "s|.*src=||" | cut -d\" -f2)
    
    echo "$movie_cover"
    When executed it will ask for the movie title and it should return the cover url.

  6. #6
    Join Date
    Aug 2008
    Beans
    2

    Re: Howto: Movie covers as video thumbnails

    This is a little off-topic but I’d love to know what GTK theme was Yuzem using in the screenshot.
    Last edited by ahC8shio; March 14th, 2011 at 05:47 PM.

  7. #7
    Join Date
    Oct 2006
    Location
    Argentina
    Beans
    584
    Distro
    Ubuntu

    Re: Howto: Movie covers as video thumbnails (hack) (it works for books too)

    The compiz/beryl theme is cerebro.

    The gtk theme is orion for the aurora engine:
    http://www.gnome-look.org/content/sh...?content=71909

  8. #8
    Join Date
    Oct 2006
    Location
    Argentina
    Beans
    584
    Distro
    Ubuntu

    Re: Howto: Movie covers as video thumbnails (hack) (it works for books too)

    New version:
    Download

  9. #9
    Join Date
    Jul 2008
    Beans
    8

    Re: Howto: Movie covers as video thumbnails (hack) (it works for books too)

    This looks awesome, thanks for this. But for some reason it's only fetching a few covers. I'm fairly certain I'm doing something wrong! Any thoughts ?

    I put the films_path in the config file and tried just running $imdb-thumbnailer --update. However it only fetched the 1st 3 covers then stopped.

    I also tried:
    $ imdb-thumbnailer --update /media/hd/Videos/*
    ERROR:"/media/hd/Videos/Blood Diamond" does not exist

    Blood Diamond is in it's own folder... I tried with -r and -R, but that makes no difference.

    Any help would be much appreciated!

  10. #10
    Join Date
    Oct 2006
    Location
    Argentina
    Beans
    584
    Distro
    Ubuntu

    Re: Howto: Movie covers as video thumbnails (hack) (it works for books too)

    I think that it doesn't behave with the asterisk if the files have spaces.

    Try this:
    Code:
    imdb-thumbnailer --update drag_and_drop_here
    Don't type 'drag_and_drop_here' just drag all the videos from the filemanager and drop them there.

    Does it work now?
    I will try to fix the asterisk problem in the next version.

Page 1 of 13 12311 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •