Compare commits
3 Commits
4da03ab7ff
...
9779d82ad7
| Author | SHA1 | Date | |
|---|---|---|---|
| 9779d82ad7 | |||
| 1bebd593f7 | |||
| 62356738bb |
@@ -352,7 +352,10 @@ class LogicOhli24(LogicModuleBase):
|
||||
span = item.xpath(".//span//text()")
|
||||
logger.info(span)
|
||||
key = description_dict[span[0]]
|
||||
try:
|
||||
des[key] = item.xpath(".//span/text()")[1]
|
||||
except IndexError:
|
||||
des[key] = ""
|
||||
|
||||
logger.info(f"des::>> {des}")
|
||||
image = image.replace("..", P.ModelSetting.get("ohli24_url"))
|
||||
@@ -657,7 +660,7 @@ class Ohli24QueueEntity(FfmpegQueueEntity):
|
||||
# logger.info('match groups:: %s', match.groups())
|
||||
# logger.info('match group3:: %s', match.group(3))
|
||||
# print('packed_script==>', packed_script)
|
||||
logger.debug(unpack_script)
|
||||
# logger.debug(unpack_script)
|
||||
|
||||
p1 = re.compile(r"(\"tracks\".*\])\,\"captions\"", re.MULTILINE | re.DOTALL)
|
||||
m2 = re.search(
|
||||
@@ -719,6 +722,8 @@ class Ohli24QueueEntity(FfmpegQueueEntity):
|
||||
|
||||
self.url = stream_info[1].strip()
|
||||
match = re.compile(r'NAME="(?P<quality>.*?)"').search(stream_info[0])
|
||||
self.quality = "720P"
|
||||
if match is not None:
|
||||
self.quality = match.group("quality")
|
||||
logger.info(self.quality)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user