client:ytfzf
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| client:ytfzf [2025/09/01 08:10] – marlonivo | client:ytfzf [2025/09/02 09:02] (current) – [Invidous Instance] marlonivo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== yt-fzf ==== | + | ====== yt-fzf |
| yt-fzf is a posix script to find and watch youtube videos from the terminal. Unfortenetly public instances wont work so we have to run our own locally. | yt-fzf is a posix script to find and watch youtube videos from the terminal. Unfortenetly public instances wont work so we have to run our own locally. | ||
| Line 21: | Line 21: | ||
| ytdl_pref=' | ytdl_pref=' | ||
| sub_link_count=8 | sub_link_count=8 | ||
| + | log_level=0 | ||
| show_thumbnails=1 | show_thumbnails=1 | ||
| pages_start=1 | pages_start=1 | ||
| + | is_loop=1 | ||
| search_again=1 | search_again=1 | ||
| multi_search=1 | multi_search=1 | ||
| invidious_instance=" | invidious_instance=" | ||
| + | search_again_shortcut=" | ||
| - | # Thumbnail | + | # Thumb |
| - | thumbnail_viewer="ueberzug" | + | load_thumbnail_viewer="chafa" |
| - | thumbnail_quality=" | + | thumbnail_quality=" |
| fzf_preview_side=" | fzf_preview_side=" | ||
| sort_by=" | sort_by=" | ||
| + | export FZF_DEFAULT_OPTS=" | ||
| on_opt_parse_c () { | on_opt_parse_c () { | ||
| arg=" | arg=" | ||
| case " | case " | ||
| - | #when scraping subscriptions enable -l | ||
| - | #-cSI or -cS | ||
| SI|S) is_loop=1 ;; | SI|S) is_loop=1 ;; | ||
| esac | esac | ||
| } | } | ||
| - | </ | ||
| - | ==== Invidous Instance ==== | + | download_thumbnails() { |
| + | for thumb in " | ||
| + | url=" | ||
| + | id=" | ||
| + | curl -s -L " | ||
| + | done | ||
| + | wait | ||
| + | } | ||
| + | </ | ||
| + | ===== Invidous Instance | ||
| Install Dependencys | Install Dependencys | ||
| < | < | ||
| Line 77: | Line 87: | ||
| port: 5432 | port: 5432 | ||
| - | hmac_key: " | + | hmac_key: " |
| </ | </ | ||
| - | ==== Postgres ==== | + | ===== Postgres |
| Login into postgres | Login into postgres | ||
| < | < | ||
| Line 87: | Line 97: | ||
| </ | </ | ||
| - | Dann im psql-Prompt | + | Within the psql-Prompt: |
| < | < | ||
| CREATE USER invidious WITH PASSWORD ' | CREATE USER invidious WITH PASSWORD ' | ||
| Line 95: | Line 105: | ||
| - | ✅ Schritt 2: DB-Schema importieren | + | Import |
| < | < | ||
| - | Jetzt füllst du die Datenbank mit dem Schema, das Invidious braucht: | ||
| - | |||
| psql -U invidious -h localhost -d invidious < config/ | psql -U invidious -h localhost -d invidious < config/ | ||
| psql -U invidious -h localhost -d invidious < config/ | psql -U invidious -h localhost -d invidious < config/ | ||
| Line 110: | Line 118: | ||
| < | < | ||
| ./invidious | ./invidious | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== MPV Config ===== | ||
| + | |||
| + | Add this to '' | ||
| + | < | ||
| + | audio-device=pulse | ||
| + | vo=x11 | ||
| + | profile=sw-fast minimal) | ||
| + | hwdec=no | ||
| + | |||
| + | no-terminal | ||
| + | really-quiet | ||
| + | msg-level=all=no | ||
| + | </ | ||
| + | |||
| + | Add both postgres and invidous to your boot runlevel. | ||
| + | < | ||
| + | sudo rc-update add postgres default | ||
| + | sudo rc-update add invidous default | ||
| + | </ | ||
| + | |||
| + | Now you can search anything with yt-fzf. | ||
| + | < | ||
| + | ytfzf Anything | ||
| </ | </ | ||
| Done! Have fun with ytfzf | Done! Have fun with ytfzf | ||