Merge pull request #15 from jryd/issue-9

Comment out batch deleting videos; resolves #9
This commit is contained in:
jeffreydwalter 2019-03-30 09:15:42 -05:00 committed by GitHub
commit fb11dcb297
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -112,15 +112,19 @@ func main() {
// Wait here until all of the go routines are done. // Wait here until all of the go routines are done.
wg.Wait() wg.Wait()
// Delete all of the videos you just downloaded from the Arlo library.
// The below example demonstrates how you could delete the cloud recordings after downloading them.
// Simply uncomment the below code to start using it.
// Delete all of the videos you just downloaded from the Arlo library.
// Notice that you can pass the "library" object we got back from the GetLibrary() call. // Notice that you can pass the "library" object we got back from the GetLibrary() call.
if err := arlo.BatchDeleteRecordings(library); err != nil { /* if err := arlo.BatchDeleteRecordings(library); err != nil {
log.Println(err) log.Println(err)
return return
} } */
// If we made it here without an exception, then the videos were successfully deleted. // If we made it here without an exception, then the videos were successfully deleted.
log.Println("Batch deletion of videos completed successfully.") /* log.Println("Batch deletion of videos completed successfully.") */
} }
``` ```