Spaces:
Running
Running
fix: re-upload app_v2_entry.py with team stats routes
Browse files- app_v2_entry.py +2 -6
app_v2_entry.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
"""VNEWS v2 Entry Point -
|
| 2 |
import sys, os
|
| 3 |
from main import app, HEADERS, BONGDA_HEADERS, fetch_bongda_api, HL_LEAGUES
|
| 4 |
|
|
@@ -433,11 +433,7 @@ def _cat():return JSONResponse([])
|
|
| 433 |
@app.get('/api/storage_status')
|
| 434 |
def _st():return JSONResponse({'persistent':os.path.isdir('/data') and os.access('/data',os.W_OK)})
|
| 435 |
@app.get('/s')
|
| 436 |
-
async def _sh(url:str='',title:str='',img:str=''):
|
| 437 |
-
from fastapi.responses import RedirectResponse
|
| 438 |
-
from urllib.parse import unquote
|
| 439 |
-
decoded = unquote(url) if url else "/"
|
| 440 |
-
return RedirectResponse(url=decoded, status_code=302)
|
| 441 |
|
| 442 |
from wc2026_scraper import(scrape_summary,scrape_fixtures,scrape_standings,scrape_stats,scrape_wc_news,scrape_road_to_wc,get_wc2026_all,scrape_history,scrape_h2h,scrape_lineups,scrape_match_detail)
|
| 443 |
@app.get('/api/wc2026')
|
|
|
|
| 1 |
+
"""VNEWS v2 Entry Point - with fast bongda proxy"""
|
| 2 |
import sys, os
|
| 3 |
from main import app, HEADERS, BONGDA_HEADERS, fetch_bongda_api, HL_LEAGUES
|
| 4 |
|
|
|
|
| 433 |
@app.get('/api/storage_status')
|
| 434 |
def _st():return JSONResponse({'persistent':os.path.isdir('/data') and os.access('/data',os.W_OK)})
|
| 435 |
@app.get('/s')
|
| 436 |
+
async def _sh(url:str='',title:str='',img:str=''):return HTMLResponse(f'<!DOCTYPE html><html><head><meta property="og:title" content="{_clean(title)}"><meta property="og:image" content="{_clean(img)}"><meta http-equiv="refresh" content="0;url={_clean(url) or "/"}"></head><body></body></html>')
|
|
|
|
|
|
|
|
|
|
|
|
|
| 437 |
|
| 438 |
from wc2026_scraper import(scrape_summary,scrape_fixtures,scrape_standings,scrape_stats,scrape_wc_news,scrape_road_to_wc,get_wc2026_all,scrape_history,scrape_h2h,scrape_lineups,scrape_match_detail)
|
| 439 |
@app.get('/api/wc2026')
|