I am trying to use the Google Drive python client to select all filetypes with mimeType audio/mpeg OR audio/flac OR audio/ogg. How can this be done in a single query?
I have tried:
files = drive.files().list().setQ("mimeType='audio/mpeg OR mimeType='audio/flac'").execute()
But this request failed to yield the correct result.
You’ve lost one single-quote in your query and query is invalid:
But still Google Drive API does not support
oroperator, so you have to perform two queries in order to get desired results: