Commit graph

30 commits

Author SHA1 Message Date
dependabot[bot]
2d0407e5c8
Bump axios from 0.19.2 to 0.21.1
Bumps [axios](https://github.com/axios/axios) from 0.19.2 to 0.21.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v0.21.1/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.19.2...v0.21.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-05 23:14:38 +00:00
Adrian Calinescu
f26204c38a
Revert "Fixed parsing for group with more than 100 videos (#288)" (#295)
This reverts commit cd1ac82fea.
2020-12-15 13:02:23 +02:00
lukaarma
cd1ac82fea
Fixed parsing for group with more than 100 videos (#288)
* fixed parsing for group with more than 100 videos
* updated all packages to latest version
2020-12-15 12:55:10 +02:00
dependabot[bot]
0be6ad8b60
Bump lodash from 4.17.15 to 4.17.19 (#179) 2020-07-18 22:58:55 +03:00
lukaarma
7bfc565a05
Major code refactoring (#164)
* Added Chromium caching of identity provider cookies

* Moved token expiry check in standalone method

* Created refreshSession function

* Session is now refreshed if the token expires

* Linting fixes

* Removed debug console.log()

* Added CC support

* Created function to prompt user for download parameters (interactive mode)

* Fix data folder for puppeteer

* Fixed multiple session error

* Fix token expire time

* Moved session refreshing to a more sensible place

* Changed Metadata name to Video (to better reflect the data structure)

* Complete CLI refactoring

* Removed useless sleep function

* Added outDir check from CLI

* Complete input parsing refactoring (both inline and file)

* Fixed and improved tests to work with the new input parsing

* Moved and improved output path generation to videoUtils

* Main code refactoring, added outpath to video type

* Minor changes in spacing and type definition style

* Updated readme after code refactoring

* Fix if inputFile doesn't start with url on line 1

* Minor naming change

* Use module 'winston' for logging

* Created logge, changed all console.log and similar to use the logger

* Added verbose logging, changed posterUrl property name on Video type

* Moved GUID extraction to input parsing

* Added support for group links

* Fixed test after last input parsing update

* Removed debug proces.exit()

* Changed from desc to asc order for group videos

* Updated test to reflect GUIDs output after parsing

* Added couple of comments and restyled some imports

* More readable verbose GUIDs logging

* Removed unused errors

* Temporary fix for timeout not working in ApiClient

* Explicit class member accessibility

* Defined array naming schema to be Array<T>

* Defined type/interface schema to be type only

* A LOT of type definitions
2020-07-18 22:49:36 +03:00
Adrian Calinescu
6132f895f3
Code cleanup to cleanly lint, added lint step to GitHub Action (#138) 2020-05-18 22:36:38 +03:00
Adrian Calinescu
2c48d103f2
Introduce singleton API client with retry policy (#130)
* Add singleton http client
* Removed refresh token logic
* Further cleanup after refresh token
* Make tests faster maybe
2020-05-18 20:34:57 +03:00
Adrian Calinescu
042e79d57f
Add mid-download token refresh, fix headers length overflow bug (#93)
* Add mid-download token refresh and header size fix for Node v8

* Refactor puppeteer test

* Remove note on mid-download token refresh bug

* Add source maps to build step

* Fix npm build script
2020-04-26 22:54:05 +03:00
snobu
c11c9b6334 Breaking changes in CLI params 2020-04-16 19:47:30 +03:00
kylon
176fa6e214
Fixes and refactoring (#59)
* Input url list: Fix bad Windows behavior

* Minor output fix

* Fix all download issues
  - downloads are synchronous again
  - fix progress bar (fix #39)
  - nuke fluent and switch to a bug-free ffmpeg module (fessonia)

* Move destreamer process events to a new file, we may add more in the future, lets give them their own space

* Destreamer: Release packages and builder script

ETA when? :P

* Clean up

* Implement yargs checks and add --videoUrlsFile option

* Refactor error handling
  - Human readable
  - No magic numbers

* Handle mkdir error
  - remove reduntant message

* gitignore: don't add hidden files

* Implement --outputDirectories

This gives us more flexibility on where to save videos

..especially if your videos have all the same name <.<

* Rename utils -> Utils

* Fix tests

don't import yargs on files other than main

* Create scripts directory

* Update make_release path

* Fix typo

* Create CONTRIBUTING.md

Co-authored-by: kylon <kylonux@gmail.com>
2020-04-14 15:59:14 +03:00
kylon
9faa0c4846
Added ffmpeg progress bar via fluent-ffmpeg and progress libs (#57)
* Add fluent-ffmpeg back and cross-platform progress bar

* Repo clean up

Move ts files to src, build and output js files to build folder

* Do not print messages when exit code is 0

this is triggered by signal events

Co-authored-by: kylon <kylonux@gmail.com>
2020-04-11 16:12:46 +03:00
snobu
038832c50f Cleanup fluent-ffmpeg dep 2020-04-10 19:38:40 +03:00
kylon
83fecf2894
Fixes and clean up (#51)
* Simplify main

* Fix init

* Cleaner output for the end user

* Fix extractVideoGuid after sync with dev

* TokenCache: Make variable private

nit: switch to import

* Add option to disable video thumbnails

* Create a unique file name to avoid overwrite

* Remove os dependency

* Reimplement simulate

* Update README

Co-authored-by: @kylon
Co-authored-by: @snobu
2020-04-10 19:35:57 +03:00
Luca
51e86ae593 automated update on install 2020-04-10 12:49:09 +02:00
kylon
268cbaba97 Merge branch 'tokencache' of https://github.com/snobu/destreamer into tokencache 2020-04-10 12:35:32 +02:00
snobu
cd52b5cefa Implemented ffmpeg progress bar with first real candidate, ffmpeg-progressbar-cli 2020-04-10 13:26:13 +03:00
kylon
48f12f873f Sync tokencache and dev branches 2020-04-10 12:21:41 +02:00
kylon
cbcd7a0dd3 Import mocha test from dev branch 2020-04-10 02:00:56 +02:00
snobu
23bb92e77a Dropped youtube-dl and replaced with ffmpeg, however passing the URL to ffmpeg is broken 2020-04-09 18:40:56 +03:00
snobu
427b58d97d Less convoluted console coloring 2020-04-09 12:42:14 +03:00
snobu
adda6828a6 Switched to terminal-image for inlining thumbnails 2020-04-08 23:52:48 +03:00
snobu
cc195409ed Early work for token cache implementation 2020-03-30 16:00:05 +03:00
snobu
5de6d1b8e6 Enfore semicolon via eslint rules, some code cleanup 2020-03-30 14:01:47 +03:00
snobu
51650c3f1c Temporary fix for https://npmjs.com/advisories/1179 2020-03-30 12:03:33 +03:00
Luca
1b6ff66dee added axios package 2020-03-26 21:40:56 +01:00
Luca
84d4ff10fc Chenged url fetching method to a class based one
Implemented control on video title in the eventuality it is null or only special characters

Implemented suggestion of issue #11 about sanitizing the title
2020-03-25 16:37:14 +01:00
snobu
005b8e3e31 Some upgrades in packages.json 2020-03-22 23:52:48 +02:00
snobu
69639b5ab6 Fix don't use global TypeScript compiler 2019-10-02 11:45:41 +03:00
snobu
c0dbc3e768 Convert to TypeScript project 2019-10-01 07:36:24 +03:00
snobu
b7d07fafca Public release 2019-03-12 12:37:03 +02:00