remove useless code and change one logging debug text

This commit is contained in:
yk 2020-06-27 22:45:39 +08:00
parent 70d7522570
commit 1e7b875dbe
2 changed files with 1 additions and 3 deletions

View file

@ -268,8 +268,6 @@ def validate_bluray_dir(path):
path = path + '/BDMV/' path = path + '/BDMV/'
path = path if os.path.supports_unicode_filenames else path
if not xbmcvfs.exists(path): if not xbmcvfs.exists(path):
return False return False

View file

@ -180,7 +180,7 @@ class Movies(KodiDb):
if validate_bluray_dir(obj['Path'] + obj['Filename']): if validate_bluray_dir(obj['Path'] + obj['Filename']):
obj['Path'] = obj['Path'] + obj['Filename'] + '/BDMV/' obj['Path'] = obj['Path'] + obj['Filename'] + '/BDMV/'
obj['Filename'] = 'index.bdmv' obj['Filename'] = 'index.bdmv'
LOG.debug("path redirect %s",obj['Path']) LOG.debug("Bluray directry %s",obj['Path'])
else: else:
obj['Path'] = "plugin://plugin.video.jellyfin/%s/" % obj['LibraryId'] obj['Path'] = "plugin://plugin.video.jellyfin/%s/" % obj['LibraryId']