1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

Fix CSV format issues

This commit is contained in:
Reinhard Pointner 2016-04-25 15:23:12 +08:00
parent 94929baaef
commit 87daa80459

View File

@ -39,7 +39,7 @@ new File(dir_data).mkdirs()
def reviews = [] def reviews = []
new File("${dir_root}/reviews.tsv").eachLine('UTF-8'){ new File("${dir_root}/reviews.tsv").eachLine('UTF-8'){
def s = it.split(/\t/, 3)*.trim()*.replaceAll('["]{2}', '"') def s = it.split(/\t/, 3)*.trim()
reviews << [user: s[0], date: s[1], text: s[2]] reviews << [user: s[0], date: s[1], text: s[2]]
} }
reviews = reviews.sort{ it.date } reviews = reviews.sort{ it.date }