Einige Fixes
This commit is contained in:
parent
a249555a5d
commit
fda6651444
2
.gitignore
vendored
2
.gitignore
vendored
@ -17,3 +17,5 @@ plugins/plex_test.lua
|
|||||||
plugins/gravatar.lua
|
plugins/gravatar.lua
|
||||||
pictures/3uhrmorgens.jpg
|
pictures/3uhrmorgens.jpg
|
||||||
plugins/figuya.lua
|
plugins/figuya.lua
|
||||||
|
plugins/plex_info.lua
|
||||||
|
plugins/plex_last.lua
|
@ -560,6 +560,7 @@ function unescape(str)
|
|||||||
str = string.gsub(str, "…", "…")
|
str = string.gsub(str, "…", "…")
|
||||||
str = string.gsub(str, "‹", "‹")
|
str = string.gsub(str, "‹", "‹")
|
||||||
str = string.gsub(str, "€", "€")
|
str = string.gsub(str, "€", "€")
|
||||||
|
str = string.gsub(str, "♪", "♪")
|
||||||
|
|
||||||
-- Ä Ö Ü
|
-- Ä Ö Ü
|
||||||
str = string.gsub(str, "ä", "ä")
|
str = string.gsub(str, "ä", "ä")
|
||||||
|
@ -48,7 +48,7 @@ local data = json:decode(table.concat(response_body))._children[1]
|
|||||||
end
|
end
|
||||||
|
|
||||||
if data.grandparentTitle then
|
if data.grandparentTitle then
|
||||||
from = ' (aus '..data.grandparentTitle..' ['..season..episode..']'..') '
|
from = ' (aus '..data.grandparentTitle..' ['..string.gsub(season..episode, 'S0E', 'SP')..']'..') '
|
||||||
else
|
else
|
||||||
from = ''
|
from = ''
|
||||||
end
|
end
|
||||||
@ -98,7 +98,7 @@ local data = json:decode(table.concat(response_body))._children[1]
|
|||||||
end
|
end
|
||||||
|
|
||||||
if data.summary then
|
if data.summary then
|
||||||
desc = '\n\n'..string.gsub(data.summary, 'EditBackgroundNo(.*)', '')
|
desc = '\n\n'..string.gsub(unescape(data.summary), 'EditBackgroundNo(.*)', '')
|
||||||
else
|
else
|
||||||
desc = ''
|
desc = ''
|
||||||
end
|
end
|
||||||
|
@ -8,12 +8,13 @@ end
|
|||||||
function run(msg, matches)
|
function run(msg, matches)
|
||||||
local pics = {
|
local pics = {
|
||||||
-- add more below!
|
-- add more below!
|
||||||
["test"] = "../USB/test/",
|
["test"] = "../Bilder/Mikubot/sfw/test/",
|
||||||
["anime"] = "../USB/sfw/anime/",
|
["anime"] = "../Bilder/Mikubot/sfw/anime/",
|
||||||
["mlp"] = "../USB/sfw/mlp/",
|
["mlp"] = "../Bilder/Mikubot/sfw/mlp/",
|
||||||
["faktillon"] = "../USB/sfw/faktillon/",
|
["faktillon"] = "../Bilder/Mikubot/sfw/faktillon/",
|
||||||
["faktastisch"] = "../USB/sfw/faktastisch/",
|
["faktastisch"] = "../Bilder/Mikubot/sfw/faktastisch/",
|
||||||
["gamefakt"] = "../USB/sfw/gamefakt/"
|
["gamefakt"] = "../Bilder/Mikubot/sfw/gamefakt/",
|
||||||
|
["faktglaublich"] = "../Bilder/Mikubot/sfw/faktglaublich/"
|
||||||
}
|
}
|
||||||
|
|
||||||
local receiver = get_receiver(msg)
|
local receiver = get_receiver(msg)
|
||||||
@ -30,13 +31,13 @@ function run(msg, matches)
|
|||||||
return "Fehler: " .. img
|
return "Fehler: " .. img
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
return '"'..imgtype..'" gibt es nicht.\nEs gibt:\nanime\nmlp\nfaktillon\nfaktastisch\ngamefakt'
|
return '"'..imgtype..'" gibt es nicht.\nEs gibt:\nanime\nmlp\nfaktillon\nfaktastisch\ngamefakt\nfaktglaublich'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
description = "Sendet ein zufälliges Bild",
|
description = "Sendet ein zufälliges Bild",
|
||||||
usage = {"/rpic [Thema]","Themen:","anime","mlp","faktillon","faktastisch","gamefakt"},
|
usage = {"/rpic [Thema]","Themen:","anime","mlp","faktillon","faktastisch","gamefakt","faktglaublich"},
|
||||||
patterns = {"^/rpic (.*)$"},
|
patterns = {"^/rpic (.*)$"},
|
||||||
run = run
|
run = run
|
||||||
}
|
}
|
||||||
|
@ -8,8 +8,8 @@ end
|
|||||||
function run(msg, matches)
|
function run(msg, matches)
|
||||||
local pics = {
|
local pics = {
|
||||||
-- add more below!
|
-- add more below!
|
||||||
["/nsfw"] = "/home/pi/USB/nsfw/",
|
["/nsfw"] = "../Pictures/Mikubot/nsfw/",
|
||||||
["/nsfw gif"] = "/home/pi/USB/nsfw/gifs/"
|
["/nsfw gif"] = "../Pictures/Mikubot/nsfw/gifs/"
|
||||||
}
|
}
|
||||||
|
|
||||||
local receiver = get_receiver(msg)
|
local receiver = get_receiver(msg)
|
||||||
|
@ -71,7 +71,7 @@ function run(msg, matches)
|
|||||||
return {
|
return {
|
||||||
description = "Postet den URL-Titel",
|
description = "Postet den URL-Titel",
|
||||||
usage = {""},
|
usage = {""},
|
||||||
patterns = {"^(https?://[%w-_%.%?%.:,/%+=&#!]+)$"},
|
patterns = {"^(https?://[%w-_%.%?%.:,/%+=&#!%%]+)$"},
|
||||||
run = run
|
run = run
|
||||||
}
|
}
|
||||||
end
|
end
|
Reference in New Issue
Block a user