mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-25 06:00:56 +03:00
Added resolution and audio bitrate to video info dialog
This commit is contained in:
@@ -2425,6 +2425,12 @@ components:
|
||||
type: string
|
||||
registered:
|
||||
type: number
|
||||
height:
|
||||
type: number
|
||||
description: In pixels, only for videos
|
||||
abr:
|
||||
type: number
|
||||
description: In Kbps
|
||||
Playlist:
|
||||
required:
|
||||
- uids
|
||||
|
||||
@@ -32,4 +32,12 @@ export type DatabaseFile = {
|
||||
local_view_count?: number;
|
||||
sub_id?: string;
|
||||
registered?: number;
|
||||
/**
|
||||
* In pixels, only for videos
|
||||
*/
|
||||
height?: number;
|
||||
/**
|
||||
* In Kbps
|
||||
*/
|
||||
abr?: number;
|
||||
};
|
||||
@@ -47,6 +47,14 @@
|
||||
|
||||
<mat-divider style="margin-bottom: 16px;"></mat-divider>
|
||||
|
||||
<div *ngIf="!new_file.isAudio" class="info-item">
|
||||
<div class="info-item-label"><strong><ng-container i18n="Video resolution property">Resolution:</ng-container> </strong></div>
|
||||
<div class="info-item-value">{{new_file.height ? new_file.height + 'p' : 'N/A'}}</div>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<div class="info-item-label"><strong><ng-container i18n="Video audio bitrate property">Audio bitrate:</ng-container> </strong></div>
|
||||
<div class="info-item-value">{{new_file.abr ? new_file.abr + ' Kbps' : 'N/A'}}</div>
|
||||
</div>
|
||||
<div class="info-item">
|
||||
<div class="info-item-label"><strong><ng-container i18n="Video file size property">File size:</ng-container> </strong></div>
|
||||
<div class="info-item-value">{{new_file.size ? filesize(new_file.size) : 'N/A'}}</div>
|
||||
|
||||
@@ -361,12 +361,16 @@ export class PlayerComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
}
|
||||
|
||||
openFileInfoDialog(): void {
|
||||
this.dialog.open(VideoInfoDialogComponent, {
|
||||
const dialogRef = this.dialog.open(VideoInfoDialogComponent, {
|
||||
data: {
|
||||
file: this.db_file,
|
||||
},
|
||||
minWidth: '50vw'
|
||||
})
|
||||
});
|
||||
|
||||
dialogRef.afterClosed().subscribe(() => {
|
||||
this.db_file = dialogRef.componentInstance.file;
|
||||
});
|
||||
}
|
||||
|
||||
setPlaybackTimestamp(time: number): void {
|
||||
|
||||
@@ -641,7 +641,7 @@
|
||||
</context-group>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/dialogs/video-info-dialog/video-info-dialog.component.html</context>
|
||||
<context context-type="linenumber">62</context>
|
||||
<context context-type="linenumber">70</context>
|
||||
</context-group>
|
||||
<note priority="1" from="description">Close</note>
|
||||
</trans-unit>
|
||||
@@ -745,7 +745,7 @@
|
||||
</context-group>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/dialogs/video-info-dialog/video-info-dialog.component.html</context>
|
||||
<context context-type="linenumber">63</context>
|
||||
<context context-type="linenumber">71</context>
|
||||
</context-group>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/settings/settings.component.html</context>
|
||||
@@ -2154,11 +2154,27 @@
|
||||
</context-group>
|
||||
<note priority="1" from="description">Local view count</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="9fa37704969eeebd496a172c5077370f569df3ae" datatype="html">
|
||||
<source>Resolution:</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/dialogs/video-info-dialog/video-info-dialog.component.html</context>
|
||||
<context context-type="linenumber">51</context>
|
||||
</context-group>
|
||||
<note priority="1" from="description">Video resolution property</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="9fc54db2830fbbd332b1adebe28e9283069107ef" datatype="html">
|
||||
<source>Audio bitrate:</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/dialogs/video-info-dialog/video-info-dialog.component.html</context>
|
||||
<context context-type="linenumber">55</context>
|
||||
</context-group>
|
||||
<note priority="1" from="description">Video audio bitrate property</note>
|
||||
</trans-unit>
|
||||
<trans-unit id="109c6f4a5e46efb933612ededfaf52a13178b7e0" datatype="html">
|
||||
<source>File size:</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/dialogs/video-info-dialog/video-info-dialog.component.html</context>
|
||||
<context context-type="linenumber">51</context>
|
||||
<context context-type="linenumber">59</context>
|
||||
</context-group>
|
||||
<note priority="1" from="description">Video file size property</note>
|
||||
</trans-unit>
|
||||
@@ -2166,7 +2182,7 @@
|
||||
<source>Path:</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/dialogs/video-info-dialog/video-info-dialog.component.html</context>
|
||||
<context context-type="linenumber">55</context>
|
||||
<context context-type="linenumber">63</context>
|
||||
</context-group>
|
||||
<note priority="1" from="description">Video path property</note>
|
||||
</trans-unit>
|
||||
@@ -2352,18 +2368,18 @@
|
||||
<source>Failed to get file information from the server.</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/player/player.component.ts</context>
|
||||
<context context-type="linenumber">150</context>
|
||||
<context context-type="linenumber">149</context>
|
||||
</context-group>
|
||||
</trans-unit>
|
||||
<trans-unit id="6789263921624845085" datatype="html">
|
||||
<source>Failed to load playlist!</source>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/player/player.component.ts</context>
|
||||
<context context-type="linenumber">187</context>
|
||||
<context context-type="linenumber">186</context>
|
||||
</context-group>
|
||||
<context-group purpose="location">
|
||||
<context context-type="sourcefile">src/app/player/player.component.ts</context>
|
||||
<context context-type="linenumber">190</context>
|
||||
<context context-type="linenumber">189</context>
|
||||
</context-group>
|
||||
</trans-unit>
|
||||
<trans-unit id="82421c3e46a0453a70c42900eab51d58d79e6599" datatype="html">
|
||||
|
||||
Reference in New Issue
Block a user