Fix für doppelten Alternativnamen beim TVDB Plugin

This commit is contained in:
Akamaru 2015-11-20 23:22:45 +01:00
parent 683a128720
commit a1afe7b4f2

View File

@ -26,8 +26,8 @@ local function send_tv_data(result, receiver)
local title = xml.find(result, 'SeriesName')[1]
local id = xml.find(result, 'seriesid')[1]
if xml.find(result, 'AliasNames') then
alias = '\noder: '..xml.find(result, 'AliasNames')[1]
if xml.find(result, 'AliasNames') and xml.find(result, 'AliasNames')[1] ~= title then
alias = '\nAlternativ: '..xml.find(result, 'AliasNames')[1]
else
alias = ''
end