fix import of Google Takeout CSV (#323)

the file that Google has generated for me had the field `Channel ID` (capital "D") in the header.
This commit is contained in:
Andrea 2021-07-29 21:37:04 +02:00 committed by GitHub
parent 2ca802e669
commit d528fe58ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,7 +114,7 @@ export default {
}
// Google Takeout CSV
if (text.indexOf("Channel Id,") != -1) {
if (text.indexOf("Channel Id,") != -1 || text.indexOf("Channel ID,") != -1) {
const lines = text.split("\n");
for (let i = 1; i < lines.length; i++) {
const line = lines[i];