Jump to content

Location of library.db in OSX install of server


Recommended Posts

spootdev
Posted

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.  ^_^

Posted

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.

spootdev
Posted

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.

spootdev
Posted

think I found it in a log...

 

/Users/username/MediaBrowser/ProgramData-Server/data/

Posted

You shouldn't assume anything below the program data path.

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...