Commit 72c03ef

benny-dou <60535774+benny-dou@users.noreply.github.com>
2025-05-08 09:03:53
fix(ffmpeg): fix decoding error
1 parent a88e54f
Changed files (2)
pyproject.toml
@@ -3,6 +3,7 @@ dependencies = [
   "aioboto3>=13.2.0",
   "apscheduler>=3.11.0,<4.0.0",
   "beautifulsoup4>=4.12.3",
+  "bilibili-api-python>=17.1.4",
   "cacheout>=0.16.0",
   "feedparser>=6.0.11",
   "glom>=24.11.0",
@@ -19,7 +20,7 @@ dependencies = [
   "pyrotgfork>=2.2.10",
   "pysocks>=1.7.1",
   "pytgcrypto>=1.2.9.2",
-  "python-ffmpeg>=2.0.12",
+  "python-ffmpeg",                             # jonghwanhyeon/python-ffmpeg, PR-56
   "python-magic>=0.4.27",
   "pyyaml>=6.0.2",
   "quickchart-io>=2.0.0",
@@ -29,7 +30,6 @@ dependencies = [
   "youtube-transcript-api>=0.6.3",
   "yt-dlp>=2025.1.12rc",
   "zhconv>=1.4.3",
-  "bilibili-api-python>=17.1.4",
 ]
 name = "bennybot"
 requires-python = ">=3.11"
@@ -92,3 +92,6 @@ max-branches = 999
 max-locals = 999
 max-returns = 999
 max-statements = 999
+
+[tool.uv.sources]
+python-ffmpeg = { url = "https://github.com/chadawagner/python-ffmpeg/archive/4614d8b7939679ea4d6ae9c32241d7607e2b136c.zip" }
uv.lock
@@ -277,7 +277,7 @@ requires-dist = [
     { name = "pyrotgfork", specifier = ">=2.2.10" },
     { name = "pysocks", specifier = ">=1.7.1" },
     { name = "pytgcrypto", specifier = ">=1.2.9.2" },
-    { name = "python-ffmpeg", specifier = ">=2.0.12" },
+    { name = "python-ffmpeg", url = "https://github.com/chadawagner/python-ffmpeg/archive/4614d8b7939679ea4d6ae9c32241d7607e2b136c.zip" },
     { name = "python-magic", specifier = ">=0.4.27" },
     { name = "pyyaml", specifier = ">=6.0.2" },
     { name = "quickchart-io", specifier = ">=2.0.0" },
@@ -1966,14 +1966,17 @@ wheels = [
 [[package]]
 name = "python-ffmpeg"
 version = "2.0.12"
-source = { registry = "https://pypi.org/simple" }
+source = { url = "https://github.com/chadawagner/python-ffmpeg/archive/4614d8b7939679ea4d6ae9c32241d7607e2b136c.zip" }
 dependencies = [
     { name = "pyee" },
     { name = "typing-extensions" },
 ]
-sdist = { url = "https://files.pythonhosted.org/packages/dd/4d/7ecffb341d646e016be76e36f5a42cb32f409c9ca21a57b68f067fad3fc7/python_ffmpeg-2.0.12.tar.gz", hash = "sha256:19ac80af5a064a2f53c245af1a909b2d7648ea045500d96d3bcd507b88d43dc7", size = 14126292 }
-wheels = [
-    { url = "https://files.pythonhosted.org/packages/7f/6d/02e817aec661defe148cb9eb0c4eca2444846305f625c2243fb9f92a9045/python_ffmpeg-2.0.12-py3-none-any.whl", hash = "sha256:d86697da8dfb39335183e336d31baf42fb217468adf5ac97fd743898240faae3", size = 14411 },
+sdist = { hash = "sha256:162503b68c29e35c1601a2063aa576896f87eb317824f5d98830af02896e5b08" }
+
+[package.metadata]
+requires-dist = [
+    { name = "pyee" },
+    { name = "typing-extensions" },
 ]
 
 [[package]]