Skip to content

Commit ae1664b

Browse files
Fixed issue SRT files not showing on Google Drive (#504)
1 parent 899d9ee commit ae1664b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib/api/cloud.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ export class CloudClient {
133133
if (!Array.isArray(accept)) {
134134
accept = [accept];
135135
}
136+
// FS-11013.
137+
// google-drive storing uncommon file-types in incorrect format, eg .srt (subrip) file is stored in bin (octet-stream) format
138+
// so if user wants to accept subrip files, we should search google drive for octet-steam file.
139+
if (accept.includes('application/x-subrip') && !accept.includes('application/octet-stream')) {
140+
accept.push('application/octet-stream');
141+
}
136142
// filtering mimetypes in clouds
137143
payload.accept = accept;
138144
}

0 commit comments

Comments
 (0)