-import { Account } from '../../../../../shared/models/accounts'
+import { Account } from '../../../../../shared/models/actors'
import { Video } from '../../shared/video/video.model'
import { AuthUser } from '../../core'
import {
privacy: VideoPrivacy
privacyLabel: string
account: Account
+ likesPercent: number
+ dislikesPercent: number
constructor (hash: VideoDetailsServerModel) {
super(hash)
this.files = hash.files
this.channel = hash.channel
this.account = hash.account
+ this.tags = hash.tags
+
+ this.likesPercent = (this.likes / (this.likes + this.dislikes)) * 100
+ this.dislikesPercent = (this.dislikes / (this.likes + this.dislikes)) * 100
}
getAppropriateMagnetUri (actualDownloadSpeed = 0) {