https://github.com/gelvetica/televisionapplication 这个安装包好大,也没有网页直接播放开始速度快。 谁能弄个小体积快速版😀
把里面的内容拿出来做成 m3u 就可以了
这个 image 的工作原理就是运行 firefox 无头浏览器,访问上面的网址,列出视频源。获取视频源时就使用无头浏览器访问对应的网站,然后抓取请求的 m3u8 地址
所以你需要分析其中的 js 代码,找到密钥的计算写代理。
他这个 docker 就是绕过了这些计算,直接用浏览器捕捉来实现的,所以他内置了一个 firefox 在镜像里面,自然就很大了
FileNotFoundError: [Errno 2] No such file or directory: '/data/config.yml'
[2024-07-17 07:55:51 +0000] [8] [INFO] Worker exiting (pid: 8)
[2024-07-17 07:55:52 +0000] [1] [ERROR] Worker (pid:8) exited with code 3
[2024-07-17 07:55:52 +0000] [1] [ERROR] Shutting down: Master
[2024-07-17 07:55:52 +0000] [1] [ERROR] Reason: Worker failed to boot.
[2024-07-17 07:56:53 +0000] [1] [INFO] Starting gunicorn 21.2.0
[2024-07-17 07:56:53 +0000] [1] [INFO] Listening at: http://0.0.0.0:8000 (1)
[2024-07-17 07:56:53 +0000] [1] [INFO] Using worker: sync
[2024-07-17 07:56:53 +0000] [7] [INFO] Booting worker with pid: 7
[2024-07-17 07:56:54 +0000] [7] [ERROR] Exception in worker process
Traceback (most recent call last):
File "/opt/venv/lib/python3.12/site-packages/gunicorn/arbiter.py", line 609, in spawn_worker
worker.init_process()
File "/opt/venv/lib/python3.12/site-packages/gunicorn/workers/base.py", line 134, in init_process
self.load_wsgi()
File "/opt/venv/lib/python3.12/site-packages/gunicorn/workers/base.py", line 146, in load_wsgi
self.wsgi = self.app.wsgi()
^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/gunicorn/app/wsgiapp.py", line 58, in load
return self.load_wsgiapp()
^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/gunicorn/app/wsgiapp.py", line 48, in load_wsgiapp
return util.import_app(self.app_uri)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/venv/lib/python3.12/site-packages/gunicorn/util.py", line 371, in import_app
mod = importlib.import_module(module)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1.8G 超大镜像,搞完报错,浪费表情