Coder Social home page Coder Social logo

nugget / itunes-file-mtimes Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 10 KB

Synchronize raw file modification times with iTunes library added dates

License: BSD 2-Clause "Simplified" License

Go 84.58% Makefile 15.42%
itunes itunes-library roon roonlabs

itunes-file-mtimes's Introduction

What is this?

This program will read in your iTunes Library.xml file and then walk through each track in the file. For each track, it will update the modification time on the actual file to match the "Date Added" timestamp that is recorded in the iTunes library database.

Over the years there are many normal actions and activities that can cause the modification time of a file to be updated long after it was added to iTunes. It's very easy for these timestamps to become out of sync and to have the file modification times much newer than the actual date the track was added to your iTunes library.

Why would I care about that?

If you have a program which is working off the iTunes media directory and not working through the iTunes API. For example, if you are using roon to play your music and you have your iTunes set up as a library location it can optionally use the file time to track when the file was added.

Cool, I use roon and this sounds fantastic! What do I do?

  • If you are on Catalina and using the newer "Music" app instead of iTunes, you should first manually export your library to an XML file.

    • File > Library > Export Library...
    • Save the Library.XML file somewhere
  • Download a binary for your OS from the releases page page here and then copy it into the same directory as your Library.XML file.

  • Open a terminal window and navigate to that same directory

  • Run ./itunes-file-mtimes

  • In roon, go to Settings > Library > Import Settings and set "Import Date Defaults to" to "File Modification Time"

  • In roon, go to "Storage" and perform a "Force Rescan" on your attached iTunes library location.

Useful Links

Credits

Written by David "nugget" McNett in Go.

itunes-file-mtimes's People

Contributors

nugget avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.