diff -pur ushare-0.9.7-orig/src/metadata.c ushare-0.9.7/src/metadata.c
--- ushare-0.9.7-orig/src/metadata.c	Sun Mar  5 19:30:28 2006
+++ ushare-0.9.7/src/metadata.c	Sat Aug 12 17:01:53 2006
@@ -26,6 +26,7 @@
 
 #include <stdlib.h>
 #include <string.h>
+#include <ctype.h>
 #include <stdio.h>
 #include <dirent.h>
 #include <sys/types.h>
@@ -184,10 +185,25 @@ upnp_entry_new (struct ushare_t *ut, con
 {
   struct upnp_entry_t *entry = NULL;
   char *title = NULL;
+  char *ext = NULL;
 
   if (!name)
     return NULL;
 
+  /* 12aug2006 En VDR support */
+  ext = strrchr(name, '.');
+  if (ext)
+  {
+      if (!strcmp(ext, ".vdr"))
+      {
+          if (isdigit(name[0]) && isdigit(name[1]) && isdigit(name[2]))
+              ext = ".vob";
+          else
+              return NULL;
+      }
+  }
+  /* 12aug2006 En VDR support - end */
+
   entry = (struct upnp_entry_t *) malloc (sizeof (struct upnp_entry_t));
 
   entry->id = ut->nr_entries++;
@@ -208,6 +224,16 @@ upnp_entry_new (struct ushare_t *ut, con
       sprintf (entry->url, "http://%s:%d%s/%d",
                UpnpGetServerIpAddress (), ut->port,
                VIRTUAL_DIR, entry->id);
+      /* 12aug2006 En VDR support */
+      if (ext)
+          strcat(entry->url, ext);
+#if 0
+      printf("%s:\tname '%s'  class '%s'  proto '%s'\n",
+             __FUNCTION__, name, entry->class, entry->protocol);
+      printf("\t\tfullpath '%s'\n", entry->fullpath);
+      printf("\t\tURL '%s'\n", entry->url);
+#endif
+      /* 12aug2006 En VDR support - end */
     }
   else /* container */
     {
diff -pur ushare-0.9.7-orig/src/mime.c ushare-0.9.7/src/mime.c
--- ushare-0.9.7-orig/src/mime.c	Wed Mar  8 18:51:13 2006
+++ ushare-0.9.7/src/mime.c	Sat Aug 12 17:00:29 2006
@@ -63,6 +63,7 @@ struct mime_type_t MIME_Type_List[] = {
   { "rmvb", UPNP_VIDEO, "http-get:*:video/mpeg:*"},
   { "mov", UPNP_VIDEO, "http-get:*:video/quicktime:*"},
   { "qt", UPNP_VIDEO, "http-get:*:video/quicktime:*"},
+  { "vdr", UPNP_VIDEO, "http-get:*:video/mp2p:*"}, /* 12aug2006 En */
 
   /* Audio files */
   { "aac", UPNP_AUDIO, "http-get:*:audio/x-aac:*"},
