mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-09-16 14:12:20 +02:00
Reformat
This commit is contained in:
+2
-1
@@ -15,7 +15,8 @@ ENV PYTHONUNBUFFERED=1 \
|
||||
ULTIMATE_COUNTRY=DE \
|
||||
ULTIMATE_DEBUG=false \
|
||||
ULTIMATE_EPG_URL="https://example.com/epg.xml.gz" \
|
||||
PYTHONPATH=/app/lib \
|
||||
# IMPORTANT: Set PYTHONPATH to include both lib and app directories
|
||||
PYTHONPATH=/app/lib:/app \
|
||||
DRM_PLUGINS_PATH=/drm-plugins
|
||||
|
||||
# Install system dependencies
|
||||
|
||||
+24
-13
@@ -3,20 +3,31 @@
|
||||
Route handlers for Ultimate Backend Service
|
||||
"""
|
||||
|
||||
from .cache import setup_cache_routes
|
||||
from .config import setup_config_routes
|
||||
from .drm import setup_drm_routes
|
||||
from .epg import setup_epg_routes
|
||||
from .m3u import setup_m3u_routes
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Add lib path for imports - this will be executed when routes module is imported
|
||||
script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
app_dir = os.path.dirname(script_dir) # /app
|
||||
LIB_PATH = os.path.join(app_dir, "lib")
|
||||
if os.path.exists(LIB_PATH) and LIB_PATH not in sys.path:
|
||||
sys.path.insert(0, LIB_PATH)
|
||||
|
||||
# Now import the route setup functions
|
||||
from .providers import setup_provider_routes
|
||||
from .streams import setup_stream_routes
|
||||
from .m3u import setup_m3u_routes
|
||||
from .drm import setup_drm_routes
|
||||
from .cache import setup_cache_routes
|
||||
from .config import setup_config_routes
|
||||
from .epg import setup_epg_routes
|
||||
|
||||
__all__ = [
|
||||
"setup_provider_routes",
|
||||
"setup_stream_routes",
|
||||
"setup_m3u_routes",
|
||||
"setup_drm_routes",
|
||||
"setup_cache_routes",
|
||||
"setup_config_routes",
|
||||
"setup_epg_routes",
|
||||
]
|
||||
'setup_provider_routes',
|
||||
'setup_stream_routes',
|
||||
'setup_m3u_routes',
|
||||
'setup_drm_routes',
|
||||
'setup_cache_routes',
|
||||
'setup_config_routes',
|
||||
'setup_epg_routes'
|
||||
]
|
||||
Reference in New Issue
Block a user