mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-08-14 23:57:27 +00:00
fix import of Google Takeout CSV
the file that Google has generated for me had the field `Channel ID` (capital "D") in the header. after this small change, it worked for me. i don't know if `Channel Id` is also valid in some cases, or not, so I left both the possibilities
This commit is contained in:
parent
44607bf429
commit
dd2635f926
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue