From 679fa0eec6f7c450423711f3a952bbdaa4f25eca Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Thu, 8 Oct 2015 14:23:59 +0300 Subject: [PATCH] Use title instead of originalFilename - fixes #32 --- libgrive/src/drive2/Entry2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgrive/src/drive2/Entry2.cc b/libgrive/src/drive2/Entry2.cc index e5db8f0..9e9ce7a 100644 --- a/libgrive/src/drive2/Entry2.cc +++ b/libgrive/src/drive2/Entry2.cc @@ -56,7 +56,7 @@ void Entry2::Update( const Val& item ) m_title = file["title"] ; m_etag = file["etag"] ; Val fn; - m_filename = file.Get( "originalFilename", fn ) ? fn.Str() : std::string(); + m_filename = file.Get( "title", fn ) ? fn.Str() : std::string(); m_self_href = file["selfLink"] ; m_mtime = DateTime( file["modifiedDate"] ) ;