Moving Videos Comments Statistics to their own segment.

This commit is contained in:
Roland 2024-04-14 13:15:00 -06:00
parent ba2dd6dd11
commit 278606f031
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -4,8 +4,8 @@ import {
APIButton,
CardLink,
CardPoster,
defaultSearchOrder,
defaultFileOrder,
defaultSearchOrder,
Duration,
encodeMediaPath,
ErrorMessage,
@ -238,6 +238,8 @@ function VideosStatistics() {
{key: 'month', label: 'Downloads Past Month'},
{key: 'year', label: 'Downloads Past Year'},
{key: 'sum_duration', label: 'Total Duration'},
];
const commentsNames = [
{key: 'have_comments', label: 'Have Comments'},
{key: 'no_comments', label: 'Missing Comments'},
{key: 'failed_comments', label: 'Failed Comments'},
@ -267,6 +269,7 @@ function VideosStatistics() {
return <>
{buildSegment('Videos', videoNames, videos)}
{buildSegment('Video Comments', commentsNames, videos)}
{buildSegment('Historical Video', historicalNames, historical)}
{buildSegment('Channels', channelNames, channels)}
</>