Commit 471ec766 authored by mosz_nowy's avatar mosz_nowy

Youtube zmiana kolejnosci FunctionName

parent d8869af9
This diff is collapsed.
......@@ -43,6 +43,10 @@ class CYTSignAlgoExtractor:
def _findMainFunctionName(self):
data = self.playerData
name = ph.search(data, r'(?P<sig>[a-zA-Z0-9$]+)\s*=\s*function\(\s*a\s*\)\s*{\s*a\s*=\s*a\.split\(\s*""\s*\)')[0]
if name and not any((c in name) for c in ''', '"'''):
return name.strip()
name = ph.find(data, '"signature",', '}', 0)[1].split('(', 1)[0].strip()
if name and not any((c in name) for c in ''', '"'''):
return name.strip()
......@@ -66,9 +70,7 @@ class CYTSignAlgoExtractor:
if name and not any((c in name) for c in ''', '";()'''):
return name
name = ph.search(data, r'(?P<sig>[a-zA-Z0-9$]+)\s*=\s*function\(\s*a\s*\)\s*{\s*a\s*=\s*a\.split\(\s*""\s*\)')[0]
if name and not any((c in name) for c in ''', '"'''):
return name.strip()
return ''
......
# -*- coding: utf-8 -*-
#YYYY.MM.DD.DAY_RELEASE
IPTV_VERSION="2019.08.21.00"
IPTV_VERSION="2019.09.18.00"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment