Commit graph

7 commits

Author SHA1 Message Date
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
1f6870128b
Add newline before return and mandate curly braces (#98) 2020-05-18 22:27:43 +03:00
snobu
c11c9b6334 Breaking changes in CLI params 2020-04-16 19:47:30 +03:00
snobu
a6bfd54bfd Added eslint rule: prefer single quotes when possible, prefer double to escaping 2020-04-09 12:48:49 +03:00
snobu
0386bc0a59 Fix eslint no unused vars rule 2020-04-06 12:20:08 +03:00
snobu
5de6d1b8e6 Enfore semicolon via eslint rules, some code cleanup 2020-03-30 14:01:47 +03:00
snobu
005b8e3e31 Some upgrades in packages.json 2020-03-22 23:52:48 +02:00