Skip to content
GitLab
Next
Projects
Groups
Snippets
Help
Loading...
Help
What's new
6
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zoom Sync
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
GitLab.com
Zoom Sync
Commits
2a644f9c
Commit
2a644f9c
authored
Jul 16, 2020
by
Stan Hu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sh-fix-chat-and-transcripts' into 'master'
Fix chat and transcript logs See merge request
!17
parents
107e28ff
dfe507d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
zoom-sync.rb
zoom-sync.rb
+8
-2
No files found.
zoom-sync.rb
View file @
2a644f9c
...
...
@@ -180,7 +180,9 @@ class GoogleDriveClient
end
begin
uploaded
=
dest_folder
.
upload_from_file
(
filename
)
# Google Drive will convert a .txt to a Google Docs file and strip
# the extension, which makes it hard to check for dupliates.
uploaded
=
dest_folder
.
upload_from_file
(
filename
,
nil
,
convert:
false
)
rescue
Google
::
Apis
::
ServerError
=>
e
puts
"Google API error:
#{
e
}
"
return
false
...
...
@@ -322,7 +324,10 @@ class ZoomSyncher
# Discard any audio or videos that aren't longer than 30 seconds
def
should_upload?
(
filename
,
file_type
)
return
true
if
file_type
.
downcase
==
'chat'
file_type
=
file_type
.
downcase
return
true
if
%w[chat transcript]
.
include?
(
file_type
)
return
false
if
file_type
==
'timeline'
duration
=
MediaInfo
.
from
(
filename
)
&
.
audio
&
.
duration
...
...
@@ -361,6 +366,7 @@ class ZoomSyncher
file_type
=
file_type
.
downcase
return
'txt'
if
file_type
==
'chat'
return
'transcript.txt'
if
file_type
==
'transcript'
file_type
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment