Page 1 of 1

Problem creating podcast directory

PostPosted: Fri Feb 18, 2011 4:05 pm
by Mikedaub
Every podcast I try to add into the podcast receiver to start downloading always gives me the same error:

java.lang.RuntimeException: Failed to create directory /var/music/Podcast/Pacha NYC Podcast

You can replace the Pancha NYC Podcast with whatever other podcast I try adding. I am using valid links, copied from my podcast receiver on my phone, but always gives me the same error.. Do I need to create the folder on my server first? I do have the main folder of Podcast already created, but not folders for the individual folders for each podcast

Any thoughts?

Thanks

PostPosted: Fri Feb 18, 2011 4:35 pm
by baaldemon
What operating system are you running? Are you sure that /var/music/Podcast/ has the correct permissions for the user you are running subsonic with?

PostPosted: Fri Feb 18, 2011 7:07 pm
by djsubsonic
Or Maby Create the directorie...

PostPosted: Fri Feb 18, 2011 7:07 pm
by Mikedaub
Thanks for the reply.

I got it fixed. I am not sure what the problem was, but it is fixed. I sent this link to my IT guy and he did whatever needed to be done.

Another question about podcasts, how can they be deleted? Do they auto delete once they are listened to, do I have to go into the directory and do it? It doesn't seem like there is a setting for it anywhere..


thanks

PostPosted: Fri Feb 18, 2011 11:40 pm
by Minime
Once you configure your podcasts settings(Number of episodes to keep, how frequent SS will check for new episodes etc) from: Settings > Podcasts, it's all managed by subsonic automatically.

Podcast title must be a valid directory name

PostPosted: Sat Feb 19, 2011 9:55 am
by zvi31
I received a similar error when subscribing to <http://feeds.pbs.org/pbs/wgbh/nova-video>.

java.lang.RuntimeException: Failed to create directory c:\music\Podcast\NOVA Vodcast | PBS

Subsonic could not create the podcast directory because the podcast title, used for the directory name, contains "|" which cannot be used in naming a Windows directory.

I ended up modifying removeMarkup() in StringUtil.java, which is used to clean podcast title and episode name, so that it replaces "|" with "-".

Cheers,
--Zvi

PostPosted: Tue Feb 22, 2011 4:58 pm
by mbohde
I am having the exact same problem with the | in the name. I just downloaded a tool called ClassEditor to modify this however am new to java. Could you give me the line number or a string to search for and how it needs to be modified? Thanks.

PostPosted: Fri Feb 25, 2011 10:41 pm
by zvi31
The class to modify is net.sourceforge.subsonic.util.StringUtil

Original
Code: Select all
    public static String removeMarkup(String s) {
        if (s == null) {
            return null;
        }
        return s.replaceAll("<.*?>", "");
    }


Modified
Code: Select all
    public static String removeMarkup(String s) {
        if (s == null) {
            return null;
        }
        s = s.replaceAll("[|]", "-");  // Replace "|" with "-"
        return s.replaceAll("<.*?>", "");  // Remove HTML tags
    }


If you can patch the class file, try to substitute this "<.*?>" with this "(<.*?>)|[|]". The effect would be to remove the "|" from the filtered string.

Good luck,
--Zvi