--- a/src/mediaserver/contentdirectory.cxx
+++ b/src/mediaserver/contentdirectory.cxx
@@ -172,11 +172,13 @@
         if (!entry.compare("pycommon")) {
             continue;
         }
-        string userparam = entry + "user";
-        if (!g_config->hasNameAnywhere(userparam)) {
-            LOGDEB("ContentDirectory: not creating entry for " << entry <<
-                   " because " << userparam <<
-                   " is not defined in configuration\n");
+        string userkey = entry + "user";
+        string autostartkey = entry + "autostart";
+        if (!g_config->hasNameAnywhere(userkey) &&
+            !g_config->hasNameAnywhere(autostartkey)) {
+            LOGINF("ContentDirectory: not creating entry for " << entry <<
+                   " because neither " << userkey << " nor " << autostartkey <<
+                   " are defined in the configuration\n");
             continue;
         }
 
@@ -469,11 +471,6 @@
     return UPNP_E_SUCCESS;
 }
 
-std::string ContentDirectory::getpathprefix(CDPlugin *plg)
-{
-    return string("/") + plg->getname();
-}
-
 static string firstpathelt(const string& path)
 {
     // The parameter is normally a path, but make this work with an URL too