Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aria2c, but for real now #220

Draft
wants to merge 69 commits into
base: v3.0
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
0cbc962
first draft of DownloadManager
lukaarma Sep 5, 2020
5334293
first draft of Decrypter
lukaarma Sep 5, 2020
67573fc
installed WebSocket and updated Tmp
lukaarma Sep 5, 2020
685fa27
added debug and best quality flags
lukaarma Sep 5, 2020
0d8b420
changed UserAgent version
lukaarma Sep 5, 2020
6c0e37a
created WebSocket/Aria2c errors
lukaarma Sep 5, 2020
29a6fab
minor formatting changes
lukaarma Sep 5, 2020
d29bd54
very simple test for SIGINT
lukaarma Sep 5, 2020
5350bc3
added debug logging
lukaarma Sep 5, 2020
0c65ff7
added parsing of m3u8 file down to a list of links
lukaarma Sep 5, 2020
903f2bf
updated destreamer to use the new download method
lukaarma Sep 5, 2020
1dff41c
Merge branch 'master' of https://github.com/snobu/destreamer into ari…
lukaarma Sep 7, 2020
6e874f5
exclude debug launch config
lukaarma Sep 7, 2020
9e25870
updated packages
lukaarma Sep 7, 2020
d037b7c
renamed and finished decrypter
lukaarma Sep 9, 2020
8b61f86
added debug logging
lukaarma Sep 9, 2020
aa21e54
added quality option
lukaarma Sep 9, 2020
a185f51
fixed typo and added comment
lukaarma Sep 9, 2020
96f4c90
- removed useless function/properties
lukaarma Sep 9, 2020
ec099e9
- fixed progress bar not updating
lukaarma Sep 9, 2020
f1476ff
done decryption/merging of video/audio/sub traks
lukaarma Sep 9, 2020
a93b328
updating comments
lukaarma Sep 9, 2020
e9dea14
removed bug in quality selection
lukaarma Sep 9, 2020
16a8532
removed useless old code
lukaarma Sep 9, 2020
6f082e1
marked unused code
lukaarma Sep 9, 2020
796753f
change user agent
lukaarma Sep 12, 2020
6c8628e
code cleanup
lukaarma Sep 19, 2020
7cab44a
added debug statement
lukaarma Sep 19, 2020
9453458
installed portfinder
lukaarma Sep 19, 2020
3e472f9
created error for no port aviable
lukaarma Sep 19, 2020
8df5155
implemented port finding
lukaarma Sep 19, 2020
c9c9fef
removed random useless linting test
lukaarma Sep 19, 2020
af4725c
fixed linting errors
lukaarma Sep 19, 2020
38edbad
check for aria existance
lukaarma Sep 20, 2020
482a506
fixed bug on hanging on shutdown
lukaarma Sep 20, 2020
95c7150
improved shutdown sequence
lukaarma Sep 20, 2020
14cfe7c
typo fix
lukaarma Sep 24, 2020
c7e0415
process.exit on uncaught exceptions
lukaarma Sep 24, 2020
502565d
better webSocket initialization
lukaarma Sep 24, 2020
020518e
minor comments and variables name changes
lukaarma Sep 25, 2020
331efd9
fix for *nix platforms
lukaarma Sep 25, 2020
b89e041
workaround for listeners not removed
lukaarma Sep 27, 2020
8848f29
Update README.md
rohit404404 Oct 3, 2020
389be33
Update README.md
rohit404404 Oct 3, 2020
ec24ff9
Merge pull request #242 from rohit404404/patch-1
lukaarma Oct 3, 2020
22968f4
Misc fixes (#244)
lukaarma Oct 8, 2020
15c4203
Update report-trouble.md (#240)
lukaarma Oct 8, 2020
2a3c3eb
fixed buffer maxLenght exceded on aria2c daemon
lukaarma Oct 9, 2020
3249759
Merge branch 'master' of https://github.com/snobu/destreamer into ari…
lukaarma Oct 11, 2020
85f3bea
added access token refresh logic (closes #255)
lukaarma Oct 11, 2020
41206a9
fixed stupid session refreshing typo
lukaarma Oct 11, 2020
1763dc8
changed exec in favour of spawn for aria2c
lukaarma Oct 11, 2020
a179bdc
Update Errors.ts
rpaulucci3 Oct 17, 2020
eacb2b6
Merge pull request #265 from rpaulucci3/patch-1
lukaarma Oct 17, 2020
4a45c68
Fix group download, added 100 video limit
snobu Nov 14, 2020
0f2d902
Fix verbose logging when we get JSON back
snobu Nov 14, 2020
461df7b
Fix for group download IRL this time
snobu Nov 14, 2020
0b4c900
Update README.md
snobu Dec 2, 2020
ddafc50
fixed parsing for group with more than 100 videos
lukaarma Dec 3, 2020
08364ed
new version of error retry, couldn't test it
lukaarma Dec 3, 2020
6d28b3c
updated all packages
lukaarma Dec 3, 2020
c1a0994
add aria2 to prereqs
fulminemizzega Dec 7, 2020
66a7f60
fix quotes in input file example in README.md
fulminemizzega Dec 7, 2020
195d0dd
Added `aria2` prerequisite
pastacolsugo Dec 26, 2020
1e8db6f
Merge pull request #303 from pastacolsugo/patch-1
lukaarma Jan 8, 2021
6d8f3c6
Fix return HTTP 403 reason with or without verbose (#316)
snobu Jan 26, 2021
3fe64d1
Merge branch 'aria2c_forRealNow' into patch-1
lukaarma Feb 9, 2021
cea18bb
Merge pull request #289 from fulminemizzega/patch-1
lukaarma Feb 9, 2021
ffd76ba
Fix a small typo in terminal output (#363)
MahmoudAFarag Apr 7, 2021
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added debug logging
  • Loading branch information
lukaarma committed Sep 9, 2020
commit 8b61f86639509812337efa708e9349a29c966641
8 changes: 8 additions & 0 deletions src/ApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ export class ApiClient {
'Authorization': 'Bearer ' + this.session?.AccessToken
};

logger.debug(
'[ApiClient.callApi]\n' +
'path: ' + path + '\n' +
'method: ' + method + '\n' +
'payload: ' + payload + '\n'
);

return this.axiosInstance?.request({
method: method,
headers: headers,
Expand All @@ -88,6 +95,7 @@ export class ApiClient {
};

logger.debug(
'[ApiClient.callUrl]\n' +
'url: ' + url + '\n' +
'method: ' + method + '\n' +
'payload: ' + payload + '\n' +
Expand Down