]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/shared/video.service.ts
Client: add share button
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / shared / video.service.ts
index ad855753344a2f289a2713bdda9f46c8b5b62062..b1f6880954d95a8ce309bd53260b140dde231f69 100644 (file)
@@ -22,6 +22,7 @@ export class VideoService {
   getVideo(id: string): Observable<Video> {
     return this.http.get(VideoService.BASE_VIDEO_URL + id)
                     .map(this.restExtractor.extractDataGet)
+                    .map(video_hash => new Video(video_hash))
                     .catch((res) => this.restExtractor.handleError(res));
   }