[Xfce4-commits] <tumbler:nick/cover-thumbnailer> Slightly improve the matching and title generation.
Nick Schermer
noreply at xfce.org
Wed Dec 12 17:46:01 CET 2012
Updating branch refs/heads/nick/cover-thumbnailer
to 8fa72b1c125772c96d205e888d91acf7d803750b (commit)
from 93f6c74a05cf63df1704eaa2ca09f0f8ac0be337 (commit)
commit 8fa72b1c125772c96d205e888d91acf7d803750b
Author: Nick Schermer <nick at xfce.org>
Date: Wed Dec 12 17:45:36 2012 +0100
Slightly improve the matching and title generation.
plugins/cover-thumbnailer/cover-thumbnailer.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/cover-thumbnailer/cover-thumbnailer.c b/plugins/cover-thumbnailer/cover-thumbnailer.c
index ab822e8..6716395 100644
--- a/plugins/cover-thumbnailer/cover-thumbnailer.c
+++ b/plugins/cover-thumbnailer/cover-thumbnailer.c
@@ -40,7 +40,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|\(?:avi|mpe?g|mkv|ts)$)\\b"
#define YEAR_PATTERN "\\b(\\d{4})\\b"
#define OMDBAPI_QUERY_URL "http://www.omdbapi.com/?t="
@@ -498,7 +498,7 @@ cover_thumbnailer_get_title (CoverThumbnailer *cover,
{
uchar = g_utf8_get_char (p);
if (g_unichar_isalnum (uchar)
- || uchar == '\'')
+ || uchar == '\'' || uchar == '!')
{
if (append_space)
{
More information about the Xfce4-commits
mailing list