mirror of
https://github.com/Ap0dexMe0/o11pro-unpacked.git
synced 2026-07-15 18:30:02 +02:00
released v1.3.5
This commit is contained in:
+5
-5
@@ -10,13 +10,13 @@
|
|||||||
# ./RunMe.sh 8080 4 # custom port + verbose=4
|
# ./RunMe.sh 8080 4 # custom port + verbose=4
|
||||||
# GOMEMLIMIT=4G ./RunMe.sh # override memory limit
|
# GOMEMLIMIT=4G ./RunMe.sh # override memory limit
|
||||||
# MAX_STREAMS=8 ./RunMe.sh # limit concurrent streams
|
# MAX_STREAMS=8 ./RunMe.sh # limit concurrent streams
|
||||||
# MONITOR=false ./RunMe.sh # disable security monitor
|
# MONITOR=true ./RunMe.sh # enable security monitor
|
||||||
# HLS_PROXY=false ./RunMe.sh # disable HLS proxy
|
# HLS_PROXY=false ./RunMe.sh # disable HLS proxy
|
||||||
|
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# ─── Config Defaults ───────────────────────────────────────────────────
|
# ─── Config Defaults ───────────────────────────────────────────────────
|
||||||
MONITOR="${MONITOR:-true}"
|
MONITOR="${MONITOR:-false}"
|
||||||
MONITOR_PORT="${MONITOR_PORT:-1339}"
|
MONITOR_PORT="${MONITOR_PORT:-1339}"
|
||||||
|
|
||||||
HLS_PROXY="${HLS_PROXY:-true}"
|
HLS_PROXY="${HLS_PROXY:-true}"
|
||||||
@@ -39,7 +39,7 @@ ADMIN_PASS="${ADMIN_PASS:-admin1337}"
|
|||||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
||||||
VENV_DIR="$SCRIPT_DIR/venv"
|
VENV_DIR="$SCRIPT_DIR/venv"
|
||||||
HLS_PROXY_CONFIG="${HLS_PROXY_CONFIG:-$PROJECT_ROOT/cache/orig_urls.json}"
|
HLS_PROXY_CONFIG="${HLS_PROXY_CONFIG:-$SCRIPT_DIR/cache/orig_urls.json}"
|
||||||
|
|
||||||
export PATH="$VENV_DIR/bin:/usr/bin:/bin:/usr/local/bin:${PATH:-}"
|
export PATH="$VENV_DIR/bin:/usr/bin:/bin:/usr/local/bin:${PATH:-}"
|
||||||
cd "$SCRIPT_DIR"
|
cd "$SCRIPT_DIR"
|
||||||
@@ -76,7 +76,7 @@ mkdir -p hls/live keys epg dl manifests offair overlay logos fonts \
|
|||||||
rec scripts logs providers cache
|
rec scripts logs providers cache
|
||||||
|
|
||||||
# ─── Build Args ────────────────────────────────────────────────────────
|
# ─── Build Args ────────────────────────────────────────────────────────
|
||||||
ARGS="-c o11.cfg -p $PORT -b $BIND -stdout -v $VERBOSE"
|
ARGS="-c o11.cfg -p $PORT -b $BIND -stdout -v $VERBOSE -providers providers -usecdm"
|
||||||
|
|
||||||
if [ "$KEEP_FALSE" = "true" ]; then
|
if [ "$KEEP_FALSE" = "true" ]; then
|
||||||
ARGS="$ARGS -keep=false"
|
ARGS="$ARGS -keep=false"
|
||||||
@@ -164,7 +164,7 @@ if [ "$HLS_PROXY" = "true" ]; then
|
|||||||
else
|
else
|
||||||
if [ -f "modules/generate_orig_urls.py" ]; then
|
if [ -f "modules/generate_orig_urls.py" ]; then
|
||||||
python3 modules/generate_orig_urls.py \
|
python3 modules/generate_orig_urls.py \
|
||||||
--dir "$PROJECT_ROOT/providers" \
|
--dir "$SCRIPT_DIR/providers" \
|
||||||
--output "$HLS_PROXY_CONFIG" 2>/dev/null || true
|
--output "$HLS_PROXY_CONFIG" 2>/dev/null || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ from http.server import HTTPServer, BaseHTTPRequestHandler
|
|||||||
from urllib.parse import urlparse, parse_qs
|
from urllib.parse import urlparse, parse_qs
|
||||||
from concurrent.futures import ThreadPoolExecutor
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
|
|
||||||
CONFIG_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', '..', 'cache', 'orig_urls.json')
|
CONFIG_FILE = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'cache', 'orig_urls.json')
|
||||||
PROXY_PORT = 9999
|
PROXY_PORT = 9999
|
||||||
PROXY_BIND = '127.0.0.1'
|
PROXY_BIND = '127.0.0.1'
|
||||||
UA = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36'
|
UA = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36'
|
||||||
|
|||||||
@@ -150,7 +150,7 @@
|
|||||||
"SessionManifest": false,
|
"SessionManifest": false,
|
||||||
"SpeedUp": true,
|
"SpeedUp": true,
|
||||||
"ProcessDVBSubs": false,
|
"ProcessDVBSubs": false,
|
||||||
"UseCdm": false,
|
"UseCdm": true,
|
||||||
"CdmType": "widevine",
|
"CdmType": "widevine",
|
||||||
"CdmMode": "internal",
|
"CdmMode": "internal",
|
||||||
"PRLAVersion": "",
|
"PRLAVersion": "",
|
||||||
@@ -171,7 +171,9 @@
|
|||||||
"Type": "hls/ts",
|
"Type": "hls/ts",
|
||||||
"Mode": "live",
|
"Mode": "live",
|
||||||
"BestVideo": "1080p59",
|
"BestVideo": "1080p59",
|
||||||
"DrmVendors": null
|
"DrmVendors": [
|
||||||
|
"widevine"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"Video": "best",
|
"Video": "best",
|
||||||
"Audio": "mp4a.40.5-104400-48000-2-ENG-en-",
|
"Audio": "mp4a.40.5-104400-48000-2-ENG-en-",
|
||||||
@@ -418,7 +420,7 @@
|
|||||||
"SessionManifest": false,
|
"SessionManifest": false,
|
||||||
"SpeedUp": false,
|
"SpeedUp": false,
|
||||||
"ProcessDVBSubs": false,
|
"ProcessDVBSubs": false,
|
||||||
"UseCdm": false,
|
"UseCdm": true,
|
||||||
"CdmType": "widevine",
|
"CdmType": "widevine",
|
||||||
"CdmMode": "internal",
|
"CdmMode": "internal",
|
||||||
"PRLAVersion": "",
|
"PRLAVersion": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user