Jump to content

Location of library.db in OSX install of server


spootdev

Recommended Posts

spootdev

Whipping up some tools for media cleanup and don't have OSX to test with.  Could sumone tell me the local of the above file so I can throw it in my script anyways.  ^_^

Link to comment
Share on other sites

All databases are under our "data" directory.

 

Keep in mind, any direct access you do outside of our API or other published methods can potentially break if we change something.

Link to comment
Share on other sites

spootdev

Yes, I'm aware it's under data........but what's data under.  :)

 

Windows:

    user_conn = connect("C:/Users/" + os.environ.get( "USERNAME" ) + "/AppData/Roaming/MediaBrowser-Server/data/library.db")
 

Linux:

    user_conn = connect('/var/lib/mediabrowser/data/library.db')
 

Mac:

    user_conn = connect('CHANGEME')
 

And I don't update the db.....it's just a report which I hope to port over to plugins or sumthing in the future.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...