diff options
-rwxr-xr-x | automedia | bin | 116632 -> 116632 bytes | |||
-rw-r--r-- | src/rss.c | 5 | ||||
-rw-r--r-- | src/rss.h | 2 |
3 files changed, 5 insertions, 2 deletions
Binary files differ @@ -305,7 +305,7 @@ static int get_rss_url_from_episode_info(const char *episode_name, EpisodeInfo * /* TODO: Fix the remove() calls. They wont work since they are not recursive and the directories has files in them */ /* Same for add_html */ -int add_rss(const char *name, const char *url, char *rss_config_dir, const char *start_after) { +int add_rss(const char *name, char *url, char *rss_config_dir, const char *start_after) { int result = 0; char rss_url[4096]; @@ -328,6 +328,9 @@ int add_rss(const char *name, const char *url, char *rss_config_dir, const char goto cleanup; } + string_replace(url, '/', '_'); + start_after = strip(url); + url = rss_url; buffer_clear(&buffer); @@ -10,7 +10,7 @@ typedef struct { struct json_object_s *json_data; } TrackedRss; -int add_rss(const char *name, const char *url, char *rss_config_dir, const char *start_after); +int add_rss(const char *name, char *url, char *rss_config_dir, const char *start_after); int sync_rss(TrackedRss *tracked_rss, struct TransmissionSession *transmission_session, char *rss_config_dir); #endif |