KevCui / soaper-dl

:tv: Soaper downloader: download TV series and movies in your terminal
Do What The F*ck You Want To Public License
70 stars 19 forks source link

Running the script just does nothing #5

Closed MagnusStrom closed 3 years ago

MagnusStrom commented 3 years ago

I'm on mac, and maybe I just installed the chrome thing wrong? I put it in the file and ran command -v chrome and nothing happened, and then I ran the script and nothing happened.

KevCui commented 3 years ago

Hi @MagnusStrom, so you tried try this?

4. If you are on MacOS, please add Chrome alias in ~/.bashrc or ~/.zshrc or other shell rc file:

alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome"

Restart terminal app and then run command -v chrome? Run /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome in your terminal, will it open chrome for you?

MagnusStrom commented 3 years ago

Running the second command worked, but the first one did not.

MagnusStrom commented 3 years ago

@KevCui And yes, I have tried that. I did: nano ~./bashrc and got this https://i.imgur.com/kaTprf3.png

KevCui commented 3 years ago

Hi @MagnusStrom, you edited ~/.bashrc, not ~./bashrc, right? I think it's a typo in your previous comment. Since Apple changed default shell to Zsh, by any chance, you are not using Bash? You can check you current shell with this command echo $SHELL. If it's Zsh, you have to add alias into ~/.zshrc.

MagnusStrom commented 3 years ago

Hello @KevCui, yes turns out i needed to edit zshrc. And running command -v chrome now gives me: https://i.imgur.com/3r01CTh.png But still running ./soap2day-dl.sh -n 'game of' gives me nothing!

KevCui commented 3 years ago

Hi @MagnusStrom, one step closer :) Could you run bash -x ./soap2day-dl.sh -n 'game of' and share the log? Thanks.

MagnusStrom commented 3 years ago

image

MagnusStrom commented 3 years ago

Wait, I think I did install jq incorrectly, i have to install it through homebrew

MagnusStrom commented 3 years ago

image Update: Now it returns this.

KevCui commented 3 years ago

Hi @MagnusStrom, it's weird the chrome path is not recognized during script execution. I hard-coded it in the latest commit. It should work for you now.

MagnusStrom commented 3 years ago

it worked!! thank you!!