Skip to content

Commit e634b94

Browse files
committed
fix: import from pocket csv
1 parent c20b1f2 commit e634b94

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cmd/pocket.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,21 +107,19 @@ func importFromPocketCSV(ctx context.Context, c *cli.Command) error {
107107
continue
108108
}
109109

110-
if len(row) < 6 {
110+
if len(row) < 5 {
111111
continue
112112
}
113113

114+
title := row[0]
114115
url := row[1]
115-
title := row[2]
116116
// timeAdded := row[3]
117-
tags := row[4]
118-
desc := row[5]
117+
tags := row[3]
119118

120119
bookmark := &gosuki.Bookmark{
121120
URL: url,
122121
Title: title,
123122
Tags: strings.Split(tags, ","),
124-
Desc: desc,
125123
Module: PocketImporterID,
126124
}
127125

0 commit comments

Comments
 (0)