deleting songs that can not be found in itunes

deleting songs that can not be found in itunes

is there a way to sort only the songs that cannot be found?

i had to reorganize my music collection so i have thousands of songs that are “missing” and manually clicking is going to take days lol

Traktor ..?

Yeah, right/ctrl click on the Track Collection and choose ‘Consistency Check’ this will check the collection and tell you how many tracks are missing.
You will have options to delete them

Please note this will higlight all tracks that you have altered in iTunes over the time you have used it.

Best to choose the option to remove from Collection as that will leave any missing but wanted tracks in iTunes.

unfortunatly i dont think there is.

just hope you have huge groups of ones that are missing that you can delete at the same time

or do what i did: ignore it, then nuke itunes and delete everything

but i also rarely use itunes. and when i play music i go to the folder the song is in

EDIT:

Are all the missing tunes on the same Hard Drive, just in different folders???

Use “Consolidate Library” in itunes. This copies all tracks into the Music Folder.

Then delete the library.xml and rebuild the library.

I think that might work… maybe.

I think he means in iTunes Karlos. It used to be that you couldn’t add songs that were missing to a playlist, but I’m not sure if it’ll still work though; it’s worth a try though. Select all of your songs in iTunes and drag them to a playlist. Create a new smart playlist that has the rule NOT in whatever you named the playlist you drug your collection into. Now that new smart playlist should contain all of your missing tracks.

yes i did mean in itunes, i use itunes to organize traktor, its easier to make a playlist in itunes then transfer it to my traktor collection.

i decided to say fuck it and i deleted my entire library, i’m just gonna add individual folders so i can add all the genres and what not a lot easier
(i have all my music organized by genre and sub genre on my hard drive)
makes everything easier, but it takes a long ass time ha

I think this might be what youre looking for… assuming youre on a mac…

Go to your Computer Library Folder (NOT your User Library Folder).
Open the Library>iTunes>Scripts (if any of these folders don’t exist, then create them).
Place this Applescript (below) in the Scripts folder.

Quit and relaunch iTunes you should now see the Applescript icon in the menu bar with this script in it. Just select it and see how that does.

(*
"Super Remove Dead Tracks" for iTunes
written by Doug Adams
dougadams@mac.com

v1.5 october 26 2005
-- prevents error when trying to delete empty Smart Playlists and/or playlist that can't be deleted (Party Shuffle, Podcasts, etc)
-- code tweaks

v1.0 sep 25 2003
-- initial release

Get more free AppleScripts and info on writing your own
at Doug's AppleScripts for iTunes
http://www.dougscripts.com/itunes/

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

Get a copy of the GNU General Public License by writing to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

or visit http://www.gnu.org/copyleft/gpl.html

*)

-------------------------------------
(* the number below is the number of tracks
to count before reporting progress -
you can change this number to a larger or smaller number.

If you set it to zero, you will not see the progress message *)

property progress_factor : 500

tell application "iTunes"
display dialog "Super Remove Dead Tracks" & return & return & ¬
"Removes tracks whose files are missing or deleted, so-called" & ¬
"\"dead\" tracks designated with (!) next to the track name." buttons ¬
{"Cancel", "Proceed..."} default button 2

set mainLibrary to library playlist 1
set totalTracks to count of file tracks of mainLibrary
set all_playlists to user playlists whose smart is false -- don't delete Smart Playlists later

set deleted_tracks to 0
set all_checked_tracks to 0
set countem to ""

set oldfi to fixed indexing
set fixed indexing to true

repeat with t from totalTracks to 1 by -1

try
set this_track to file track t of mainLibrary

if this_track's location is missing value then
delete this_track
set deleted_tracks to deleted_tracks + 1
end if

set all_checked_tracks to all_checked_tracks + 1

if frontmost then
if (progress_factor is not 0) and (all_checked_tracks mod progress_factor) is 0 then
if deleted_tracks is greater than 0 then ¬
set countem to (deleted_tracks & " dead tracks removed so far...")
if frontmost is true then display dialog (all_checked_tracks as string) & ¬
" tracks checked..." & ¬
return & countem buttons {"Cancel", «data utxt266B»} giving up after 1
end if
end if
end try

end repeat

set fixed indexing to oldfi

repeat with this_playlist in all_playlists
if (get count of tracks of this_playlist) is 0 then
try
delete playlist this_playlist
end try
end if
end repeat

if deleted_tracks is greater than 0 then
set ps to " was"
if deleted_tracks is not 1 then set ps to "s were"
display dialog "Finished removing \"dead\" tracks." & return & ¬
deleted_tracks & " track" & ps & ¬
" removed." buttons {"Thanks"} default button 1 with icon 1
else
if gave up of (display dialog "It was not necessary to remove any tracks." buttons {"Thanks"} ¬
default button 1 with icon 1 giving up after 15) is true then error number -128
end if

end tell

To use this code in an applescript open up Script Editor (found in Applications>Applescript>) and then copy and paste this code into a new script. Then save the file into the directories noted above.

and comon guys. im the windows dude. i shouldnt have been the first guy to think “i bet theres an applescript that can do this” =p

NNNUUUKKKK’DDDDDDDDDDDDDDD

kpow

@xtainw
you should know i’m not on a mac :stuck_out_tongue:
you’re the one who found the computer for me to buy

lolwut?

lolol
oh yes
and i’m glad i did.
this is making organizing soooo much easier :smiley:

I actually use DougScipts to name multiple Genres in iTunes..

DOH…!!!

what are dougscripts?

that would be nice, if i had a mac :stuck_out_tongue:
lol

I had a similar problem: duplicates from another disk drive that can now no longer be found. Clicking each file, or even selecting multiple files with the CTRL key is still cumbersome when there are many files which need to be removed from the iTunes library.
I used the following approach: I highlighted ALL (!) songs in the iTunes library (select the first song, keep “Shift” pressed, ant then click on the last song).
Then I right-clicked “Get Info” and changed the value of a field which I never use (in my case, “Episode ID”), but by which the songs can be sorted in the library.
It takes a few minutes, if you have plenty of songs, in order to write the new ID-Tags to each file. After that, however, you can sort your files by the field just modified. Since files which cannot be located cannot be modified either, they will show up grouped together. At this point, you can simply highlight the entire bunch by using the SHIFT-selection approach again, and press delete.
The only inconvenience to this approach is that at the next scheduled backup, ALL modified files will be backed up anew. But I think this is a temporary problem, which doesn’t require the user’s presence anyhow, and it beats having to highlight the broken-link songs individually.