From 92fb909c9b4a92a00b0d0da7629e6fb003de281b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 4 Apr 2017 21:37:03 +0200 Subject: Client: Handle NSFW video --- client/src/app/videos/video-watch/webtorrent.service.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/src/app/videos/video-watch/webtorrent.service.ts') diff --git a/client/src/app/videos/video-watch/webtorrent.service.ts b/client/src/app/videos/video-watch/webtorrent.service.ts index 0192167ee..630a5c469 100644 --- a/client/src/app/videos/video-watch/webtorrent.service.ts +++ b/client/src/app/videos/video-watch/webtorrent.service.ts @@ -26,4 +26,8 @@ export class WebTorrentService { remove(magnetUri: string) { return this.client.remove(magnetUri); } + + has(magnetUri: string) { + return this.client.get(magnetUri) !== null; + } } -- cgit v1.2.3