title: Uploading hundreds of non-EXIF videos - use API to correct dates
body: <p>I uploaded several hundreds of old-ish (~2009-2010) videos (mpg, mts) to google photos, and to my dismay the EXIF metadata is either absent or not recognized, so they all get the date stamp set to when they were uploaded.</p>
  
  <p>I figured I could use the <code>Google Drive API</code> to change the <code>modifiedTime</code> attribute since photos are accessible through there.</p>
  
  <p>However, it seems the API does only provide read-only access to the photos spaces according to the scope, so I get a permission problem.</p>
  
  <pre><code>file_metadata = {
      'modifiedTime': some_custom_date#datetime.utcnow().isoformat() + 'Z'
  }
  file = DRIVE.files().update(fileId=file_id,
                                      body=file_metadata,
                                      fields='id, modifiedTime').execute()
  </code></pre>
  
  <p>Specifically, I get the error</p>
  
  <pre><code>HttpError: &lt;HttpError 403 when requesting https://www.googleapis.com/drive/v3/files/xxxxxxxxxxxxxxxxxxxxxx?fields=id%2C+modifiedTime&amp;alt=json returned 
  
  "The user has not granted the app yyyyyyyy write access to the file xxxxxxxxxxxxxxxxxxxxxx."&gt;
  </code></pre>
  
  <p>So the question is if there is a way to modify files in the photos scope at all, through the Drive API? The error itself seems to suggest it is a permission that CAN be changed?</p>