Update lgmcw_freq.py
This commit is contained in:
parent
941a3df819
commit
a810b5a06f
@ -28,13 +28,23 @@ class lgmcw_Sound(MdxService):
|
|||||||
def title(self):
|
def title(self):
|
||||||
return getattr(self, '__register_label__', self.unique)
|
return getattr(self, '__register_label__', self.unique)
|
||||||
|
|
||||||
|
def get_html_all(self):
|
||||||
|
html = self.get_html()
|
||||||
|
if not html:
|
||||||
|
self.word = self.word.lower()
|
||||||
|
html = self.get_html()
|
||||||
|
if not html:
|
||||||
|
self.word = self.word.capitalize()
|
||||||
|
html = self.get_html()
|
||||||
|
if not html:
|
||||||
|
self.word = self.word.upper()
|
||||||
|
html = self.get_html()
|
||||||
|
return html
|
||||||
|
|
||||||
|
|
||||||
@export('BNC_freq')
|
@export('BNC_freq')
|
||||||
def bnc_freq(self):
|
def bnc_freq(self):
|
||||||
html = self.get_html()
|
html = self.get_html_all()
|
||||||
if html:
|
if html:
|
||||||
freq = re.search(r'<BNC-R>(.*?)</BNC-R>', html)
|
freq = re.search(r'<BNC-R>(.*?)</BNC-R>', html)
|
||||||
if freq:
|
if freq:
|
||||||
@ -43,8 +53,9 @@ class lgmcw_Sound(MdxService):
|
|||||||
|
|
||||||
@export('IWEB_freq')
|
@export('IWEB_freq')
|
||||||
def iweb_freq(self):
|
def iweb_freq(self):
|
||||||
html = self.get_html()
|
html = self.get_html_all()
|
||||||
if html:
|
if html:
|
||||||
|
print(html)
|
||||||
freq = re.search(r'<iWeb-R>(.*?)</iWeb-R>', html)
|
freq = re.search(r'<iWeb-R>(.*?)</iWeb-R>', html)
|
||||||
if freq:
|
if freq:
|
||||||
return freq[1].strip()
|
return freq[1].strip()
|
||||||
@ -52,7 +63,7 @@ class lgmcw_Sound(MdxService):
|
|||||||
|
|
||||||
@export('ECO_freq')
|
@export('ECO_freq')
|
||||||
def eco_freq(self):
|
def eco_freq(self):
|
||||||
html = self.get_html()
|
html = self.get_html_all()
|
||||||
if html:
|
if html:
|
||||||
freq = re.search(r'<ECO-R>(.*?)</ECO-R>', html)
|
freq = re.search(r'<ECO-R>(.*?)</ECO-R>', html)
|
||||||
if freq:
|
if freq:
|
||||||
@ -61,7 +72,7 @@ class lgmcw_Sound(MdxService):
|
|||||||
|
|
||||||
@export('COCA_freq')
|
@export('COCA_freq')
|
||||||
def coca_freq(self):
|
def coca_freq(self):
|
||||||
html = self.get_html()
|
html = self.get_html_all()
|
||||||
if html:
|
if html:
|
||||||
freq = re.search(r'<COCA-R>(.*?)</COCA-R>', html)
|
freq = re.search(r'<COCA-R>(.*?)</COCA-R>', html)
|
||||||
if freq:
|
if freq:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user