Problem creating podcast directory

Need help? Post your questions here.

Moderator: moderators

Problem creating podcast directory

Postby Mikedaub » Fri Feb 18, 2011 4:05 pm

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
Mikedaub
 
Posts: 2
Joined: Fri Feb 18, 2011 3:59 pm

Postby baaldemon » Fri Feb 18, 2011 4:35 pm

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?
baaldemon
 
Posts: 99
Joined: Fri May 07, 2010 11:54 am

Postby djsubsonic » Fri Feb 18, 2011 7:07 pm

Or Maby Create the directorie...
I'm A Dutch Guy And I'm Sorry If My English Is Crep:$ But I Think That You Guys Understand Me.
djsubsonic
 
Posts: 12
Joined: Sun Feb 13, 2011 9:11 pm

Postby Mikedaub » Fri Feb 18, 2011 7:07 pm

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
Mikedaub
 
Posts: 2
Joined: Fri Feb 18, 2011 3:59 pm

Postby Minime » Fri Feb 18, 2011 11:40 pm

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.
Best Regards
Minime,
-----------------------------------------------------------------
Subsonic 4.6 | Ubuntu 10.04 LTS inside a VMWare host
Galaxy SII with ICS 4.0.1 & Android App v3.0 Combo
XBMC Dharma with t0mm0-xbmc-addons
+ A few custom Mods
User avatar
Minime
 
Posts: 68
Joined: Fri Dec 17, 2010 5:19 am
Location: UK

Podcast title must be a valid directory name

Postby zvi31 » Sat Feb 19, 2011 9:55 am

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
zvi31
 
Posts: 2
Joined: Sat Feb 19, 2011 9:29 am

Postby mbohde » Tue Feb 22, 2011 4:58 pm

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.
mbohde
 
Posts: 1
Joined: Tue Feb 22, 2011 4:56 pm

Postby zvi31 » Fri Feb 25, 2011 10:41 pm

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
zvi31
 
Posts: 2
Joined: Sat Feb 19, 2011 9:29 am


Return to Help

Who is online

Users browsing this forum: No registered users and 12 guests