stepanic / juhuhu-downloader

Make your kids happier with a custom TV offline series from Juhuhu :))

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Juhuhu Downloader

Simple downloader which takes the array of streams with defined duration and number of sub-streams and make an offline version of Juhuhu videos.

It uses an example of Paw Patrol series https://juhuhu.hrt.hr/emisija/96/psici-u-ophodnji without ads on the start and on ont end of each video file and excludes the streams which have any dragon :))

All video chunks are after download squashed to the one file with FFMPEG.

How to use it

  1. npm install
  2. open any stream at https://juhuhu.hrt.hr/
  3. play a stream
  4. with a browser console at a Network tab clear everything
  5. jump to the end of the video stream
  6. copy the URL of the latest stream chunk in format https://streaming.hrt.hr/webstream/smil:<STREAM_ID>.smil/media_b2896000_<NUMBER_OF_CHUNKS + 1>.ts
  7. take STREAM_ID and NUMBER_OF_CHUNKS + 1 then update STREAMS config variable at properties id and videos in index.js to download specific stream
  8. run script with node index.js

Optionally

  • trim the video on start and on the end if your stream has any ads on it :))

Nice to have

  • Waiting for you PR :))

  • just paste URL of the TV series and scrapper would do everything for you listed above :))

  • wrap the script to the Electron Desktop app

Known issues

Try again with another internet connection

node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[Error: 4861629952:error:1408F119:SSL routines:ssl3_get_record:decryption failed or bad record mac:../deps/openssl/openssl/ssl/record/ssl3_record.c:677:
] {
  library: 'SSL routines',
  function: 'ssl3_get_record',
  reason: 'decryption failed or bad record mac',
  code: 'ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC'
}

About

Make your kids happier with a custom TV offline series from Juhuhu :))


Languages

Language:JavaScript 100.0%