[grilo-plugins/wip/hadess/no-empty-titles: 1/2] video-title-parsing: Don't set empty titles
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins/wip/hadess/no-empty-titles: 1/2] video-title-parsing: Don't set empty titles
- Date: Thu, 14 Feb 2019 16:56:01 +0000 (UTC)
commit 2aedf4778bf5d7a68166d1cb9206bf6273a3326b
Author: Bastien Nocera <hadess hadess net>
Date: Thu Feb 14 17:52:30 2019 +0100
video-title-parsing: Don't set empty titles
Try not to set empty titles when the only part of the original title
that could be parsed is the date.
src/lua-factory/sources/grl-video-title-parsing.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/lua-factory/sources/grl-video-title-parsing.lua
b/src/lua-factory/sources/grl-video-title-parsing.lua
index 9c790d4..ba71f8b 100644
--- a/src/lua-factory/sources/grl-video-title-parsing.lua
+++ b/src/lua-factory/sources/grl-video-title-parsing.lua
@@ -105,7 +105,7 @@ function parse_as_movie(media)
local str = clean_title_from_blacklist (media.title)
for i, parser in ipairs(parsers.movies) do
title, date = str:match(parser)
- if title and date then
+ if title and title ~= '' and date and date ~= '' then
media.title = clean_title(title)
media.publication_date = date
return true
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]