Commit graph

153 commits

Author SHA1 Message Date
Adrian Calinescu
e35ab6a9df
Adding temporary bootstrapers until we move to single binary releases (#63) 2020-04-16 19:45:49 +03:00
kylon
3b48221d27
Delete video file on SIGINT too and silence ENOENT error (#67)
Co-authored-by: kylon <kylonux@gmail.com>
2020-04-16 19:36:36 +03:00
kylon
d89c0eea8c
Fix progress bar, remove temp file on ffmpeg error (#66)
* Delete the video file on ffmpeg error

* rework chunk calculation (with more tests it turns out it was not good for all durations)

Co-authored-by: kylon <kylonux@gmail.com>
2020-04-16 19:21:02 +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
snobu
05c36fe718 Temporary fix for exit code 0 2020-04-11 17:19:53 +03:00
snobu
58d8a872b8 We lost the issue template. Re-adding. 2020-04-11 16:39:21 +03:00
snobu
7da49197b3 Fix typo chuncks -> chunks 2020-04-11 16:19:10 +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
lukaarma
d489b02d03
Created proper error logging (#55)
* changes in the evaluation of sessionInfo

* added Errors struct

* changed error handling if FFmpeg not present

* fixed error loggin thanks to the new Errors struct

* minor fix after changes in sanitizeUrls

* fix for succsesful execution and unknown code
2020-04-11 11:27:48 +03:00
lukaarma
b5df2a83b1
changes in the evaluation of sessionInfo (#54) 2020-04-10 23:18:13 +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
lukaarma
177c3dcf71
Login fixes (#50)
* automated update on install

* changed function name to be more significant

* Fixed the login procedure

-It's now initiated from a video url
-The login is done when we detect that the initial video page has loaded

* Minor fixes
- changed variable to camelCase
- added an exit log
2020-04-10 19:20:55 +03:00
Adrian Calinescu
2dd1a87905
Merge pull request #49 from lukaarma/tokencache
Minor fixes
2020-04-10 15:11:09 +03:00
Luca
b3fd6544cc changed function name to be more significant 2020-04-10 12:59:09 +02: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
65ecc54a05 Fix comment 2020-04-10 13:31:44 +03:00
snobu
a9ac46f3e1 Added comment on locating ffmpeg-bar 2020-04-10 13:29:22 +03: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
snobu
f534ca160b Further youtube-dl cleanup 2020-04-10 12:53:34 +03:00
snobu
b9c3aa3a0e Fix updated README and fix indenting 2020-04-10 12:33:06 +03:00
snobu
db950e8f80 Fix comment for bizarre escapes in access token for ffmpeg 2020-04-10 11:27:08 +03:00
Adrian Calinescu
2afe2d4f1c
Merge pull request #47 from kylon/tokencache
Merge Puppeteer mocha test from dev branch
2020-04-10 11:02:48 +03:00
kylon
cbcd7a0dd3 Import mocha test from dev branch 2020-04-10 02:00:56 +02:00
snobu
1e97bde964 Tidy up ffmpeg output. Needs more work. 2020-04-09 20:32:05 +03:00
snobu
ab72af9651 Fix ffmpeg arguments 2020-04-09 20:14:05 +03: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
a6bfd54bfd Added eslint rule: prefer single quotes when possible, prefer double to escaping 2020-04-09 12:48:49 +03:00
snobu
427b58d97d Less convoluted console coloring 2020-04-09 12:42:14 +03:00
snobu
be783e84e4 Remove unused imports 2020-04-09 11:35:14 +03:00
snobu
adda6828a6 Switched to terminal-image for inlining thumbnails 2020-04-08 23:52:48 +03:00
snobu
388ec0c9a3 Fix line breaks for ffmpeg cmd 2020-04-08 12:06:26 +03:00
snobu
1fc80d8366 Will thumbnails render on Windows? 2020-04-08 11:26:02 +03:00
snobu
a48812cb58 Moved things around 2020-04-08 09:20:31 +03:00
snobu
9eb7c0e5be Added .thumbnail.png to gitignore 2020-04-07 11:34:12 +03:00
snobu
f47897c6e6 Added render video thumbnail inline in the console 2020-04-06 19:56:19 +03:00
snobu
3314cc08b5 Fix warnings in TokenCache 2020-04-06 14:59:37 +03:00
snobu
7c32b2f310 Fix error messages from TokenCache 2020-04-06 13:30:35 +03:00
snobu
013bc194f7 Cleanup tsconfig.json 2020-04-06 12:25:03 +03:00
snobu
0386bc0a59 Fix eslint no unused vars rule 2020-04-06 12:20:08 +03:00
snobu
c48e4c54ca Mid-apocalypse working release with token cache 2020-04-06 12:13:48 +03:00
snobu
73aeb92e66 Mid-apocalypse progress 2020-04-05 17:20:10 +03:00
snobu
37d596b4f0 Pulled types separately 2020-04-03 21:43:02 +03:00
snobu
6091a6952e For real this time 2020-04-01 01:04:46 +03:00
snobu
fc50016ba1 Big changes 2020-04-01 01:03:45 +03:00
snobu
b20bbe0b5e Still a way long to go 2020-03-31 12:41:21 +03:00
snobu
7c0a2b53ce We need to move the interactive logon to its own method 2020-03-30 16:15:10 +03:00
snobu
cc195409ed Early work for token cache implementation 2020-03-30 16:00:05 +03:00