Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrected DB Location #455

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Trakttv.bundle/Contents/Code/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def initialize_environment(self):

# plex.database.py
os.environ['LIBRARY_DB'] = os.path.join(
Environment.path.plugin_support, 'Databases',
Core.plugin_support_path, 'Databases',
'com.plexapp.plugins.library.db'
)

Expand Down
2 changes: 1 addition & 1 deletion Trakttv.bundle/Contents/Code/fs_migrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def plex_path(self):

@property
def preferences_path(self):
return os.path.join(self.plex_path, 'Plug-in Support', 'Preferences', 'com.plexapp.plugins.trakttv.xml')
return os.path.join(Core.plugin_support_path, 'Preferences', 'com.plexapp.plugins.trakttv.xml')

def get_preferences(self):
if not os.path.exists(self.preferences_path):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,23 @@ def home(self):

@property
def libraries(self):
return os.path.join(self.contents, 'Libraries')
return os.path.join(self._core.plugin_support_path, 'Libraries')

@property
def locale(self):
return os.path.join(self.contents, 'Locale')

@property
def plugin_caches(self):
return os.path.join(self.plugin_support, 'Caches', PLUGIN_IDENTIFIER)
return os.path.join(self._core.plugin_support_path, 'Caches', PLUGIN_IDENTIFIER)

@property
def plugin_data(self):
return os.path.join(self.plugin_support, 'Data', PLUGIN_IDENTIFIER)
return os.path.join(self._core.plugin_support_path, 'Data', PLUGIN_IDENTIFIER)

@property
def plugin_database(self):
return os.path.join(self.plugin_support, 'Databases', '%s.db' % PLUGIN_IDENTIFIER)
return os.path.join(self._core.plugin_support_path, 'Databases', '%s.db' % PLUGIN_IDENTIFIER)

@property
def plugin_support(self):
Expand Down