getChapterNames

- remove identifier from segmentGen
- add multiGenRandomValue
- add videoInfo query
This commit is contained in:
Michael C
2023-09-27 23:53:18 -04:00
parent 7364499f11
commit 726983bb9b
5 changed files with 55 additions and 57 deletions

View File

@@ -39,3 +39,9 @@ export const insertUsernameBulk = async (db: IDatabase, users: usernameUserArray
for (const user of Object.values(users))
await insertUsername(db, user.pubID, user.username, false);
};
// videoInfo
export const insertVideoInfo = async (db: IDatabase, videoID: string, channelID: string, title = "", published = 0) => {
const query = 'INSERT INTO "videoInfo" ("videoID", "channelID", "title", "published") VALUES(?, ?, ?, ?)';
await db.prepare("run", query, [videoID, channelID, title, published]);
};