Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 2.51 KB

WSL.md

File metadata and controls

63 lines (44 loc) · 2.51 KB

[Running on windows]

As this tool is a bash script, so we need bash to execute.

Here is a complete step for running the tool on Windows.

  1. Enable WSL (Windows Subsystem for Linux)
  • Press Windows key + R and run optionalfeatures. Find Windows Subsystem for Linux and enable the feature. Alt text

  • Install WSL from Windows command line. (Need to be admin. You should able to right click on windows icon and launch cmd)

  • After launch, install ubuntu by

wsl --install -d Ubuntu
螢幕擷取畫面 2024-09-22 221024

Note: Make sure the Hypervisors and VM platform are also enabled if Ubuntu launch failed.

  1. Install iwara-dl on WSL with dependency. Lets put the code into Windows' Document folder
sudo apt update;  ## update package manager
sudo apt install unzip jq curl nkf;   ## install dependency
cd /mnt/c/Users/hare1039/Documents/;  ## go to windows document
wget https://github.com/hare1039/iwara-dl/archive/refs/heads/master.zip; ## download this repo's master branch
unzip master.zip;   ## unzip code
rm master.zip;      ## delete zip
cd iwara-dl-master; ## go to code directory
螢幕擷取畫面 2024-09-22 221640

After install the dependency, you can check whether the install works ok or not:

螢幕擷取畫面 2024-09-22 222539

You can see iwara-dl downloads the video, but the videos are inside the code directory. Lets setup some shortcut.

  1. Setup shortcut
nano ~/.bashrc;

# And add
alias iwara-dl='IWARA_USER=hare1039 IWARA_PASS=password /mnt/c/Users/hare1039/Documents/iwara-dl-master/iwara-dl.sh'
# Ctrl-X and save the file

source ~/.bashrc
螢幕擷取畫面 2024-09-22 223030 Now you should have your `iwara-dl` ready.
  1. Lets test it:
cd /mnt/c/Users/hare1039/Downloads;
iwara-dl https://www.iwara.tv/playlist/8ae13720-750d-46f0-b8a4-0162daf4a439;
螢幕擷取畫面 2024-09-22 223501

Good if you see the videos in your downloads