mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 04:06:11 +00:00
Apply PR suggestions
This commit is contained in:
parent
26d30b7952
commit
a2c4b97c45
1 changed files with 1 additions and 4 deletions
|
@ -81,12 +81,9 @@ def verify_kodi_defaults():
|
||||||
|
|
||||||
if not os.path.exists(source_base_path):
|
if not os.path.exists(source_base_path):
|
||||||
LOG.error("XMLs source path `%s` not found.", source_base_path)
|
LOG.error("XMLs source path `%s` not found.", source_base_path)
|
||||||
return False
|
return
|
||||||
|
|
||||||
# Make sure the files exist in the local profile.
|
# Make sure the files exist in the local profile.
|
||||||
# TODO: Investigate why this is needed.
|
|
||||||
# I would think Kodi pulls data from the default profile
|
|
||||||
# if we don't do this.
|
|
||||||
for source_path, dirs, files in os.walk(source_base_path):
|
for source_path, dirs, files in os.walk(source_base_path):
|
||||||
relative_path = os.path.relpath(source_path, source_base_path)
|
relative_path = os.path.relpath(source_path, source_base_path)
|
||||||
dest_path = os.path.join(dest_base_path, relative_path)
|
dest_path = os.path.join(dest_base_path, relative_path)
|
||||||
|
|
Loading…
Reference in a new issue