MovieThumbs

Various KDE 1.-4. Improvements

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

5
8 .2
Description:

MovieThumbs generates thumbnails for movies and series.

For downloading the posters a working internet connection is needed. MovieThumbs works with all KDE file managers and nautilus.
If the wrong thumbnail is downloaded include the year when the movie was released in the file name. This will help fetch the correct poster.
All information that is between brackets () and [] will not be used to search. You can still put the year in brackets.


A MovieThumbs version for GNOME file managers is available here:
http://gnomefiles.org/content/show.php?content=160328

Movie posters are downloaded from tmdb.org (The Movie DataBase)

I would like to thank the tmdb team for allowing the use of their api.


External dependencies:
KDE SC 4.x
Qt 4
QJson

Installation:
Use the packages for your distribution or build from source. (See INSTALL file)


Thank you for checking out MovieThumbs. Bug reports and feedback welcome.

If you have some money to spare, please consider leaving a donation.
Or buy MovieThumbs for nautilus on the ubuntu app store:
https://apps.ubuntu.com/cat/applications/moviethumbs/
Last changelog:

6 years ago

0.4.0 (2014-03-01)
================================
* More bug fixes

0.3.3 (2014-01-23)
================================
* More bug fixes
* Download smaller images (speed improvement)
* Look for local thumbnails in folder (poster.png ..)

0.3.0 (2013-08-09)
================================
* Increased download speed
* Dropped libTVDB dependency
* Blacklist to remove common words
* Memory optimizations

9

gcala

7 years ago

Hi, this service menu is very useful, thanks. But it doesn't work properly with filenames containing accented letters, very common in italian. I looked at your code and found a solution: you use the following code to remove not-letter/number characters, but doing this way your regex replaces also à, è, etc.

regex.setPattern("[^a-zA-Z0-9\\s]");
clean.replace(regex, " ");

I edited the code to use a built-in regex, element, \w, that matches a word character (QChar::isLetterOrNumber(), QChar::isMark(), or '_'). Accented letters are preserved. Here the code you should use:

regex.setPattern("[^\\w]");
clean.replace(regex, " ");
clean.replace('_', ' ');

Cheers.

Report

C

montfras

7 years ago

A bug report with a fix included: great! :)

Thank you for reminding me about this todo. The original point of the code was to delete underscores, I have changed the regular expression to only delete (.-_)

If there are special characters in the name and the search fails we can use the second (slower) expression to remove them.
I used \W (same as ^\w)

Do you have an example filename with accents I could use to prevent regressions?

Thanks!
ps I added a 'thank you' note with your name in the code. If you don't want your real name used for privacy reasons please let me know.

Report

9

gcala

7 years ago

Hi, I'm always glad to help. Regarding your requests:

- a file name to test could be 'Les Misérables (2012).mkv'.

- no privacy problem for using my real name ;)

Bye

Report

9

bernardinowilliams

7 years ago

Once again: congratulations!
The speed is great.

I do have, however, an questiona and 2 issues with the series part of the script:

1) Is the syntax that the script looks into the one(s) from the WebMiner kcm?

2) Other than Arrested Development, I get nothing (no cover for That Mitchell and Webb Look, Veep, Life of crime, Monroe, Chelsmford 123, Newsroom, etc.)

3) When I have a tv show the name of which matches the name of a movie, it defaults to the tv movie (for instance: The Fall, Vicious, Vice, House of Cards, Death in Paradise, etc.)
Do you think there could be a way to discriminate (via filename syntax or perhaps tags) between tv shows and movies?

Report

C

montfras

7 years ago

Great feedback, keep it coming!

1. No it's not. In future versions (SC 4.12) nepomuk webminer will be part of the main release. Then I'll enable a way to read posters downloaded with webminer.

2,3. The detection of TV series is very simple for now. If the filename contains 's00e00' or similar we look for a TV poster. Everything else is treated as a movie.

So for now if you want to have a TV poster add s00e00 (With 00 being the season and episode number).
If you have a filename that gives no result you an always send it to me so the filter can be improved.

Thanks :)

Report

9

bernardinowilliams

7 years ago

Strike all of the above.
I was using your ppa and I thought it was updated. It turns out that I was in 0.2.0 with no tv series support for some reason.
I compiled 0.2.1 and now it works GREAT !!!!!!

Report

C

montfras

7 years ago

It's not my ppa. I only control the rpm (opensuse and fedora) packages.

I'm sure Rog131 will update soon, otherwise I need to learn deb packaging.
There is a also a community pgkbuild for arch that I'll link once it is updated.

Report

9

bernardinowilliams

7 years ago

PS: I noticed that your script neglects whatever is enclosed between square brackets, wherever they may be in the filename, which is wonderful if you have the following situation:
[Cassavetes] Opening Night [ns].m4v
[Cassavetes] A Woman Under the Influence [ns].m4v

Report

zubi

7 years ago

First I used 1 click Install, and then try to compile,without result!


http://wstaw.org/m/2013/04/15/snapshot3.png

Report

C

montfras

7 years ago

Hart of Dixie is a series. For now we are not searching posters from series. This might come in a future version.

If you want the movie you have to look for 'HEART of Dixie' http://www.themoviedb.org/movie/73249-heart-of-dixie

Please note that torrented filenames have a lot of information that makes the search harder. You can put this in brackets. 'Hart.of.dixie.(blabla 1080p).mkv'
This has to be done manually.

Report

zubi

7 years ago

Рlease tell me why it is not working for me? How to check where is the problem? I use Open Suse 12.3

Report

C

montfras

7 years ago

Hi,
MovieThumbs works fine on 12.3
Please go to dolphin settings -> General -> Previews -> check the 'Video Files (MovieThumbs)' check box.

If that does not solve it can you tell me how you installed the package? Using yast one-click install or compiling yourself?

Report

9

bernardinowilliams

7 years ago

First of all, thanks for a great job.
I installed it in Kubuntu 12.10 and it works great.
A possible improvement would be, in my humble opinion, to establish a convention concerning filenames. I often include a few items in the filename other than the name of the movie, eg:
A Woman Under the Influence [1974. Cassavetes; no subs].mkv
Badlands [1973. T. Malick]
A possible convention would be to group any information othe than the title between brackets or square brackets and have the script search for the string up to the bracket (or any other delimiter).
Thanks again.

Report

C

montfras

7 years ago

Thank you for the kind words :)

I understand your problem. In version 0.1.1 text between brackets is not included in the search. (besides the year)

This should improve results for you.

Report

9

bernardinowilliams

7 years ago

Thanks! Great work, once again.

Report

9

srog

7 years ago

Working fine with the Kubuntu.

Thank you of a good thumbnailer.

A suggestion: The ffmpegthumbs /1/ has the "ThumbnailerVersion" set. So it is overwriting the MovieThumbs thumbnails /2/. If you set the "ThumbnailerVersion=2" then the ffmpegthumbs can't do this.

1. https://projects.kde.org/projects/kde/kdemultimedia/ffmpegthumbs/repository/revisions/master/entry/ffmpegthumbs.desktop

2. http://api.kde.org/4.x-api/kdelibs-apidocs/kio/html/classThumbCreator.html

Report

C

montfras

7 years ago

Hi, glad you like it!

Thanks for the tip, I had not tested with other thumbnailers.

In the new version I have ThumbnailerVersion=3. This should overwrite ffmpegthumbs with movie cover if one is found but it doesn't seem to be working.
The ffmpeg thumbnails still get created first and cannot be overwritten by the posters.

I'm looking into this but for now you can disable ffmpeg, let MovieThumbs create thumbs if possible and turn ffmpeg back on to create the remaining previews. (You will have to delete ./thumbnails first)

Report

6 years ago

0.4.0 (2014-03-01)
================================
* More bug fixes

0.3.3 (2014-01-23)
================================
* More bug fixes
* Download smaller images (speed improvement)
* Look for local thumbnails in folder (poster.png ..)

0.3.0 (2013-08-09)
================================
* Increased download speed
* Dropped libTVDB dependency
* Blacklist to remove common words
* Memory optimizations

12345678910
15
product-maker nikore90 Sep 27 2015 9 excellent
product-maker remix Oct 21 2014 9 excellent
product-maker RAIDENSUB Mar 13 2014 9 excellent
product-maker airil Jan 28 2014 9 excellent
product-maker miraks Aug 18 2013 9 excellent
product-maker mirzaD Aug 17 2013 9 excellent
product-maker gcala Jun 16 2013 9 excellent
product-maker caig Jun 08 2013 9 excellent
product-maker sumski May 25 2013 9 excellent
product-maker janhajer May 06 2013 9 excellent
product-maker frag Apr 19 2013 9 excellent
product-maker vitoubien Mar 18 2013 9 excellent
product-maker bernardinowilliams Mar 18 2013 9 excellent
product-maker srog Mar 18 2013 9 excellent
product-maker Contrast Mar 17 2013 9 excellent
Be the first to comment
MoonBlossom
May 03 2014
max99
Jan 12 2014
miraks
Aug 18 2013
bernardinowilliams
May 20 2013
simgunz
Mar 23 2013
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.4.0
updated Mar 01 2014
added Mar 17 2013
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2