forked from gavazquez/ReloadCam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DELETED_ReloadCam_Server_Jokercccam.py
48 lines (40 loc) · 1.83 KB
/
DELETED_ReloadCam_Server_Jokercccam.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#Refrescador automatico de clines
#Creado por Dagger - https://github.com/gavazquez
import ReloadCam_Main, ReloadCam_Helper
def GetVersion():
return 4
#Filename must start with Server, classname and argument must be the same!
class Jokercccam(ReloadCam_Main.Server):
def GetUrl(self, serverNo):
dictionary = {
1:'maanpH1wfNzU19TTx5SVlKFxrbzZztrj0JKel2KiqbOy15Sdoo_UmaI=',
2:'maanpH1wfNzU19TTx5SVlKFxrbzZztrj0JKel2KiqbOy15Seoo_UmaI=',
3:'maanpH1wfNzU19TTx5SVlKFxrbzZztrj0JKel2KiqbOy15Sfoo_UmaI=',
4:'maanpH1wfNzU19TTx5SVlKFxrbzZztrj0JKel2KiqbOy15Sgoo_UmaI=',
5:'maanpH1wfNzU19TTx5SVlKFxrbzZztrj0JKel2KiqbOy15Shoo_UmaI=',
6:'maanpH1wfNzU19TTx5SVlKFxrbzZztrj0JKel2KiqbOy15Sioo_UmaI='
}
#http://jokercccam.loginto.me/
#Pon un breakpoint aqui si quieres ver la URL verdadera ;)
realUrl = ReloadCam_Helper.Decrypt(dictionary[serverNo])
return realUrl
def GetClines(self):
print "Now getting Jokercccam clines!"
jokerClines = []
jokerClines.append(self.__GetJokerCline(1))
jokerClines.append(self.__GetJokerCline(2))
jokerClines.append(self.__GetJokerCline(3))
jokerClines.append(self.__GetJokerCline(4))
jokerClines.append(self.__GetJokerCline(5))
jokerClines.append(self.__GetJokerCline(6))
jokerClines = filter(None, jokerClines)
if len(jokerClines) == 0: print "No Jokercccam lines retrieved"
return jokerClines
def __GetJokerCline(self, serverNo):
htmlCode = ReloadCam_Helper.GetHtmlCode(None, self.GetUrl(serverNo))
cline = ReloadCam_Helper.FindStandardClineInText(htmlCode)
if cline != None and ReloadCam_Helper.TestCline(cline):
return cline
return None