ReneR97 / domestika-downloader

Download full domestika courses
https://www.buymeacoffee.com/ReneR97
49 stars 14 forks source link

Two folders are created, with mini clips instead of full videos #41

Open princesadelaspampas opened 2 months ago

princesadelaspampas commented 2 months ago

Hi and thanks for create/support this script, it's a lifesaver! I've encountered a couple of issues that I was able to troubleshoot, but I'm unable to fix this one. I get the error message below, and then, an empty folder is created on domestika_courses, but at the same time, a folder for each unit is created within the main folder, that has videos that last 2 to 5 seconds. Do you have any idea what it could possibly be? TIA!!!


const err = new Error(message);
              ^

Error: Command failed: N_m3u8DL-RE -sv res="1080*":codec=hvc1:for=best "https://cdn-videos.domestika.org/videos/000/002/827/6bc2b9ea801300f3b9717c41ff3528b5/master.m3u8?1676414175" --save-dir "domestika_courses/Design and Illustration of a Fanzine//U4- Illustration and Methodology" --save-name "6_Vector drawing 3"

    at genericNodeError (node:internal/errors:984:15)
    at wrappedFn (node:internal/errors:538:14)
    at ChildProcess.exithandler (node:child_process:422:12)
    at ChildProcess.emit (node:events:518:28)
    at maybeClose (node:internal/child_process:1105:16)
    at ChildProcess._handle.onexit (node:internal/child_process:305:5) {

  code: 1,
  killed: false,
  signal: null,
  cmd: 'N_m3u8DL-RE -sv res="1080*":codec=hvc1:for=best "https://cdn-videos.domestika.org/videos/000/002/827/6bc2b9ea801300f3b9717c41ff3528b5/master.m3u8?1676414175" --save-dir "domestika_courses/Design and Illustration of a Fanzine//U4- Illustration and Methodology" --save-name "6_Vector drawing 3"',
  stdout: '17:50:54.895 INFO : N_m3u8DL-RE (Beta version) 20230628\r\n' +
    '17:50:54.912 INFO : Loading URL: https://cdn-videos.domestika.org/videos/000/002/827/6bc2b9ea801300f3b9717c41ff3528b5/master.m3u8?1676414175\r\n' +
    '17:50:55.909 INFO : Content Matched: HTTP Live Streaming\r\n' +
    '17:50:55.909 INFO : Parsing streams...\r\n' +
    '17:50:55.909 WARN : Master List detected, try parse all streams\r\n' +
    '17:50:55.923 WARN : Writing meta json\r\n' +
    '17:50:55.924 INFO : Extracted, there are 9 streams, with 5 basic streams, 1 audio streams, 3 subtitle streams\r\n' +
    '17:50:55.924 INFO : Vid 1920x1080 | 4269 Kbps | 25 | mp4a.40.2\r\n' +
    '17:50:55.924 INFO : Vid 1280x720 | 2384 Kbps | 25 | mp4a.40.2\r\n' +
    '17:50:55.925 INFO : Vid 960x540 | 1625 Kbps | 25 | mp4a.40.2\r\n' +
    '17:50:55.925 INFO : Vid 640x360 | 1291 Kbps | 25 | mp4a.40.2\r\n' +
    '17:50:55.925 INFO : Vid 400x224 | 431 Kbps | 25 | mp4a.40.2\r\n' +
    '17:50:55.926 INFO : Aud audio-medium | Original | es | 2CH\r\n' +
    '17:50:55.926 INFO : Sub sub1 | es | Espa�ol\r\n' +
    '17:50:55.926 INFO : Sub sub1 | en | English\r\n' +
    '17:50:55.927 INFO : Sub sub1 | pt | Portugu�s\r\n' +
    '17:50:55.927 INFO : Parsing streams...\r\n' +
    '17:50:55.985 INFO : Selected streams:\r\n' +
    '17:50:55.985 INFO : Vid 1920x1080 | 4269 Kbps | 25 | mp4a.40.2 | 99 Segments | \r\n' +
    '~15m12s\r\n' +
    '17:50:55.985 WARN : Writing meta json\r\n' +
    '17:50:55.986 INFO : Save Name: 6_Vector drawing 3\r\n' +
    '17:50:55.987 INFO : Start downloading...Vid 1920x1080 | 4269 Kbps | 25 | \r\n' +
    'mp4a.40.2\r\n' +
    '17:50:56.153 WARN : Reading media info...\r\n' +
    '17:50:56.541 INFO : [0x100]: Video, h264 (High) ([27][0][0][0]), 1920x1080, 25 \r\n' +
    'fps\r\n' +
    '17:50:56.541 INFO : [0x101]: Audio, aac (LC) ([15][0][0][0]), 130 kb/s\r\n' +
    '17:50:56.542 INFO : [0x102]: Data, timed_id3 (ID3 )\r\n' +
    'Vid 1920x1080 | 4269 Kbps | 25: 4%\r\n' +
    '17:51:00.128 WARN : The SSL connection could not be established, see inner \r\n' +
    'exception.\r\n' +
    '17:51:00.146 WARN : The SSL connection could not be established, see inner \r\n' +
    'exception.\r\n' +
    'Vid 1920x1080 | 4269 Kbps | 25: 26%\r\n' +
    'Vid 1920x1080 | 4269 Kbps | 25: 43%\r\n' +
    'Vid 1920x1080 | 4269 Kbps | 25: 49%\r\n' +
    'Vid 1920x1080 | 4269 Kbps | 25: 50%\r\n' +
    'Vid 1920x1080 | 4269 Kbps | 25: 72%\r\n' +
    'Vid 1920x1080 | 4269 Kbps | 25: 75%\r\n' +
    'Vid 1920x1080 | 4269 Kbps | 25: 94%\r\n' +
    'Vid 1920x1080 | 4269 Kbps | 25: 95%\r\n' +
    'Vid 1920x1080 | 4269 Kbps | 25: 96%\r\n' +
    'Vid 1920x1080 | 4269 Kbps | 25: 97%\r\n' +
    'Vid 1920x1080 | 4269 Kbps | 25: 98%\r\n' +
    '17:53:51.134 ERROR: Segment count check not pass, total: 99, downloaded: 97.\r\n' +
    '17:53:51.134 ERROR: Failed\r\n',
  stderr: ''
}

Node.js v20.12.2
ReneR97 commented 2 months ago

the fact that its creating all those folders in the root folder is ok, they are removed once the full course is downloaded

The error on the other hand shouldnt be. Can you send me the course you are trying to download?

princesadelaspampas commented 2 months ago

Sure! And thank you for your prompt reply! https://www.domestika.org/en/courses/125-design-and-illustration-of-a-fanzine/course

ReneR97 commented 1 month ago

hmm, i just tryed the course and it did download without a problem. Can you try to redownload the project from github and refollow all the steps described in the description? just to be sure