pystardust / ytfzf

A posix script to find and watch youtube videos from the terminal. (Without API)
GNU General Public License v3.0
3.75k stars 345 forks source link

PROBLEMS WITH CALLING YTFZF VIA BASH IN WSL2 ON WINDOWS 11 #546

Closed ghost closed 2 years ago

ghost commented 2 years ago

PROBLEMS WITH CALLING YTFZF VIA BASH IN WSL2 ON WINDOWS 11

I installed ytfzf from source

 1988  git clone https://github.com/ahtoaXoov7D/ytfzf
 1990  cd ytfzf/
 1992  nano README.md
 1997  sudo apt install fzf jq
 2005  sudo make install doc
 2007  sudo apt install jq mpv fzf git python3-pip python3-wheel python3-dev python3-xlib libx11-dev libxext-dev make
 2008  python3 -m pip install --user youtube-dl ueberzug
 2009  sudo make install
 2012  cd ~/.config/
 2014  mkdir ytfzf
 2016  cd ytfzf/

<sub>then i copied the necessary data into config.sh</sub>

YTFZF_HIST=1 # history is on by default it can be set to -> 0 history off, 1: history on
YTFZF_LOOP=0 # if set to 1 it is on but normally it is off by default. Can be turned on using option -l
YTFZF_PREF="bestvideo[height<=?1080]+bestaudio/best" # set the [video format](https://github.com/ytdl-org/youtube-dl#format-selection)
YTFZF_ENABLE_FZF_DEFAULT_OPTS=1 # fzf colors are going to be the one from your fzf configuration
FZF_PLAYER="mpv" # sets the video player used by ytfzf (mpv by default), e.g. FZF_PLAYER="devour mpv"; you can also specify the YTFZF_PLAYER_FORMAT, e.g. YTFZF_PLAYER_FORMAT="devour mpv --ytdl-format="

i can retrieve the videos, but then when i try to run them i get the following mistake:

ytfzf
Search
> robert lippok
Scraping YouTube (with https://vid.puffyan.us) (robert lippok, pg: 1)
[ytdl_hook] ERROR: Pb42GbADwZM: YouTube said: Unable to extract video data
[ytdl_hook] youtube-dl failed: unexpected error ocurred
Failed to recognize file format.
Exiting... (Errors when loading file)

can someone show me what am i doing wrong

i am using ytfzf on windows 11 using wsl2 with ubuntu with an acer predator ph 315-51 vielen danke

ghost commented 2 years ago

on native ubuntu, the problem seems to get fixed. in windows 11 on wsl2, with ubuntu installed the problem seem to persist. i would like to ask for cross validation of other people. as what we are facing here, may be dnscache problems on windows 11, within the scope of the system sandbox, or the ISP dns, and so on so forth (already checked for the definitions of my computer)

ghost commented 2 years ago

problem had, effectively, to do with dns. please close this thread