mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 18:26:15 +00:00
commit
b248961517
6 changed files with 13 additions and 13 deletions
|
@ -23,7 +23,7 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Parse Changlog
|
- name: Parse Changelog
|
||||||
run: |
|
run: |
|
||||||
pip install emoji
|
pip install emoji
|
||||||
cat << EOF >> cl.md
|
cat << EOF >> cl.md
|
||||||
|
|
|
@ -274,7 +274,7 @@ def _get_items(query, server_id=None):
|
||||||
|
|
||||||
items['Items'].extend(result['Items'])
|
items['Items'].extend(result['Items'])
|
||||||
# Using items to return data and communicate a restore point back to the callee is
|
# Using items to return data and communicate a restore point back to the callee is
|
||||||
# a violation of the SRP. TODO: Seperate responsibilities.
|
# a violation of the SRP. TODO: Separate responsibilities.
|
||||||
items['RestorePoint'] = query
|
items['RestorePoint'] = query
|
||||||
yield items
|
yield items
|
||||||
del items['Items'][:]
|
del items['Items'][:]
|
||||||
|
|
|
@ -512,7 +512,7 @@ class FullSync(object):
|
||||||
|
|
||||||
def refresh_boxsets(self, library):
|
def refresh_boxsets(self, library):
|
||||||
|
|
||||||
''' Delete all exisitng boxsets and re-add.
|
''' Delete all existing boxsets and re-add.
|
||||||
'''
|
'''
|
||||||
with self.video_database_locks() as (videodb, jellyfindb):
|
with self.video_database_locks() as (videodb, jellyfindb):
|
||||||
obj = Movies(self.server, jellyfindb, videodb, self.direct_path, library)
|
obj = Movies(self.server, jellyfindb, videodb, self.direct_path, library)
|
||||||
|
|
|
@ -94,7 +94,7 @@ class ConnectionManager(object):
|
||||||
LOG.info("Failed to login as `"+username+"`")
|
LOG.info("Failed to login as `"+username+"`")
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
LOG.info("Succesfully logged in as %s" % (username))
|
LOG.info("Successfully logged in as %s" % (username))
|
||||||
# TODO Change when moving to database storage of server details
|
# TODO Change when moving to database storage of server details
|
||||||
credentials = self.credentials.get()
|
credentials = self.credentials.get()
|
||||||
|
|
||||||
|
@ -267,7 +267,7 @@ class ConnectionManager(object):
|
||||||
|
|
||||||
return servers
|
return servers
|
||||||
|
|
||||||
# TODO: Make IPv6 compatable
|
# TODO: Make IPv6 compatible
|
||||||
def _convert_endpoint_address_to_manual_address(self, info):
|
def _convert_endpoint_address_to_manual_address(self, info):
|
||||||
|
|
||||||
if info.get('Address') and info.get('EndpointAddress'):
|
if info.get('Address') and info.get('EndpointAddress'):
|
||||||
|
|
|
@ -188,17 +188,17 @@ class Movies(KodiDb):
|
||||||
|
|
||||||
obj['Path'] = obj['Path'].replace(obj['Filename'], "")
|
obj['Path'] = obj['Path'].replace(obj['Filename'], "")
|
||||||
|
|
||||||
'''check dvd directries and point it to ./VIDEO_TS/VIDEO_TS.IFO'''
|
'''check dvd directories and point it to ./VIDEO_TS/VIDEO_TS.IFO'''
|
||||||
if validate_dvd_dir(obj['Path'] + obj['Filename']):
|
if validate_dvd_dir(obj['Path'] + obj['Filename']):
|
||||||
obj['Path'] = obj['Path'] + obj['Filename'] + '/VIDEO_TS/'
|
obj['Path'] = obj['Path'] + obj['Filename'] + '/VIDEO_TS/'
|
||||||
obj['Filename'] = 'VIDEO_TS.IFO'
|
obj['Filename'] = 'VIDEO_TS.IFO'
|
||||||
LOG.debug("DVD directry %s", obj['Path'])
|
LOG.debug("DVD directory %s", obj['Path'])
|
||||||
|
|
||||||
'''check bluray directries and point it to ./BDMV/index.bdmv'''
|
'''check bluray directories and point it to ./BDMV/index.bdmv'''
|
||||||
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("Bluray directry %s", obj['Path'])
|
LOG.debug("Bluray directory %s", obj['Path'])
|
||||||
|
|
||||||
else:
|
else:
|
||||||
obj['Path'] = "plugin://plugin.video.jellyfin/%s/" % obj['LibraryId']
|
obj['Path'] = "plugin://plugin.video.jellyfin/%s/" % obj['LibraryId']
|
||||||
|
|
|
@ -411,17 +411,17 @@ class TVShows(KodiDb):
|
||||||
|
|
||||||
obj['Path'] = obj['Path'].replace(obj['Filename'], "")
|
obj['Path'] = obj['Path'].replace(obj['Filename'], "")
|
||||||
|
|
||||||
'''check dvd directries and point it to ./VIDEO_TS/VIDEO_TS.IFO'''
|
'''check dvd directories and point it to ./VIDEO_TS/VIDEO_TS.IFO'''
|
||||||
if validate_dvd_dir(obj['Path'] + obj['Filename']):
|
if validate_dvd_dir(obj['Path'] + obj['Filename']):
|
||||||
obj['Path'] = obj['Path'] + obj['Filename'] + '/VIDEO_TS/'
|
obj['Path'] = obj['Path'] + obj['Filename'] + '/VIDEO_TS/'
|
||||||
obj['Filename'] = 'VIDEO_TS.IFO'
|
obj['Filename'] = 'VIDEO_TS.IFO'
|
||||||
LOG.debug("DVD directry %s", obj['Path'])
|
LOG.debug("DVD directory %s", obj['Path'])
|
||||||
|
|
||||||
'''check bluray directries and point it to ./BDMV/index.bdmv'''
|
'''check bluray directories and point it to ./BDMV/index.bdmv'''
|
||||||
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("Bluray directry %s", obj['Path'])
|
LOG.debug("Bluray directory %s", obj['Path'])
|
||||||
|
|
||||||
else:
|
else:
|
||||||
obj['Path'] = "plugin://plugin.video.jellyfin/%s/" % obj['SeriesId']
|
obj['Path'] = "plugin://plugin.video.jellyfin/%s/" % obj['SeriesId']
|
||||||
|
|
Loading…
Reference in a new issue