[Xfce4-commits] <tumbler:nick/cover-thumbnailer> Make the extension matching more global.

Nick Schermer noreply at xfce.org
Wed Dec 12 21:54:01 CET 2012


Updating branch refs/heads/nick/cover-thumbnailer
         to b227573dd4fc3461049dfde04d43cce3ff0696fc (commit)
       from 9b00d4f1b267ac5cc6a591912c10fd9e1d190944 (commit)

commit b227573dd4fc3461049dfde04d43cce3ff0696fc
Author: Nick Schermer <nick at xfce.org>
Date:   Wed Dec 12 21:52:46 2012 +0100

    Make the extension matching more global.
    
    Just match the last 3 word-chars at the end of the string, starting
    with a dot.

 plugins/cover-thumbnailer/cover-thumbnailer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/cover-thumbnailer/cover-thumbnailer.c b/plugins/cover-thumbnailer/cover-thumbnailer.c
index 39a01b8..3cbf9bf 100644
--- a/plugins/cover-thumbnailer/cover-thumbnailer.c
+++ b/plugins/cover-thumbnailer/cover-thumbnailer.c
@@ -43,7 +43,7 @@
 
 
 #define SERIES_PATTERN    "\\b((?:s\\d{1,2}e\\d{1,2}|\\d{1,2}x\\d{1,2}))\\b"
-#define ABBREV_PATTERN    "\\b(\\w{1,}(?:rip|scr)|r5|hdtv|(?:480|720|1080)p|\(?:avi|mpe?g|mkv|ts)$)\\b"
+#define ABBREV_PATTERN    "\\b(\\w{1,}(?:rip|scr)|r5|hdtv|(?:480|720|1080)p|\\.\\w{3}$)\\b"
 #define YEAR_PATTERN      "\\b(\\d{4})\\b"
 
 #define OMDBAPI_QUERY_URL "http://www.omdbapi.com/?t="


More information about the Xfce4-commits mailing list