/*****************************************************************************
* taglib.cpp: Taglib tag parser/writer
*****************************************************************************
- * Copyright (C) 2003-2008 the VideoLAN team
+ * Copyright (C) 2003-2009 the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
// Local functions
static int ReadMeta ( vlc_object_t * );
-static int DownloadArt ( vlc_object_t * );
static int WriteMeta ( vlc_object_t * );
vlc_module_begin ()
set_capability( "meta reader", 1000 )
set_callbacks( ReadMeta, NULL )
- add_submodule ()
- set_capability( "art downloader", 50 )
- set_callbacks( DownloadArt, NULL )
add_submodule ()
set_capability( "meta writer", 50 )
set_callbacks( WriteMeta, NULL )
if( f.isNull() || !f.tag() || f.file()->readOnly() )
{
- msg_Err( p_this, "File %s can't be opened for tag writing\n",
+ msg_Err( p_this, "File %s can't be opened for tag writing",
p_export->psz_file );
return VLC_EGENERIC;
}
// Saving all common fields
// If the title is empty, use the name
- psz_meta = input_item_GetTitle( p_item );
- if( !psz_meta ) psz_meta = input_item_GetName( p_item );
+ psz_meta = input_item_GetTitleFbName( p_item );
SET( Title, psz_meta );
free( psz_meta );
return VLC_SUCCESS;
}
-
-
-static int DownloadArt( vlc_object_t *p_this )
-{
- /* We need to be passed the file name
- * Fetch the thing from the file, save it to the cache folder
- */
- return VLC_EGENERIC;
-}
-