Skip to content

Commit

Permalink
Rename python-filename
Browse files Browse the repository at this point in the history
- Renamed python-filename
  • Loading branch information
tmiland committed Nov 24, 2024
1 parent 89e1430 commit 5ecb4fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions invidious_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1563,12 +1563,12 @@ install_youtube_trusted_session_generator() {
#pip3 install nodriver
${SUDO} $YTSG_FOLDER/venv/bin/pip3 install -r requirements.txt >/dev/null 2>&1
# Switch to headless
if grep -oq "headless=False" $YTSG_FOLDER/index.py
if grep -oq "headless=False" $YTSG_FOLDER/potoken-generator.py
then
${SUDO} sed -i "s|headless=False|headless=True, sandbox=False|g" $YTSG_FOLDER/index.py
${SUDO} sed -i "s|headless=False|headless=True, sandbox=False|g" $YTSG_FOLDER/potoken-generator.py
fi
# Credit https://github.com/iv-org/invidious/issues/4947#issuecomment-2374336723
output=$(${SUDO} $YTSG_FOLDER/venv/bin/python3 $YTSG_FOLDER/index.py)
output=$(${SUDO} $YTSG_FOLDER/venv/bin/python3 $YTSG_FOLDER/potoken-generator.py)
deactivate
visitor_data=$(echo "$output" | awk -F': ' '/visitor_data/ {print $2}')
po_token=$(echo "$output" | awk -F': ' '/po_token/ {print $2}')
Expand Down

0 comments on commit 5ecb4fb

Please sign in to comment.