Page 1 of 1

Podcast broken after changing PodcastFolder-setting

PostPosted: Sun Jun 07, 2009 11:26 am
by jigsaw
I recently changed my configuration on my Subsonic from storing all my podcasts in "/home/tomcat/media/Podcast/" to "podcast". This setup is better for my installation considering it's a more relative path to the subsonic home-folder. After changing this setting and moving all my podcast-files from the old location to the new location I now get "Access denied to file" whenever I try to play a podcast.
I figured out the reason, but I am not confident whether this is a bug or if it's a user error :p
The reason is that the podcasts are stored in the subsonic database with the full path, not the relative path. This then breaks after I have altered my settings.

Short example:
I download an episode of "Poker Night" which is then stored in the database with the PATH "/home/tomcat/media/Podcast/Poker Night/PN_08_Pass_iPod.m4v".
After I moved the podcast to the new folder subsonic cannot find any of the old podcast episodes anymore.

I suggest that the PATH-field in PODCAST_EPISODE table should be filled with the relative path to the PodcastFolder-setting in the subsonic.properties.

--
A work-around for my problem is to just purge all the podcasts and download them again, but I wanted to mention this here first.