Add thumbnail / preview generation from url on the fly (#2646)
authorKim <1877318+kimsible@users.noreply.github.com>
Mon, 20 Apr 2020 08:28:38 +0000 (10:28 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Apr 2020 08:28:38 +0000 (10:28 +0200)
commitb1770a0af464ad6350d156245b1abcc1395e142e
tree0712a2cd912ecd3f41084134d513920a6f723fb6
parent8f31261f77c6e521917b3f629b223ccc8df50960
Add thumbnail / preview generation from url on the fly (#2646)

* Add thumbnails generation on the fly to URL import

* Display generated preview to import first edit

* Use ternary to get type inference

* Move preview/thumbnail test just after import

Co-authored-by: kimsible <kimsible@users.noreply.github.com>
client/src/app/videos/+video-edit/video-add-components/video-import-url.component.ts
server/controllers/api/videos/import.ts
server/lib/job-queue/handlers/video-import.ts
server/tests/api/videos/video-imports.ts
server/tests/fixtures/video_import_preview.jpg [new file with mode: 0644]
server/tests/fixtures/video_import_thumbnail.jpg [new file with mode: 0644]