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