mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
Update parser.py (#111)
This commit is contained in:
parent
29fa6ab0d0
commit
4252a1ca5f
@ -63,7 +63,7 @@ def extract_resolution(uri: str) -> int:
|
|||||||
return resolution
|
return resolution
|
||||||
|
|
||||||
# Default resolution return (not best)
|
# Default resolution return (not best)
|
||||||
logging.error("No resolution find with custom parsing.")
|
logging.error("No resolution found with custom parsing.")
|
||||||
return -1
|
return -1
|
||||||
|
|
||||||
|
|
||||||
@ -443,7 +443,7 @@ class M3U8_Parser:
|
|||||||
return output
|
return output
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logging.info("No subtitle find")
|
logging.info("No subtitles found.")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def get_track_audios(self) -> list:
|
def get_track_audios(self) -> list:
|
||||||
@ -473,7 +473,7 @@ class M3U8_Parser:
|
|||||||
return list_output
|
return list_output
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logging.info("No audio tracks found")
|
logging.info("No audio tracks found.")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def get_default_subtitle(self):
|
def get_default_subtitle(self):
|
||||||
@ -531,4 +531,4 @@ class M3U8_Parser:
|
|||||||
|
|
||||||
# Return the default audio track dictionary
|
# Return the default audio track dictionary
|
||||||
return dict_default_audio
|
return dict_default_audio
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user