-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[server/generate_once] write sessionData caches to file (#29)
* Create a simple CONTRIBUTING.md * add a newline * [server/generate_once] Cache sessionData to file - [server/generate_once] Better logging - [server/generate_once] Parse date with new Date() - [server/session_manager] add exporting interface YoutubeSessionDataCaches - [server/session_manager] add private property TOKEN_TTL_HOURS to SessionManager - [server/session_manager] add public method cleanupCaches, getYoutubeSessionDataCaches(boolean), setYoutubeSessionDataCaches(YoutubeSessionDataCaches) - [server/session_manager+generate_once] automatically cleanup caches - [server/session_manager] rename private property youtubeSessionData to youtubeSessionDataCaches * Revert "Create a simple CONTRIBUTING.md" This reverts commit dc227b2. modified: CONTRIBUTING.md * revert * Apply suggestions from code review fix `Conversion of type 'Date' to type 'string' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.ts(2352)` Co-authored-by: Brian Le <[email protected]> * fix: Conversion of type 'Date' to type 'string' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.ts(2352) * use __dirname/cache.json as cache path Co-authored-by: Brian Le <[email protected]> * Refactor cache parsing * Update server/src/generate_once.ts * Update server/src/generate_once.ts Co-authored-by: N/Ame <[email protected]> * Update server/src/generate_once.ts Co-authored-by: N/Ame <[email protected]> * visitorIdentifier => visitIdentifier * linting * catch and log error when writing cache - use independent `log` instead of using `sessioinManager.log` * use console.warn always log the script's stderr output * remove trailing newlines * [main] refactor: rename visitorIdentifier -> visitIdentifier --------- Co-authored-by: Brian Le <[email protected]>
- Loading branch information
1 parent
214f524
commit 5bc73a9
Showing
5 changed files
with
118 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,4 @@ plugin/**.pyo | |
# yt-dlp source code | ||
|
||
**/tmp/ | ||
**/cache.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters