Songtitel und Songartist bei openings_moe hinzugefügt

This commit is contained in:
Akamaru 2016-02-04 15:54:13 +01:00
parent 0e19742542
commit c291be513e

View File

@ -9,9 +9,12 @@ local function get_opening(opening)
local number = data.title local number = data.title
local title = data.source local title = data.source
local song_title = data.song.title
local song_artist = data.song.artist
local url = 'http://openings.moe/video/'..data.filename local url = 'http://openings.moe/video/'..data.filename
local text = number..' von '..title..'\n'..url text = number..' aus '..title..'\n'..'Song: '..song_title..' von '..song_artist..'\n'..url
return text return text
end end
@ -25,7 +28,7 @@ end
return { return {
description = "Sendet Infos zu einem Opening", description = "Sendet Infos zu einem Opening",
usage = "Openings.moe Link", usage = "Openings.moe Link",
patterns = {"openings.moe/%?video=(.*).webm$"}, patterns = {"openings.moe/%?video=(.*).webm"},
run = run run = run
} }