mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-20 21:23:21 +03:00
Unified file card now supports small and medium size
Duration styling/position updated and added download date time
This commit is contained in:
@@ -17,6 +17,7 @@ export class UnifiedFileCardComponent implements OnInit {
|
||||
use_youtubedl_archive = false;
|
||||
|
||||
@Input() file_obj = null;
|
||||
@Input() card_size = 'medium';
|
||||
@Output() goToFile = new EventEmitter<any>();
|
||||
@Output() goToSubscription = new EventEmitter<any>();
|
||||
|
||||
@@ -59,6 +60,9 @@ export class UnifiedFileCardComponent implements OnInit {
|
||||
}
|
||||
|
||||
function fancyTimeFormat(time) {
|
||||
if (typeof time === 'string') {
|
||||
return time;
|
||||
}
|
||||
// Hours, minutes and seconds
|
||||
const hrs = ~~(time / 3600);
|
||||
const mins = ~~((time % 3600) / 60);
|
||||
|
||||
Reference in New Issue
Block a user