[rhythmbox] podcast: replace slashes in feed/episode with _ for download location



commit 93da5d7d284b7d579fbffd563099512ddfe3b321
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sun Sep 6 20:13:34 2009 +1000

    podcast: replace slashes in feed/episode with _ for download location

 podcast/rb-podcast-manager.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/podcast/rb-podcast-manager.c b/podcast/rb-podcast-manager.c
index 970f2f4..eb6c821 100644
--- a/podcast/rb-podcast-manager.c
+++ b/podcast/rb-podcast-manager.c
@@ -788,6 +788,8 @@ download_file_info_cb (GFile *source,
 	feed_folder = g_uri_escape_string (rhythmdb_entry_get_string (data->entry, RHYTHMDB_PROP_ALBUM),
 					   G_URI_RESERVED_CHARS_ALLOWED_IN_PATH,
 					   TRUE);
+	g_strdelimit (feed_folder, "/", '_');
+	g_strdelimit (esc_local_file_name, "/", '_');
 
 	/* construct local filename */
 	conf_dir_uri = rb_podcast_manager_get_podcast_dir (data->pd);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]