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:
parent
94929baaef
commit
87daa80459
@ -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 }
|
||||||
|
Loading…
Reference in New Issue
Block a user