Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tjoab authored Nov 29, 2024
1 parent 5347d29 commit 02d0f38
Showing 1 changed file with 32 additions and 9 deletions.
41 changes: 32 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ Once you downloaded the Project, open the "index.js" file.

You will find the following variables:

```bash
const course_url = '';
const subtitle_lang = 'en';
```javascript
const course_url = "";
const subtitle_lang = "en";
const machine_os = "";
const cookies;
const _credentials_ = "";
```

The course_url is just the full URL of the course you want to download. For example:
The `course_url` is just the full URL of the course you want to download. For example:

https://www.domestika.org/en/courses/3086-creating-animated-stories-with-after-effects/course

Expand All @@ -30,25 +31,47 @@ After you installed the extension, log into domestika and open the extension.

In the window popup, look for "\_domestika_session", click to open it and copy the contents of the Value field into the value field under cookies.

then look for the "_credentials_" cookie, copy the value of that into the "_credentials_" variable.
Then look for the "_credentials_" cookie, copy the value of that into the "_credentials_" variable.

If you want to change the subtitles that will be downloaded, just put the preferred language into the "subtitle_lang" variable. But make sure the language is avaiable first.

Before you can start it, you have to download N_m3u8DL-RE from here: https://github.com/nilaoda/N_m3u8DL-RE/releases. Get the lasted version binary and place it in the folder. Make sure its named corretly ("N_m3u8DL-RE.exe").
The machine_os is just to specify whether the machine you are on is Windows or MacOS/Linux. If you are on a Windows machine, be sure to set:
```javascript
const machine_os = "win";
```
Otherwise if you are on MacOS or Linux:
```javascript
const machine_os = "mac";
```

Before you can start it, you have to download N_m3u8DL-RE from here: https://github.com/nilaoda/N_m3u8DL-RE/releases. Get the lastest version binary and place it in the root directory of the folder. To do so, simply scroll down to the 'Assets' section and download the appropriate binary based on your machine. Note there are binaries for Windows (on arm64 and x64 architectures), MacOS (on arm64 and x64 architectures) and Linux (on arm64 and x64 architectures). Download the compressed file that corresponds to your machine and architecture, unzip it, then place the binary in this repo's root folder.

NOTE: For Windows, the file will be called "N_m3u8DL-RE.exe", while on MacOS and Linux, the file will be called "N_m3u8DL-RE". Do not change these names.

Also be sure you have ffmpeg installed.

After you have done that, just open a terminal and type
After you have done that, navigate to the repo, open a terminal and type

```bash
npm i
```

After that to start the script type
After that, to start the script type

```bash
npm run start
```

NOTE: On MacOS and Linux, depending on your perimssions, you may encounter an error from `N_m3u8DL-RE`:
```bash
N_m3u8DL-RE: Permission denied
```

If this occurs, open a terminal and grant execute permissions for the binary:
```bash
npm run start.
chmod +x N_m3u8DL-RE
```
This should resolve the issue, and you can re-run the start command.

All the courses will be downloaded in a folder called "domestika_courses/{coursename}/".

Expand Down

0 comments on commit 02d0f38

Please sign in to comment.