"These options define the behavior of the playlist. Some " \
"of them can be overridden in the playlist dialog box." )
+#define PREPARSE_TEXT N_( "Automatically preparse files")
+#define PREPARSE_LONGTEXT N_( \
+ "This option enables automatic preparsing of files added to the playlist " \
+ "(to retrieve some metadata)." )
+
#define SD_TEXT N_( "Services discovery modules")
#define SD_LONGTEXT N_( \
"Specifies the services discovery modules to load, separated by " \
add_string( "open", "", NULL, OPEN_TEXT, OPEN_LONGTEXT, VLC_FALSE );
+ add_bool( "auto-preparse", VLC_TRUE, NULL, PREPARSE_TEXT, PREPARSE_LONGTEXT, VLC_FALSE );
+
set_subcategory( SUBCAT_PLAYLIST_SD );
add_module_list_cat( "services-discovery", SUBCAT_PLAYLIST_SD, NULL,
NULL, SD_TEXT, SD_LONGTEXT, VLC_FALSE );
p_playlist->status.i_status = PLAYLIST_RUNNING;
}
- if( i_mode & PLAYLIST_PREPARSE )
+ if( i_mode & PLAYLIST_PREPARSE &&
+ var_CreateGetBool( p_playlist, "auto-preparse" ) )
{
playlist_PreparseEnqueue( p_playlist, &p_item->input );
}
}
p_playlist->status.i_status = PLAYLIST_RUNNING;
}
- if( i_mode & PLAYLIST_PREPARSE )
+ if( i_mode & PLAYLIST_PREPARSE &&
+ var_CreateGetBool( p_playlist, "auto-preparse" ) )
{
playlist_PreparseEnqueue( p_playlist, &p_item->input );
}