const gchar *p;
p = ghb_dict_get_string(ud->prefs, "auto_name_template");
- // {source_path} is only allowed as the first element of the
+ // {source-path} is only allowed as the first element of the
// template since the path must come first in the filename
if (p != NULL &&
- !strncasecmp(p, "{source_path}", strlen("{source_path}")))
+ (!strncasecmp(p, "{source-path}", strlen("{source-path}")) ||
+ !strncasecmp(p, "{source_path}", strlen("{source_path}"))))
{
const gchar * source;
}
g_free(dirname);
}
- p += strlen("{source_path}");
+ p += strlen("{source-path}");
}
while (*p)
{
</child>
<child>
<object class="GtkEntry" id="auto_name_template">
- <property name="tooltip_text" translatable="yes">Available Options: {source_path} {source} {title} {preset} {chapters} {date} {time} {creation-date} {creation-time} {quality} {bitrate}</property>
+ <property name="tooltip_text" translatable="yes">Available Options: {source-path} {source} {title} {preset} {chapters} {date} {time} {creation-date} {creation-time} {quality} {bitrate}</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>