|
1 | 1 | <template> |
2 | 2 | <li> |
3 | | - <div class="bg_img" :style="{ 'background-image': 'url(' + (activity.series ? activity.series.images.art : activity.images.art) + ')' }"> |
| 3 | + <div class="bg_img" :style="{ 'background-image': 'url(' + (activity.channel ? activity.channel.images.art : (activity.series ? activity.series.images.art : activity.images.art)) + ')' }"> |
4 | 4 | <span>{{ activity.playback.user }}</span> |
5 | 5 | <span>{{ activity.playback.state }}</span> |
6 | 6 | </div> |
7 | | - <div class="img" :style="{ 'background-image': 'url(' + (activity.series ? activity.series.images.poster : activity.images.poster) + ')' }"> |
| 7 | + <div class="img" :style="{ 'background-image': 'url(' + (activity.channel ? activity.channel.images.poster : (activity.series ? activity.series.images.poster : activity.images.poster)) + ')' }"></div> |
| 8 | + <div v-if="activity.mediatype == 'live'" class="info" :data-type="activity.mediatype"> |
| 9 | + <img :src="activity.channel.images.logo" /> |
| 10 | + <p> |
| 11 | + <span>Channel:</span> |
| 12 | + {{ activity.channel.title }} |
| 13 | + </p> |
8 | 14 | </div> |
9 | | - <div class="info" :data-type="activity.mediatype"> |
10 | | - <p v-if="activity.mediatype == 'episode'" v-title> |
| 15 | + <div v-if="activity.mediatype == 'episode'" class="info" :data-type="activity.mediatype"> |
| 16 | + <p v-title> |
11 | 17 | <span>Series:</span> |
12 | 18 | {{ activity.series.title }} |
13 | 19 | </p> |
14 | | - <p v-if="activity.mediatype == 'episode'" v-title> |
| 20 | + <p v-title> |
15 | 21 | <span>Episode Title:</span> |
16 | 22 | {{ activity.title }} |
17 | 23 | </p> |
18 | | - <p v-if="activity.mediatype == 'episode'"> |
| 24 | + <p> |
19 | 25 | <span>Season:</span> |
20 | 26 | {{ activity.series.season }} |
21 | 27 | </p> |
22 | | - <p v-if="activity.mediatype == 'episode'"> |
| 28 | + <p> |
23 | 29 | <span>Episode:</span> |
24 | 30 | {{ activity.series.episode }} |
25 | 31 | </p> |
26 | | - <p v-if="activity.mediatype == 'movie'" v-title> |
| 32 | + </div> |
| 33 | + <div v-if="activity.mediatype == 'movie'" class="info" :data-type="activity.mediatype"> |
| 34 | + <p> |
27 | 35 | <span>Movie Title:</span> |
28 | 36 | {{ activity.title }} |
29 | 37 | </p> |
30 | 38 | </div> |
31 | | - <div id="progress"> |
| 39 | + <div v-if="activity.mediatype != 'live'" id="progress"> |
32 | 40 | <span class="progress_text">{{ activity.playback.progress.time | MediaTime((+activity.playback.runtime >= 3600000)) }} / {{ activity.playback.runtime | MediaTime() }}</span> |
33 | 41 | <span class="percent_text">{{ activity.playback.progress.percent + '%' }}</span> |
34 | 42 | <span class="progress" :style="{ 'width': activity.playback.progress.percent + '%'}"></span> |
@@ -102,6 +110,9 @@ div { |
102 | 110 | left: 162px; |
103 | 111 | width: 318px; |
104 | 112 | height: 114px; |
| 113 | + &[data-type="live"] img { |
| 114 | + max-height: 114px; |
| 115 | + } |
105 | 116 | &[data-type="movie"] { |
106 | 117 | top: 145px; |
107 | 118 | } |
|
0 commit comments