Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Run example #183

Open
danrobi11 opened this issue Oct 28, 2023 · 1 comment
Open

Suggestion: Run example #183

danrobi11 opened this issue Oct 28, 2023 · 1 comment

Comments

@danrobi11
Copy link

danrobi11 commented Oct 28, 2023

Hi.
What do you think about the idea to add a simple .bash_aliases example in the README.md Usage section?
Im afraid some users might struggle figuring out how to run it.

As for example. Something like this should be pretty straightforward:

alias ytlo="cd ~/.local/bin/youtube-local-2.8.5/ && python3 server.py | (sleep 1;flatpak run org.netsurf_browser.NetSurf http://localhost:8080/)"

Anyhow, Thanks for your project youtube-local.

@fredster5
Copy link

I think a better way of running it would be creating a python virtual environment and then running it from there so it would look like this

first launch

cd youtube-local
python -m venv env
source env/bin/activate
pip install -r requirements.txt
python server.py

then once you wanna reactivate it you'll simply have to just source and start the server

cd youtube-local
source env/bin/activate
python server.py

I think making a virtual environment is the universal method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants