use file name for WebCal subscription folder name

also remove the string length limit, which broke saving folder
properties
This commit is contained in:
Paul 2016-08-31 12:37:03 +01:00
parent 673374af23
commit 371bbb58ad

View file

@ -1852,14 +1852,10 @@ static void update_subscription_finish(const gchar *uri, gchar *feed, gboolean v
gchar *title = feed_get_title(feed);
if (title == NULL) {
if (strstr(uri, "://"))
title = g_strdup(strstr(uri,"://")+3);
title = g_path_get_basename(strstr(uri,"://")+3);
else
title = g_strdup(uri);
subst_for_filename(title);
if (strlen(title) > 32) {
title[29]=title[30]=title[31]='.';
title[32]='\0';
}
}
item = folder_create_folder(root->node->data, title);
if (!item) {