Commit bef62d60 authored by Bastien Nocera's avatar Bastien Nocera

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.
parent 2d3468f0
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment