mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
Add all server checks to CI - fix lint issues
CI will now run linter, type-checks and tests for the server. All the lint issues have been fixed.
This commit is contained in:
parent
836b174d33
commit
1f4ba73da7
19 changed files with 47 additions and 70 deletions
|
|
@ -21,7 +21,6 @@ import axios from 'axios';
|
|||
import { Job } from 'bull';
|
||||
import exifr from 'exifr';
|
||||
import ffmpeg from 'fluent-ffmpeg';
|
||||
import { readFile } from 'fs/promises';
|
||||
import path from 'path';
|
||||
import sharp from 'sharp';
|
||||
import { Repository } from 'typeorm/repository/Repository';
|
||||
|
|
@ -330,7 +329,7 @@ export class MetadataExtractionProcessor {
|
|||
}
|
||||
|
||||
if (stream.r_frame_rate) {
|
||||
let fpsParts = stream.r_frame_rate.split('/');
|
||||
const fpsParts = stream.r_frame_rate.split('/');
|
||||
|
||||
if (fpsParts.length === 2) {
|
||||
newExif.fps = Math.round(parseInt(fpsParts[0]) / parseInt(fpsParts[1]));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue