From 7c84ba320cc19ac7f93d0747c0678fd316b2e80f Mon Sep 17 00:00:00 2001 From: piplongrun Date: Fri, 17 Nov 2017 17:29:33 +0100 Subject: [PATCH] Update ServiceCode.pys --- Contents/Services/URL/Trailer Addict/ServiceCode.pys | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Contents/Services/URL/Trailer Addict/ServiceCode.pys b/Contents/Services/URL/Trailer Addict/ServiceCode.pys index 9ad2e45..8f3b4a0 100644 --- a/Contents/Services/URL/Trailer Addict/ServiceCode.pys +++ b/Contents/Services/URL/Trailer Addict/ServiceCode.pys @@ -50,10 +50,11 @@ def PlayVideo(url, **kwargs): if data: data = HTTP.Request('https://piplong.run/api/jsunpack/', data=data).content - files = RE_FILES.findall(data) else: return Redirect(UNAVAILABLE_URL) + files = RE_FILES.findall(data) + if len(files) < 1: Log('Regex failed') return Redirect(UNAVAILABLE_URL)