jenslys / autovod

Automatically upload Twitch.tv / Kick.com streams in realtime to Youtube or a Rclone supported provider
MIT License
94 stars 10 forks source link

Hardcoded streamlink plugin path inside DOCKEFILE #81

Open jenslys opened 11 months ago

jenslys commented 11 months ago

Currently the path to the streamlink plugin folder is hardcoded, since I was not able to run the necessary command to get the path:

#* Install streamlink plugins
RUN wget  -O "/usr/lib/python3.10/site-packages/streamlink/plugins/kick.py" "https://raw.githubusercontent.com/nonvegan/streamlink-plugin-kick/master/kick.py"

what we want:

STREAMLINK_LOCATION=$(pip3 show streamlink | grep -E '^Location:' | awk '{print $2}') &&
      PLUGINS_DIR="${STREAMLINK_LOCATION}/streamlink/plugins" &&
      wget --progress=dot:giga -O "${PLUGINS_DIR}/kick.py" "https://raw.githubusercontent.com/nonvegan/streamlink-plugin-kick/master/kick.py"