|
本帖最后由 lck1115 于 2022-9-9 17:13 编辑
https://www.right.com.cn/forum/thread-8252305-1-1.html
这个大佬的程序,我用docker部署在自己服务器,一直不成功。
开始用hk的服务器,后来换到us,都是失败了。。
有没有大佬指导下啊。。
- [32mINFO[0m: 43.129.252.180:58644 - "[1mGET /channel.m3u8?fid=4gtv-4gtv018 HTTP/1.1[0m" [32m200 OK[0m
- [31mERROR[0m: Exception in ASGI application
- Traceback (most recent call last):
- File "/usr/local/lib/python3.9/site-packages/uvicorn/protocols/http/h11_impl.py", line 404, in run_asgi
- result = await app( # type: ignore[func-returns-value]
- File "/usr/local/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 78, in __call__
- return await self.app(scope, receive, send)
- File "/usr/local/lib/python3.9/site-packages/fastapi/applications.py", line 269, in __call__
- await super().__call__(scope, receive, send)
- File "/usr/local/lib/python3.9/site-packages/starlette/applications.py", line 124, in __call__
- await self.middleware_stack(scope, receive, send)
- File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 184, in __call__
- raise exc
- File "/usr/local/lib/python3.9/site-packages/starlette/middleware/errors.py", line 162, in __call__
- await self.app(scope, receive, _send)
- File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 93, in __call__
- raise exc
- File "/usr/local/lib/python3.9/site-packages/starlette/exceptions.py", line 82, in __call__
- await self.app(scope, receive, sender)
- File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 21, in __call__
- raise e
- File "/usr/local/lib/python3.9/site-packages/fastapi/middleware/asyncexitstack.py", line 18, in __call__
- await self.app(scope, receive, send)
- File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 670, in __call__
- await route.handle(scope, receive, send)
- File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 266, in handle
- await self.app(scope, receive, send)
- File "/usr/local/lib/python3.9/site-packages/starlette/routing.py", line 68, in app
- await response(scope, receive, send)
- File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 260, in __call__
- await wrap(partial(self.listen_for_disconnect, receive))
- File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 662, in __aexit__
- raise exceptions[0]
- File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 256, in wrap
- await func()
- File "/usr/local/lib/python3.9/site-packages/starlette/responses.py", line 245, in stream_response
- async for chunk in self.body_iterator:
- File "/usr/local/lib/python3.9/site-packages/starlette/concurrency.py", line 63, in iterate_in_threadpool
- yield await anyio.to_thread.run_sync(_next, iterator)
- File "/usr/local/lib/python3.9/site-packages/anyio/to_thread.py", line 31, in run_sync
- return await get_asynclib().run_sync_in_worker_thread(
- File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 937, in run_sync_in_worker_thread
- return await future
- File "/usr/local/lib/python3.9/site-packages/anyio/_backends/_asyncio.py", line 867, in run
- result = context.run(func, *args)
- File "/usr/local/lib/python3.9/site-packages/starlette/concurrency.py", line 53, in _next
- return next(iterator)
- File "/code/./app/utile.py", line 133, in generatem3u8
- self.check(fid, hd)
- File "/code/./app/utile.py", line 104, in check
- self.updateonline(fid, hd)
- File "/code/./app/utile.py", line 68, in updateonline
- start, seq, gap = genftlive(url)
- File "/code/./app/common/tools.py", line 59, in genftlive
- seq = re.findall("#EXT-X-MEDIA-SEQUENCE:(\d+)\n", data).pop()
- IndexError: pop from empty list
复制代码
|
|