video hls url quality 누락시 720p 고정

This commit is contained in:
2022-04-14 23:06:34 +09:00
parent 1bebd593f7
commit 9779d82ad7

View File

@@ -660,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(
@@ -722,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)"