diff -r a84d2982ff01 -r 43dc23e931b6 libgnomevfs2-mythtv/modules/mythtv-method.c --- a/libgnomevfs2-mythtv/modules/mythtv-method.c Wed Jan 24 21:03:05 2007 +0000 +++ b/libgnomevfs2-mythtv/modules/mythtv-method.c Tue Jan 30 22:27:59 2007 +0000 @@ -271,7 +271,7 @@ GMythBackendInfo *backend_info = NULL; GMythURI *gmyth_uri = NULL; gboolean is_livetv = FALSE; - gboolean ret = FALSE; + gboolean ret = TRUE; /* Creates and fills out the backend info structure */ backend_info = gmyth_backend_info_new_with_uri ( @@ -283,7 +283,7 @@ is_livetv = gmyth_uri_is_livetv( gmyth_uri ); - file_info->name = g_strdup (gmyth_uri_get_path (gmyth_uri)); + file_info->name = g_strdup (gmyth_uri_get_path (gmyth_uri)+1); file_info->valid_fields = file_info->valid_fields | GNOME_VFS_FILE_INFO_FIELDS_TYPE | GNOME_VFS_FILE_INFO_FIELDS_MIME_TYPE @@ -296,7 +296,7 @@ GNOME_VFS_PERM_OTHER_READ | GNOME_VFS_PERM_GROUP_READ; - /* Connect to the backend */ + /* Connect to the backend */ if ( gmyth_uri != NULL && is_livetv == TRUE ) { livetv = gmyth_livetv_new (); @@ -336,10 +336,12 @@ } /* if - LiveTV or not? */ + /* if (ret == FALSE) { g_warning ("MythTV FileTransfer open error\n"); return GNOME_VFS_ERROR_NOT_OPEN; } + */ file_info->size = gmyth_file_transfer_get_filesize (file_transfer); file_info->block_count = GNOME_VFS_FILE_INFO_FIELDS_BLOCK_COUNT; @@ -348,6 +350,7 @@ g_object_unref (file_transfer); g_object_unref (livetv); g_object_unref (backend_info); + return GNOME_VFS_OK; }