Merge pull request #40 from theopolis/check_downloadurl

Check for missing downloadUrl
pull/115/head
Vitaliy Filippov 2015-11-11 12:30:28 +03:00
commit afbd9d7234
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ void Entry2::Update( const Val& item )
m_is_removed = file["labels"]["trashed"].Bool() ;
if ( !m_is_dir )
{
if ( !file.Has( "md5Checksum" ) )
if ( !file.Has( "md5Checksum" ) || !file.Has("downloadUrl") )
{
// This is either a google docs document or a not-yet-uploaded file. Ignore it.
// FIXME: We'll need to compare timestamps to support google docs.