Update main.py
Browse files
main.py
CHANGED
|
@@ -8,74 +8,9 @@
|
|
| 8 |
# --------------------------------------------------------
|
| 9 |
|
| 10 |
from fastapi import FastAPI
|
| 11 |
-
from func.cors import app as cors_api
|
| 12 |
-
from func.m3u8 import app as m3u8_api
|
| 13 |
-
from func.parse import app as parse_api
|
| 14 |
|
| 15 |
-
from sites.bbll import app as bili_api
|
| 16 |
-
from sites.tube import app as tube_api
|
| 17 |
-
from sites.uhub import app as uhub_api
|
| 18 |
-
from sites.ccbv import app as ccbv_api
|
| 19 |
-
from sites.miss import app as miss_api
|
| 20 |
-
from sites.javd import app as javd_api
|
| 21 |
-
from sites.jing import app as jing_api
|
| 22 |
-
from sites.pics import app as pics_api
|
| 23 |
-
|
| 24 |
-
from sites.sbai import app as sbai_api
|
| 25 |
-
from sites.baota import app as bao_api
|
| 26 |
-
from sites.dede import app as dede_api
|
| 27 |
-
from sites.mac import app as mac_api
|
| 28 |
-
from sites.uman import app as uman_pic
|
| 29 |
-
|
| 30 |
-
from pics.p18 import app as p18_api
|
| 31 |
-
from pics.mojing import app as mj_api
|
| 32 |
-
from pics.jpy import app as jpy_api
|
| 33 |
-
from pics.tuan import app as tuan_api
|
| 34 |
-
from pics.man import app as man_api
|
| 35 |
-
from pics.ozv import app as ozv_api
|
| 36 |
-
from pics.uman import app as uman_api
|
| 37 |
-
from pics.baoz import app as baoz_api
|
| 38 |
-
from pics.miao import app as miao_api
|
| 39 |
-
from pics.mao import app as mao_api
|
| 40 |
-
from pics.dj5 import app as dj5_api
|
| 41 |
|
| 42 |
app = FastAPI(
|
| 43 |
# docs_url=None,
|
| 44 |
redoc_url=None
|
| 45 |
-
)
|
| 46 |
-
|
| 47 |
-
app.include_router(cors_api, tags=["Cors"])
|
| 48 |
-
app.include_router(pics_api, tags=["Image"])
|
| 49 |
-
|
| 50 |
-
app.include_router(m3u8_api, tags=["M3u8"])
|
| 51 |
-
app.include_router(parse_api, tags=["M3u8"])
|
| 52 |
-
|
| 53 |
-
app.include_router(tube_api, tags=["Video"])
|
| 54 |
-
app.include_router(uhub_api, tags=["Video"])
|
| 55 |
-
app.include_router(ccbv_api, tags=["Video"])
|
| 56 |
-
app.include_router(miss_api, tags=["Video"])
|
| 57 |
-
app.include_router(javd_api, tags=["Video"])
|
| 58 |
-
app.include_router(jing_api, tags=["Video"])
|
| 59 |
-
app.include_router(dede_api, tags=["Video"])
|
| 60 |
-
app.include_router(bili_api, tags=["Video"])
|
| 61 |
-
|
| 62 |
-
app.include_router(bao_api, tags=["ByPass"])
|
| 63 |
-
app.include_router(mac_api, tags=["ByPass"])
|
| 64 |
-
app.include_router(sbai_api, tags=["ByPass"])
|
| 65 |
-
|
| 66 |
-
app.include_router(p18_api, tags=["Images"])
|
| 67 |
-
app.include_router(mj_api, tags=["Images"])
|
| 68 |
-
app.include_router(jpy_api, tags=["Images"])
|
| 69 |
-
app.include_router(tuan_api, tags=["Images"])
|
| 70 |
-
app.include_router(man_api, tags=["Images"])
|
| 71 |
-
app.include_router(ozv_api, tags=["Images"])
|
| 72 |
-
app.include_router(uman_api, tags=["Images"])
|
| 73 |
-
app.include_router(uman_pic, tags=["Images"])
|
| 74 |
-
app.include_router(baoz_api, tags=["Images"])
|
| 75 |
-
app.include_router(mao_api, tags=["Images"])
|
| 76 |
-
app.include_router(miao_api, tags=["Images"], prefix='/miao')
|
| 77 |
-
app.include_router(dj5_api, tags=["Video"], prefix='/dj5')
|
| 78 |
-
|
| 79 |
-
if __name__ == "__main__":
|
| 80 |
-
import uvicorn
|
| 81 |
-
uvicorn.run(app='main:app', host='0.0.0.0', port=80, reload=True)
|
|
|
|
| 8 |
# --------------------------------------------------------
|
| 9 |
|
| 10 |
from fastapi import FastAPI
|
|
|
|
|
|
|
|
|
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
app = FastAPI(
|
| 14 |
# docs_url=None,
|
| 15 |
redoc_url=None
|
| 16 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|