feat: implement media metadata management with EXIF and TrackInfo support
This commit is contained in:
@@ -87,3 +87,19 @@ pub async fn build_album_share_repository(
|
||||
)),
|
||||
}
|
||||
}
|
||||
|
||||
pub async fn build_media_metadata_repository(
|
||||
_db_config: &DatabaseConfig,
|
||||
pool: DatabasePool,
|
||||
) -> CoreResult<Arc<dyn libertas_core::repositories::MediaMetadataRepository>> {
|
||||
match pool {
|
||||
DatabasePool::Postgres(pg_pool) => Ok(Arc::new(
|
||||
crate::repositories::media_metadata_repository::PostgresMediaMetadataRepository::new(
|
||||
pg_pool,
|
||||
),
|
||||
)),
|
||||
DatabasePool::Sqlite(_sqlite_pool) => Err(CoreError::Database(
|
||||
"Sqlite media metadata repository not implemented".to_string(),
|
||||
)),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user