File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,7 @@ async function run() {
3737 goodFolders ,
3838 async ( folder ) => {
3939 const name = folder . name ;
40- const imageFiles = folder . contents . filter (
41- ( file ) => file . contenttype === 'image/jpeg'
42- ) ;
40+ const imageFiles = folder . contents . filter ( ( file ) => file . category === 1 ) ;
4341 const hashToFilesMap = groupByHash ( imageFiles ) ;
4442 const fileGroups = [ ...hashToFilesMap . values ( ) ] . filter (
4543 ( files ) => files . length > 1
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ async function run() {
3939 const hashesPerName = await pMap ( goodFolders , async ( f ) => {
4040 const name = f . name ;
4141 const hashList = f . contents
42- . filter ( ( f ) => f . contenttype === 'image/jpeg' )
42+ . filter ( ( f ) => f . category === 1 )
4343 . map ( ( f ) => f . hash ) ;
4444 const hashes = new Set ( hashList ) ;
4545 return { name, hashes} ;
You can’t perform that action at this time.
0 commit comments