Debug license
This commit is contained in:
parent
616ab317c1
commit
78b781e794
@ -11,7 +11,7 @@ authors = []
|
|||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = "^3.9"
|
python = "^3.9"
|
||||||
appdirs = "^1.4.4"
|
appdirs = "^1.4.4"
|
||||||
beautifulsoup4 = "^4.8.2"
|
beautifulsoup4 = "~4.11.2"
|
||||||
click = "^8.0.1"
|
click = "^8.0.1"
|
||||||
cffi = "^1.16.0"
|
cffi = "^1.16.0"
|
||||||
coloredlogs = "^15.0"
|
coloredlogs = "^15.0"
|
||||||
@ -29,6 +29,7 @@ marisa-trie = "^1.1.0"
|
|||||||
poetry = "1.8.5"
|
poetry = "1.8.5"
|
||||||
pproxy = "^2.7.7"
|
pproxy = "^2.7.7"
|
||||||
protobuf3 = { path = "./scripts/protobuf3", develop = true }
|
protobuf3 = { path = "./scripts/protobuf3", develop = true }
|
||||||
|
pycountry = "^24.6.1"
|
||||||
pycaption = "^2.1.1"
|
pycaption = "^2.1.1"
|
||||||
pycryptodome = "^3.21.0"
|
pycryptodome = "^3.21.0"
|
||||||
pycryptodomex = "^3.4.3"
|
pycryptodomex = "^3.4.3"
|
||||||
|
|||||||
@ -546,6 +546,8 @@ def result(ctx, service, quality, closest_resolution, range_, wanted, alang, sla
|
|||||||
)
|
)
|
||||||
assert license
|
assert license
|
||||||
|
|
||||||
|
log.debug(license)
|
||||||
|
|
||||||
if isinstance(license, bytes):
|
if isinstance(license, bytes):
|
||||||
license = license.decode("utf-8")
|
license = license.decode("utf-8")
|
||||||
|
|
||||||
|
|||||||
@ -769,7 +769,8 @@ class TextTrack(Track):
|
|||||||
data = fd.read()
|
data = fd.read()
|
||||||
fd.seek(0)
|
fd.seek(0)
|
||||||
fd.truncate()
|
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"
|
self.codec = "srt"
|
||||||
return save_path
|
return save_path
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user