Mehr FSK "umrechnungen"
This commit is contained in:
parent
ad519e188e
commit
2df5bc4de8
@ -581,13 +581,19 @@ end
|
|||||||
|
|
||||||
function gerRating(str)
|
function gerRating(str)
|
||||||
str = string.gsub(str, "de/0", "FSK0")
|
str = string.gsub(str, "de/0", "FSK0")
|
||||||
|
str = string.gsub(str, "TV%-G", "FSK0")
|
||||||
|
str = string.gsub(str, "TV%-Y$", "FSK0")
|
||||||
str = string.gsub(str, "G %- All Ages", "FSK0")
|
str = string.gsub(str, "G %- All Ages", "FSK0")
|
||||||
str = string.gsub(str, "de/6", "FSK6")
|
str = string.gsub(str, "de/6", "FSK6")
|
||||||
|
str = string.gsub(str, "TV%-Y7", "FSK6")
|
||||||
|
str = string.gsub(str, "TV%-PG", "FSK6")
|
||||||
str = string.gsub(str, "PG %- Children", "FSK6")
|
str = string.gsub(str, "PG %- Children", "FSK6")
|
||||||
str = string.gsub(str, "de/12", "FSK12")
|
str = string.gsub(str, "de/12", "FSK12")
|
||||||
str = string.gsub(str, "de/16", "FSK16")
|
str = string.gsub(str, "de/16", "FSK16")
|
||||||
|
str = string.gsub(str, "TV%-14", "FSK16")
|
||||||
str = string.gsub(str, "PG%-13 %- Teens 13 or older", "FSK16")
|
str = string.gsub(str, "PG%-13 %- Teens 13 or older", "FSK16")
|
||||||
str = string.gsub(str, "de/18", "FSK18")
|
str = string.gsub(str, "de/18", "FSK18")
|
||||||
|
str = string.gsub(str, "TV%-MA", "FSK18")
|
||||||
str = string.gsub(str, "R %- 17%+ %(violence & profanity%)", "FSK18")
|
str = string.gsub(str, "R %- 17%+ %(violence & profanity%)", "FSK18")
|
||||||
str = string.gsub(str, "R%+ %- Mild Nudity", "FSK18")
|
str = string.gsub(str, "R%+ %- Mild Nudity", "FSK18")
|
||||||
str = string.gsub(str, "Rx %- Hentai", "FSK18")
|
str = string.gsub(str, "Rx %- Hentai", "FSK18")
|
||||||
|
@ -27,8 +27,6 @@ local function get_plex(query)
|
|||||||
local ok, response_code, response_headers, response_status_line = http.request(request_constructor)
|
local ok, response_code, response_headers, response_status_line = http.request(request_constructor)
|
||||||
local data = json:decode(table.concat(response_body))._children[1]
|
local data = json:decode(table.concat(response_body))._children[1]
|
||||||
|
|
||||||
if not data then return 'Nichts gefunden!' end
|
|
||||||
|
|
||||||
local title = data.title
|
local title = data.title
|
||||||
|
|
||||||
if data.parentIndex then
|
if data.parentIndex then
|
||||||
|
Reference in New Issue
Block a user