diff --git a/pyproject.toml b/pyproject.toml index 28baafd..ee96213 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/vinetrimmer/commands/dl.py b/vinetrimmer/commands/dl.py index a102f76..3aa9ef7 100644 --- a/vinetrimmer/commands/dl.py +++ b/vinetrimmer/commands/dl.py @@ -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") diff --git a/vinetrimmer/objects/tracks.py b/vinetrimmer/objects/tracks.py index e3fbdf6..632553d 100644 --- a/vinetrimmer/objects/tracks.py +++ b/vinetrimmer/objects/tracks.py @@ -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