forked from gavazquez/ReloadCam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReloadCam_Server_Cccamspot.py
33 lines (26 loc) · 1.1 KB
/
ReloadCam_Server_Cccamspot.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
#!/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 1
#Filename must start with Server, classname and argument must be the same!
class Cccamspot(ReloadCam_Main.Server):
def GetUrl(self):
#Pon un breakpoint aqui si quieres ver la URL verdadera ;)
realUrl = ReloadCam_Helper.Decrypt('maanpH1wfNXIz9DO16Ghp2KmsLqh2Nze1ZOYl6dis6m9')
return realUrl
def GetClines(self):
print "Now getting Cccamspot clines!"
cccamspotClines = []
cccamspotClines.append(self.__GetCccamspotCline())
cccamspotClines = filter(None, cccamspotClines)
if len(cccamspotClines) == 0: print "No Cccamspot lines retrieved"
return cccamspotClines
def __GetCccamspotCline(self):
htmlCode = ReloadCam_Helper.GetHtmlCode(None, self.GetUrl())
cline = ReloadCam_Helper.FindStandardClineInText(htmlCode)
if cline != None and ReloadCam_Helper.TestCline(cline):
return cline
return None