[Xfce4-commits] <tumbler:master> Slightly improve the matching and title generation.
Nick Schermer
noreply at xfce.org
Thu Dec 27 11:30:05 CET 2012
Updating branch refs/heads/master
to a4c434bf0ed3d8079fc3c012cf08fb4ac3e70faa (commit)
from 1846f6c958bb50707ded2ef9e12072efa0116b5b (commit)
commit a4c434bf0ed3d8079fc3c012cf08fb4ac3e70faa
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