mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Update view episode modal to include duration & episode feed modal to include duration & size
This commit is contained in:
		
							parent
							
								
									cb7632b216
								
							
						
					
					
						commit
						c150ed4e98
					
				| @ -35,7 +35,14 @@ | |||||||
|               <widgets-podcast-type-indicator :type="episode.episodeType" /> |               <widgets-podcast-type-indicator :type="episode.episodeType" /> | ||||||
|             </div> |             </div> | ||||||
|             <p v-if="episode.subtitle" class="mb-1 text-sm text-gray-300 line-clamp-2">{{ episode.subtitle }}</p> |             <p v-if="episode.subtitle" class="mb-1 text-sm text-gray-300 line-clamp-2">{{ episode.subtitle }}</p> | ||||||
|             <p class="text-xs text-gray-300">Published {{ episode.publishedAt ? $dateDistanceFromNow(episode.publishedAt) : 'Unknown' }}</p> |             <div class="flex items-center space-x-2"> | ||||||
|  |               <!-- published --> | ||||||
|  |               <p class="text-xs text-gray-300 w-40">Published {{ episode.publishedAt ? $dateDistanceFromNow(episode.publishedAt) : 'Unknown' }}</p> | ||||||
|  |               <!-- duration --> | ||||||
|  |               <p v-if="episode.duration && !isNaN(episode.duration) && Number(episode.duration) > 0" class="text-xs text-gray-300 min-w-28">{{ $strings.LabelDuration }}: {{ $elapsedPretty(Number(episode.duration)) }}</p> | ||||||
|  |               <!-- size --> | ||||||
|  |               <p v-if="episode.enclosure?.length && !isNaN(episode.enclosure.length) && Number(episode.enclosure.length) > 0" class="text-xs text-gray-300">{{ $strings.LabelSize }}: {{ $bytesPretty(Number(episode.enclosure.length)) }}</p> | ||||||
|  |             </div> | ||||||
|           </div> |           </div> | ||||||
|         </div> |         </div> | ||||||
|       </div> |       </div> | ||||||
|  | |||||||
| @ -34,6 +34,12 @@ | |||||||
|             {{ audioFileSize }} |             {{ audioFileSize }} | ||||||
|           </p> |           </p> | ||||||
|         </div> |         </div> | ||||||
|  |         <div class="grow"> | ||||||
|  |           <p class="font-semibold text-xs mb-1">{{ $strings.LabelDuration }}</p> | ||||||
|  |           <p class="mb-2 text-xs"> | ||||||
|  |             {{ audioFileDuration }} | ||||||
|  |           </p> | ||||||
|  |         </div> | ||||||
|       </div> |       </div> | ||||||
|     </div> |     </div> | ||||||
|   </modals-modal> |   </modals-modal> | ||||||
| @ -90,6 +96,10 @@ export default { | |||||||
| 
 | 
 | ||||||
|       return this.$bytesPretty(size) |       return this.$bytesPretty(size) | ||||||
|     }, |     }, | ||||||
|  |     audioFileDuration() { | ||||||
|  |       const duration = this.episode.duration || 0 | ||||||
|  |       return this.$elapsedPretty(duration) | ||||||
|  |     }, | ||||||
|     bookCoverAspectRatio() { |     bookCoverAspectRatio() { | ||||||
|       return this.$store.getters['libraries/getBookCoverAspectRatio'] |       return this.$store.getters['libraries/getBookCoverAspectRatio'] | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user