social-dl/run
anonymousx97 b7287a6685 v2.1.0
Add: uvLoop for non termux env.

Revert: Requirements bypass.

Fixes:
 • Gallery-DL success bug.
 • Stop Channel links triggering in chat.
 • HEIC Image format.
 • Optimize Filters.
 • Re-Load Confirmation in loader.
 • Remove Chat_ID check in join.
 • Isort removing imports.
 • Switch filename case before checking ext.
2023-07-28 15:04:30 +05:30

14 lines
338 B
Bash

#!/bin/sh
if [ "$API_PORT" ] ; then
py_code="
from aiohttp import web
app = web.Application()
app.router.add_get('/', lambda _: web.Response(text='Web Server Running...'))
web.run_app(app, host='0.0.0.0', port=$API_PORT, reuse_port=True, print=None)
"
python3 -q -c "$py_code" & echo "Dummy Web Server Started..."
fi
python3 -m app