@@ -190,7 +190,7 @@ dvr_config_create(const char *name, const char *uuid, htsmsg_t *conf)
190190 cfg -> dvr_autorec_max_count = 50 ;
191191 cfg -> dvr_format_tvmovies_subdir = strdup ("tvmovies" );
192192 cfg -> dvr_format_tvshows_subdir = strdup ("tvshows" );
193- cfg -> dvr_autorec_dedup = 0 ;
193+ cfg -> dvr_autorec_dedup = DVR_AUTOREC_RECORD_ALL ;
194194
195195 /* Muxer config */
196196 cfg -> dvr_muxcnf .m_cache = MC_CACHE_SYSTEM ;
@@ -843,6 +843,44 @@ dvr_config_entry_class_update_window_list(void *o, const char *lang)
843843 24 * 3600 , 60 , lang );
844844}
845845
846+ static htsmsg_t *
847+ dvr_autorec_entry_class_record_list ( void * o , const char * lang )
848+ {
849+ static const struct strtab tab [] = {
850+ { N_ ("Record all" ),
851+ DVR_AUTOREC_RECORD_ALL },
852+ { N_ ("All: Record if EPG/XMLTV indicates it is a unique programme" ),
853+ DVR_AUTOREC_RECORD_UNIQUE },
854+ { N_ ("All: Record if different episode number" ),
855+ DVR_AUTOREC_RECORD_DIFFERENT_EPISODE_NUMBER },
856+ { N_ ("All: Record if different subtitle" ),
857+ DVR_AUTOREC_RECORD_DIFFERENT_SUBTITLE },
858+ { N_ ("All: Record if different description" ),
859+ DVR_AUTOREC_RECORD_DIFFERENT_DESCRIPTION },
860+ { N_ ("All: Record once per month" ),
861+ DVR_AUTOREC_RECORD_ONCE_PER_MONTH },
862+ { N_ ("All: Record once per week" ),
863+ DVR_AUTOREC_RECORD_ONCE_PER_WEEK },
864+ { N_ ("All: Record once per day" ),
865+ DVR_AUTOREC_RECORD_ONCE_PER_DAY },
866+ { N_ ("Local: Record if different episode number" ),
867+ DVR_AUTOREC_LRECORD_DIFFERENT_EPISODE_NUMBER },
868+ { N_ ("Local: Record if different title" ),
869+ DVR_AUTOREC_LRECORD_DIFFERENT_TITLE },
870+ { N_ ("Local: Record if different subtitle" ),
871+ DVR_AUTOREC_LRECORD_DIFFERENT_SUBTITLE },
872+ { N_ ("Local: Record if different description" ),
873+ DVR_AUTOREC_LRECORD_DIFFERENT_DESCRIPTION },
874+ { N_ ("Local: Record once per month" ),
875+ DVR_AUTOREC_LRECORD_ONCE_PER_MONTH },
876+ { N_ ("Local: Record once per week" ),
877+ DVR_AUTOREC_LRECORD_ONCE_PER_WEEK },
878+ { N_ ("Local: Record once per day" ),
879+ DVR_AUTOREC_LRECORD_ONCE_PER_DAY },
880+ };
881+ return strtab2htsmsg (tab , 1 , lang );
882+ }
883+
846884static int
847885dvr_config_class_pathname_set (void * o , const void * v )
848886{
@@ -1428,11 +1466,11 @@ const idclass_t dvr_config_class = {
14281466 .type = PT_U32 ,
14291467 .id = "record" ,
14301468 .name = N_ ("Duplicate handling" ),
1431- .desc = N_ ("Duplicate recording handling ." ),
1469+ .desc = N_ ("How to handle duplicate recordings ." ),
14321470 .def .i = DVR_AUTOREC_RECORD_ALL ,
14331471 .doc = prop_doc_duplicate_handling ,
14341472 .off = offsetof(dvr_config_t , dvr_autorec_dedup ),
1435- .list = dvr_autorec_entry_class_dedup_list ,
1473+ .list = dvr_autorec_entry_class_record_list ,
14361474 .opts = PO_ADVANCED | PO_DOC_NLIST | PO_HIDDEN ,
14371475 .group = 6 ,
14381476 },
0 commit comments