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
""" | |
Quick script to offset subtitles in .srt files. Didn't | |
Google first to realize that this exists: | |
https://github.com/byroot/pysrt | |
Oh well. | |
""" | |
import re |
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
const convertStreamToBuffer = async ( | |
stream: NodeJS.ReadableStream | |
): Promise<Buffer> => { | |
return new Promise((resolve, reject) => { | |
let buffers: Uint8Array[] = []; | |
stream.on("data", (data) => { | |
buffers.push(data); | |
}); |
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
{"lastUpload":"2021-10-14T19:48:42.588Z","extensionVersion":"v3.4.3"} |