Skip to content
Open
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
3 changes: 3 additions & 0 deletions resources/site-packages/xbmctorrent/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ def _make_source_node(name, path):
sources_filename = xbmc.translatePath("special://userdata/sources.xml")
root = ET.parse(sources_filename)
video_node = root.find("./video")
if video_node is None:
plugin.notify("Please set a video directory first and try again.")
return
with closing(sqlite3.connect(_get_video_db())) as conn:
for name, entry in LIBRARY_PATHS.items():
if not os.path.exists(xbmc.translatePath(entry["strPath"])):
Expand Down