social-dl/run
anonymousx97 0bceaea93b v2.0.5
Fixes

Instagram: Stop api call if no key is added.
Reddit: Fix bug for links without any media.
Youtube: Stop PlayLists and Channel Urls from triggering download.MediaHandler: Clean up repetitive code and squash it.
Client & Bot: Improve Error Logging.
Authorise: Fix Chat name for DMs.

Additions

Add: Dockerfile, run
Add: Plugin loader.

Beta: Bot Mode.
2023-07-23 21:59:02 +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