Skip to content

Commit

Permalink
✔ Coba - Coba ~
Browse files Browse the repository at this point in the history
  • Loading branch information
bifeldy committed Oct 25, 2023
1 parent aa817d7 commit db3488b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/fansubid/server/main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/api/services/discord.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class DiscordService {
// async recoverAndFindMessageByAttachmentCrawl(): Promise<void> {
// try {
// const ddl = await this.ddlFileRepo.query(`
// SELECT msg_id, max(chunk_idx) AS max
// SELECT msg_id, MAX(chunk_idx) AS max
// FROM public.ddl_file
// WHERE msg_id IN (
// SELECT DISTINCT msg_id
Expand Down
7 changes: 6 additions & 1 deletion src/api/services/mkv-extract.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,14 @@ export class MkvExtractService {
const line = val[i];
const lineTimestamp = val[i + 1];
const chunkTimestamp = val[i + 2];
const duration = val[i + 3];
const lineParts = isASS && line.split(',');
const lineIndex = isASS ? lineParts[0] : (i - 1) / 4;
let duration = val[i + 3];
if (typeof duration === 'string') {
// Missing Duration
duration = 0;
i--;
}
const startTimestamp = formatFn(chunkTimestamp + lineTimestamp);
const endTimestamp = formatFn(chunkTimestamp + lineTimestamp + duration);
let fixedLine: any;
Expand Down

0 comments on commit db3488b

Please sign in to comment.