Debug license

This commit is contained in:
chu23465 2025-04-14 11:10:51 +05:30
parent 616ab317c1
commit 78b781e794
3 changed files with 6 additions and 2 deletions

View File

@ -11,7 +11,7 @@ authors = []
[tool.poetry.dependencies]
python = "^3.9"
appdirs = "^1.4.4"
beautifulsoup4 = "^4.8.2"
beautifulsoup4 = "~4.11.2"
click = "^8.0.1"
cffi = "^1.16.0"
coloredlogs = "^15.0"
@ -29,6 +29,7 @@ marisa-trie = "^1.1.0"
poetry = "1.8.5"
pproxy = "^2.7.7"
protobuf3 = { path = "./scripts/protobuf3", develop = true }
pycountry = "^24.6.1"
pycaption = "^2.1.1"
pycryptodome = "^3.21.0"
pycryptodomex = "^3.4.3"

View File

@ -546,6 +546,8 @@ def result(ctx, service, quality, closest_resolution, range_, wanted, alang, sla
)
assert license
log.debug(license)
if isinstance(license, bytes):
license = license.decode("utf-8")

View File

@ -769,7 +769,8 @@ class TextTrack(Track):
data = fd.read()
fd.seek(0)
fd.truncate()
fd.write(self.convert_to_srt(data, self.codec).encode("utf-8"))
#fd.write(self.convert_to_srt(data, self.codec).encode("utf-8"))
fd.write(self.convert_to_srt2(data, self.codec).encode("utf-8"))
self.codec = "srt"
return save_path