mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
moviebrowser: allow to display record time
Origin commit data
------------------
Branch: ni/coolstream
Commit: dc735caace
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-07-05 (Thu, 05 Jul 2018)
Origin message was:
------------------
- moviebrowser: allow to display record time
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1962,6 +1962,7 @@ moviebrowser.info_prodyear Jahr
|
||||
moviebrowser.info_quality Qualität
|
||||
moviebrowser.info_rating Bewertung
|
||||
moviebrowser.info_recorddate Aufnahmedatum
|
||||
moviebrowser.info_recordtime Aufnahmezeit
|
||||
moviebrowser.info_serie Serie
|
||||
moviebrowser.info_size Dateigröße (MB)
|
||||
moviebrowser.info_spacer Abstandshalter
|
||||
@@ -2012,6 +2013,7 @@ moviebrowser.short_prodyear Jahr
|
||||
moviebrowser.short_quality Qualität
|
||||
moviebrowser.short_rating Vote
|
||||
moviebrowser.short_recorddate Datum
|
||||
moviebrowser.short_recordtime Zeit
|
||||
moviebrowser.short_serie Serie
|
||||
moviebrowser.short_size Größe
|
||||
moviebrowser.short_spacer
|
||||
|
@@ -1962,6 +1962,7 @@ moviebrowser.info_prodyear Year
|
||||
moviebrowser.info_quality Quality
|
||||
moviebrowser.info_rating Rating
|
||||
moviebrowser.info_recorddate Record date
|
||||
moviebrowser.info_recordtime Record time
|
||||
moviebrowser.info_serie Serie
|
||||
moviebrowser.info_size File size (MB)
|
||||
moviebrowser.info_spacer Spacer
|
||||
@@ -2012,6 +2013,7 @@ moviebrowser.short_prodyear Year
|
||||
moviebrowser.short_quality * (quality)
|
||||
moviebrowser.short_rating Vote
|
||||
moviebrowser.short_recorddate Date
|
||||
moviebrowser.short_recordtime Time
|
||||
moviebrowser.short_serie Serie
|
||||
moviebrowser.short_size MB
|
||||
moviebrowser.short_spacer
|
||||
|
@@ -91,7 +91,7 @@ typedef struct dirent64 dirent_struct;
|
||||
#define NUMBER_OF_MOVIES_LAST 40 // This is the number of movies shown in last recored and last played list
|
||||
#define MOVIE_SMSKEY_TIMEOUT 800
|
||||
|
||||
#define MESSAGEBOX_BROWSER_ROW_ITEM_COUNT 22
|
||||
#define MESSAGEBOX_BROWSER_ROW_ITEM_COUNT 23
|
||||
const CMenuOptionChooser::keyval MESSAGEBOX_BROWSER_ROW_ITEM[MESSAGEBOX_BROWSER_ROW_ITEM_COUNT] =
|
||||
{
|
||||
{ MB_INFO_FILENAME, LOCALE_MOVIEBROWSER_INFO_FILENAME },
|
||||
@@ -115,6 +115,7 @@ const CMenuOptionChooser::keyval MESSAGEBOX_BROWSER_ROW_ITEM[MESSAGEBOX_BROWSER_
|
||||
{ MB_INFO_LENGTH, LOCALE_MOVIEBROWSER_INFO_LENGTH },
|
||||
{ MB_INFO_SIZE, LOCALE_MOVIEBROWSER_INFO_SIZE },
|
||||
{ MB_INFO_RATING, LOCALE_MOVIEBROWSER_INFO_RATING },
|
||||
{ MB_INFO_RECORDTIME, LOCALE_MOVIEBROWSER_INFO_RECORDTIME },
|
||||
{ MB_INFO_SPACER, LOCALE_MOVIEBROWSER_INFO_SPACER }
|
||||
};
|
||||
|
||||
@@ -180,6 +181,7 @@ const neutrino_locale_t m_localizedItemName[MB_INFO_MAX_NUMBER+1] =
|
||||
LOCALE_MOVIEBROWSER_SHORT_SIZE,
|
||||
LOCALE_MOVIEBROWSER_SHORT_RATING,
|
||||
LOCALE_MOVIEBROWSER_SHORT_SPACER,
|
||||
LOCALE_MOVIEBROWSER_SHORT_RECORDTIME,
|
||||
NONEXISTANT_LOCALE
|
||||
};
|
||||
|
||||
@@ -206,6 +208,7 @@ const neutrino_locale_t m_localizedItemName[MB_INFO_MAX_NUMBER+1] =
|
||||
#define MB_ROW_WIDTH_SIZE 12
|
||||
#define MB_ROW_WIDTH_RATING 5
|
||||
#define MB_ROW_WIDTH_SPACER 1
|
||||
#define MB_ROW_WIDTH_RECORDTIME 10
|
||||
|
||||
const int m_defaultRowWidth[MB_INFO_MAX_NUMBER+1] =
|
||||
{
|
||||
@@ -231,6 +234,7 @@ const int m_defaultRowWidth[MB_INFO_MAX_NUMBER+1] =
|
||||
MB_ROW_WIDTH_SIZE,
|
||||
MB_ROW_WIDTH_RATING,
|
||||
MB_ROW_WIDTH_SPACER,
|
||||
MB_ROW_WIDTH_RECORDTIME,
|
||||
0 //MB_ROW_WIDTH_MAX_NUMBER
|
||||
};
|
||||
static MI_MOVIE_INFO* playing_info;
|
||||
@@ -3871,7 +3875,6 @@ bool CMovieBrowser::getMovieInfoItem(MI_MOVIE_INFO& movie_info, MB_INFO_ITEM ite
|
||||
*item_string = str_tmp;
|
||||
}
|
||||
break;
|
||||
|
||||
case MB_INFO_RECORDDATE: // = 13,
|
||||
if (show_mode == MB_SHOW_YT) {
|
||||
*item_string = movie_info.ytdate;
|
||||
@@ -3914,7 +3917,15 @@ bool CMovieBrowser::getMovieInfoItem(MI_MOVIE_INFO& movie_info, MB_INFO_ITEM ite
|
||||
case MB_INFO_SPACER: // = 21,
|
||||
*item_string="";
|
||||
break;
|
||||
case MB_INFO_MAX_NUMBER: // = 22
|
||||
case MB_INFO_RECORDTIME: // = 22,
|
||||
if (show_mode == MB_SHOW_RECORDS)
|
||||
{
|
||||
tm_tmp = localtime(&movie_info.file.Time);
|
||||
snprintf(str_tmp, sizeof(str_tmp),"%02d:%02d", tm_tmp->tm_hour, tm_tmp->tm_min);
|
||||
*item_string = str_tmp;
|
||||
}
|
||||
break;
|
||||
case MB_INFO_MAX_NUMBER: // = 23
|
||||
default:
|
||||
*item_string="";
|
||||
result = false;
|
||||
|
@@ -162,7 +162,8 @@ bool (* const sortBy[MB_INFO_MAX_NUMBER+1])(const MI_MOVIE_INFO* a, const MI_MOV
|
||||
&sortBySize, //MB_INFO_SIZE = 19,
|
||||
&sortByRating, //MB_INFO_RATING = 20,
|
||||
NULL, //MB_INFO_SPACER = 21,
|
||||
NULL //MB_INFO_MAX_NUMBER = 22
|
||||
NULL, //MB_INFO_RECORDTIME = 22,
|
||||
NULL //MB_INFO_MAX_NUMBER = 23
|
||||
};
|
||||
|
||||
#endif /*__MB_FUNCTIONS__*/
|
||||
|
@@ -67,7 +67,8 @@ typedef enum
|
||||
MB_INFO_SIZE = 19,
|
||||
MB_INFO_RATING = 20,
|
||||
MB_INFO_SPACER = 21,
|
||||
MB_INFO_MAX_NUMBER = 22 // MUST be allways the last item in the list
|
||||
MB_INFO_RECORDTIME = 22,
|
||||
MB_INFO_MAX_NUMBER = 23 // MUST be allways the last item in the list
|
||||
}MB_INFO_ITEM;
|
||||
|
||||
typedef enum
|
||||
|
@@ -1989,6 +1989,7 @@ typedef enum
|
||||
LOCALE_MOVIEBROWSER_INFO_QUALITY,
|
||||
LOCALE_MOVIEBROWSER_INFO_RATING,
|
||||
LOCALE_MOVIEBROWSER_INFO_RECORDDATE,
|
||||
LOCALE_MOVIEBROWSER_INFO_RECORDTIME,
|
||||
LOCALE_MOVIEBROWSER_INFO_SERIE,
|
||||
LOCALE_MOVIEBROWSER_INFO_SIZE,
|
||||
LOCALE_MOVIEBROWSER_INFO_SPACER,
|
||||
@@ -2039,6 +2040,7 @@ typedef enum
|
||||
LOCALE_MOVIEBROWSER_SHORT_QUALITY,
|
||||
LOCALE_MOVIEBROWSER_SHORT_RATING,
|
||||
LOCALE_MOVIEBROWSER_SHORT_RECORDDATE,
|
||||
LOCALE_MOVIEBROWSER_SHORT_RECORDTIME,
|
||||
LOCALE_MOVIEBROWSER_SHORT_SERIE,
|
||||
LOCALE_MOVIEBROWSER_SHORT_SIZE,
|
||||
LOCALE_MOVIEBROWSER_SHORT_SPACER,
|
||||
|
@@ -1989,6 +1989,7 @@ const char * locale_real_names[] =
|
||||
"moviebrowser.info_quality",
|
||||
"moviebrowser.info_rating",
|
||||
"moviebrowser.info_recorddate",
|
||||
"moviebrowser.info_recordtime",
|
||||
"moviebrowser.info_serie",
|
||||
"moviebrowser.info_size",
|
||||
"moviebrowser.info_spacer",
|
||||
@@ -2039,6 +2040,7 @@ const char * locale_real_names[] =
|
||||
"moviebrowser.short_quality",
|
||||
"moviebrowser.short_rating",
|
||||
"moviebrowser.short_recorddate",
|
||||
"moviebrowser.short_recordtime",
|
||||
"moviebrowser.short_serie",
|
||||
"moviebrowser.short_size",
|
||||
"moviebrowser.short_spacer",
|
||||
|
Reference in New Issue
Block a user