Come trovare file audio duplicati
Inviato: giovedì 30 agosto 2012, 16:40
Ho creato uno script per trovare file audio duplicati nella audio station.
E' particolarmente utile quando si hanno molti file audio archiviati ed alcuni potrebbero essere presenti in album diversi.
1) creare il file di testo "findDuplicatedAudio" dentro una cartella del NAS con il seguente codice:
g DuplicatedAudio.txt
select title, filesize, path, album from music a where exists (select b.title, b.filesize, b.album, b.artist from music b where a.title=b.title and a.filesize=b.filesize and a.album=b.album group by title, filesize, album, artist having count(*) >=2);
2) Entrare in SSH nel NAS e spostarsi nella cartella dove si trova il file di testo "findDuplicatedAudio"
3) lanciare il seguente comando:
/usr/syno/pgsql/bin/psql mediaserver admin
Nella directory verrà generato il file "DuplicatedAudio.txt" contenente l'elenco dei file audio duplicati.
E' particolarmente utile quando si hanno molti file audio archiviati ed alcuni potrebbero essere presenti in album diversi.
1) creare il file di testo "findDuplicatedAudio" dentro una cartella del NAS con il seguente codice:
g DuplicatedAudio.txt
select title, filesize, path, album from music a where exists (select b.title, b.filesize, b.album, b.artist from music b where a.title=b.title and a.filesize=b.filesize and a.album=b.album group by title, filesize, album, artist having count(*) >=2);
2) Entrare in SSH nel NAS e spostarsi nella cartella dove si trova il file di testo "findDuplicatedAudio"
3) lanciare il seguente comando:
/usr/syno/pgsql/bin/psql mediaserver admin
Nella directory verrà generato il file "DuplicatedAudio.txt" contenente l'elenco dei file audio duplicati.