mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-11-09 18:06:35 +00:00
use thought when calling to vfs for esoteric media
This commit is contained in:
parent
68c49ea4b7
commit
df2e0d52a7
2 changed files with 4 additions and 4 deletions
|
|
@ -189,13 +189,13 @@ class Movies(KodiDb):
|
|||
obj['Path'] = obj['Path'].replace(obj['Filename'], "")
|
||||
|
||||
'''check dvd directories and point it to ./VIDEO_TS/VIDEO_TS.IFO'''
|
||||
if validate_dvd_dir(obj['Path'] + obj['Filename']):
|
||||
if ('Container' not in obj or ('Container' in obj and obj['Container'] == 'dvd')) and validate_dvd_dir(obj['Path'] + obj['Filename']):
|
||||
obj['Path'] = obj['Path'] + obj['Filename'] + '/VIDEO_TS/'
|
||||
obj['Filename'] = 'VIDEO_TS.IFO'
|
||||
LOG.debug("DVD directory %s", obj['Path'])
|
||||
|
||||
'''check bluray directories and point it to ./BDMV/index.bdmv'''
|
||||
if validate_bluray_dir(obj['Path'] + obj['Filename']):
|
||||
if ('Container' not in obj or ('Container' in obj and obj['Container'] == 'bluray')) and validate_bluray_dir(obj['Path'] + obj['Filename']):
|
||||
obj['Path'] = obj['Path'] + obj['Filename'] + '/BDMV/'
|
||||
obj['Filename'] = 'index.bdmv'
|
||||
LOG.debug("Bluray directory %s", obj['Path'])
|
||||
|
|
|
|||
|
|
@ -412,13 +412,13 @@ class TVShows(KodiDb):
|
|||
obj['Path'] = obj['Path'].replace(obj['Filename'], "")
|
||||
|
||||
'''check dvd directories and point it to ./VIDEO_TS/VIDEO_TS.IFO'''
|
||||
if validate_dvd_dir(obj['Path'] + obj['Filename']):
|
||||
if ('Container' not in obj or ('Container' in obj and obj['Container'] == 'dvd')) and validate_dvd_dir(obj['Path'] + obj['Filename']):
|
||||
obj['Path'] = obj['Path'] + obj['Filename'] + '/VIDEO_TS/'
|
||||
obj['Filename'] = 'VIDEO_TS.IFO'
|
||||
LOG.debug("DVD directory %s", obj['Path'])
|
||||
|
||||
'''check bluray directories and point it to ./BDMV/index.bdmv'''
|
||||
if validate_bluray_dir(obj['Path'] + obj['Filename']):
|
||||
if ('Container' not in obj or ('Container' in obj and obj['Container'] == 'bluray')) and validate_bluray_dir(obj['Path'] + obj['Filename']):
|
||||
obj['Path'] = obj['Path'] + obj['Filename'] + '/BDMV/'
|
||||
obj['Filename'] = 'index.bdmv'
|
||||
LOG.debug("Bluray directory %s", obj['Path'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue