From a52b6a2c16b36b3ec3e4c2ebc99592d838d0a3b3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 27 Sep 2018 13:38:32 +0200 Subject: [PATCH] Add Streaming Title setting --- configuration.h | 1 + intl/msg_hash_ar.h | 2 ++ intl/msg_hash_chs.h | 2 ++ intl/msg_hash_cht.h | 2 ++ intl/msg_hash_de.h | 2 ++ intl/msg_hash_eo.h | 2 ++ intl/msg_hash_es.h | 2 ++ intl/msg_hash_fr.h | 2 ++ intl/msg_hash_it.h | 2 ++ intl/msg_hash_ja.h | 2 ++ intl/msg_hash_ko.h | 2 ++ intl/msg_hash_lbl.h | 2 ++ intl/msg_hash_nl.h | 2 ++ intl/msg_hash_pl.h | 2 ++ intl/msg_hash_pt_br.h | 2 ++ intl/msg_hash_pt_pt.h | 2 ++ intl/msg_hash_ru.h | 2 ++ intl/msg_hash_us.h | 2 ++ intl/msg_hash_vn.h | 2 ++ menu/menu_displaylist.c | 4 ++++ menu/menu_setting.c | 14 ++++++++++++++ msg_hash.h | 1 + 22 files changed, 56 insertions(+) diff --git a/configuration.h b/configuration.h index c873a8d094..8bee9de4a6 100644 --- a/configuration.h +++ b/configuration.h @@ -538,6 +538,7 @@ typedef struct settings char directory_thumbnails[PATH_MAX_LENGTH]; char directory_menu_config[PATH_MAX_LENGTH]; char directory_menu_content[PATH_MAX_LENGTH]; + char streaming_title[PATH_MAX_LENGTH]; } paths; bool modified; diff --git a/intl/msg_hash_ar.h b/intl/msg_hash_ar.h index 5d4d0ffc6c..4113ed4570 100644 --- a/intl/msg_hash_ar.h +++ b/intl/msg_hash_ar.h @@ -3653,3 +3653,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_chs.h b/intl/msg_hash_chs.h index 80f308ad6a..876ab7be56 100644 --- a/intl/msg_hash_chs.h +++ b/intl/msg_hash_chs.h @@ -3437,3 +3437,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_cht.h b/intl/msg_hash_cht.h index 50e3d17f4c..38c91a467e 100644 --- a/intl/msg_hash_cht.h +++ b/intl/msg_hash_cht.h @@ -3429,3 +3429,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_de.h b/intl/msg_hash_de.h index 62984378c9..8a98713d73 100644 --- a/intl/msg_hash_de.h +++ b/intl/msg_hash_de.h @@ -3539,3 +3539,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_eo.h b/intl/msg_hash_eo.h index a4f265f648..21982658f2 100644 --- a/intl/msg_hash_eo.h +++ b/intl/msg_hash_eo.h @@ -3304,3 +3304,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_es.h b/intl/msg_hash_es.h index cdf9ab8eaa..d9382293dc 100644 --- a/intl/msg_hash_es.h +++ b/intl/msg_hash_es.h @@ -7559,3 +7559,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_fr.h b/intl/msg_hash_fr.h index ac1b1555b5..f070b737dd 100644 --- a/intl/msg_hash_fr.h +++ b/intl/msg_hash_fr.h @@ -3463,3 +3463,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_it.h b/intl/msg_hash_it.h index bca6a4bf45..f11e822530 100644 --- a/intl/msg_hash_it.h +++ b/intl/msg_hash_it.h @@ -3523,3 +3523,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_ja.h b/intl/msg_hash_ja.h index 0b3dc7027b..a4bd01113b 100644 --- a/intl/msg_hash_ja.h +++ b/intl/msg_hash_ja.h @@ -3926,3 +3926,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_ko.h b/intl/msg_hash_ko.h index 2cb15c3ec6..bd5e94c9d6 100644 --- a/intl/msg_hash_ko.h +++ b/intl/msg_hash_ko.h @@ -3424,3 +3424,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_lbl.h b/intl/msg_hash_lbl.h index 3dc2422412..a66314de60 100644 --- a/intl/msg_hash_lbl.h +++ b/intl/msg_hash_lbl.h @@ -1701,3 +1701,5 @@ MSG_HASH(MENU_ENUM_LABEL_YOUTUBE_STREAM_KEY, "youtube_stream_key") MSG_HASH(MENU_ENUM_LABEL_STREAMING_MODE, "streaming_mode") +MSG_HASH(MENU_ENUM_LABEL_STREAMING_TITLE, + "streaming_title") diff --git a/intl/msg_hash_nl.h b/intl/msg_hash_nl.h index 832ce22ca4..7e5e4a3a28 100644 --- a/intl/msg_hash_nl.h +++ b/intl/msg_hash_nl.h @@ -3298,3 +3298,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_pl.h b/intl/msg_hash_pl.h index d00b566130..c7666db3b4 100644 --- a/intl/msg_hash_pl.h +++ b/intl/msg_hash_pl.h @@ -3726,3 +3726,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_pt_br.h b/intl/msg_hash_pt_br.h index 799a453ae8..f39fa8e5cf 100644 --- a/intl/msg_hash_pt_br.h +++ b/intl/msg_hash_pt_br.h @@ -7542,3 +7542,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_pt_pt.h b/intl/msg_hash_pt_pt.h index c2e7238914..d43afc0ca5 100644 --- a/intl/msg_hash_pt_pt.h +++ b/intl/msg_hash_pt_pt.h @@ -3390,3 +3390,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_ru.h b/intl/msg_hash_ru.h index 4be91f3cb5..ae068b3fd1 100644 --- a/intl/msg_hash_ru.h +++ b/intl/msg_hash_ru.h @@ -3593,3 +3593,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index 9d843ed4aa..e45e0e8ddc 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -7580,3 +7580,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/intl/msg_hash_vn.h b/intl/msg_hash_vn.h index 1c14c1f9aa..8e9923f913 100644 --- a/intl/msg_hash_vn.h +++ b/intl/msg_hash_vn.h @@ -3461,3 +3461,5 @@ MSG_HASH(MENU_ENUM_LABEL_VALUE_YOUTUBE_STREAM_KEY, "YouTube Stream Key") MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_MODE, "Streaming Mode") +MSG_HASH(MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "Title of Stream") diff --git a/menu/menu_displaylist.c b/menu/menu_displaylist.c index fceea6f21c..4e5566b464 100644 --- a/menu/menu_displaylist.c +++ b/menu/menu_displaylist.c @@ -7075,6 +7075,10 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data) MENU_ENUM_LABEL_STREAMING_MODE, PARSE_ONLY_UINT, false) == 0) count++; + if (menu_displaylist_parse_settings_enum(menu, info, + MENU_ENUM_LABEL_STREAMING_TITLE, + PARSE_ONLY_STRING, false) == 0) + count++; if (settings->uints.streaming_mode == STREAMING_MODE_LOCAL) { /* To-Do: Refresh on settings->uints.streaming_mode change to show this parameter */ diff --git a/menu/menu_setting.c b/menu/menu_setting.c index 55cedce577..e9d3f94e5d 100644 --- a/menu/menu_setting.c +++ b/menu/menu_setting.c @@ -6524,6 +6524,20 @@ static bool setting_append_list( general_read_handler); menu_settings_list_current_add_values(list, list_info, "cfg"); + CONFIG_STRING( + list, list_info, + settings->paths.streaming_title, + sizeof(settings->paths.streaming_title), + MENU_ENUM_LABEL_STREAMING_TITLE, + MENU_ENUM_LABEL_VALUE_STREAMING_TITLE, + "", + &group_info, + &subgroup_info, + parent_group, + general_write_handler, + general_read_handler); + settings_data_list_current_add_flags(list, list_info, SD_FLAG_ALLOW_INPUT); + CONFIG_UINT( list, list_info, &settings->uints.streaming_mode, diff --git a/msg_hash.h b/msg_hash.h index f2a541a9e9..3987382c32 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -416,6 +416,7 @@ enum msg_hash_enums MSG_RUNAHEAD_FAILED_TO_SAVE_STATE, MSG_RUNAHEAD_FAILED_TO_LOAD_STATE, MSG_RUNAHEAD_FAILED_TO_CREATE_SECONDARY_INSTANCE, + MENU_LABEL(STREAMING_TITLE), MENU_LABEL(STREAMING_MODE), MENU_LABEL(VIDEO_RECORD_QUALITY), MENU_LABEL(VIDEO_STREAM_QUALITY),