Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Lord Hamsa

macrumors 6502a
Original poster
Jul 16, 2013
698
675
I have a collection of media files, all in M4V format, but some of them are downloaded from iTunes (in the days before iTunes went away). Is there a good way to filter through all of my files to quickly figure out which ones are my personal rips vs. the DRM protected downloads? I want to start using Plex for my ripped titles, while continuing to watch the purchased/DRM content through the Apple TV app (or the TV app on my Mac).

(Alternate acceptable solution: how to get Plex to ignore DRM protected files when in the same directory as other files)
 
Finer details left as an exercise, but to find all the mp3 files in the current directory and list their type:

Code:
find . -type f -name '*.mp3' -depth 1 -print0 -exec echo -n " " \; -exec mdls -name kMDItemKind {} \;

DRM-ed files will have extraneous information in there pointing to DRM.

My Podcasts library shows something like this:

Code:
./55C370C7-A27B-4AB0-B05F-14E72A78BA27.mp3 kMDItemKind = "MP3 audio"
./5AFE5608-F0F0-4CDB-A3A1-DE7139FA3EAA.mp3 kMDItemKind = "MP3 audio"
 
  • Like
Reactions: Lord Hamsa
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.