mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-11-10 12:16:12 +00:00
Update boxset title
This commit is contained in:
parent
3e1edb9a66
commit
1d8d01b5f8
2 changed files with 10 additions and 8 deletions
|
@ -51,7 +51,6 @@ class KodiMovies(KodiItems):
|
||||||
return kodi_id
|
return kodi_id
|
||||||
|
|
||||||
def add_movie(self, *args):
|
def add_movie(self, *args):
|
||||||
|
|
||||||
query = (
|
query = (
|
||||||
'''
|
'''
|
||||||
INSERT INTO movie(
|
INSERT INTO movie(
|
||||||
|
@ -77,7 +76,6 @@ class KodiMovies(KodiItems):
|
||||||
self.cursor.execute(query, (args))
|
self.cursor.execute(query, (args))
|
||||||
|
|
||||||
def update_movie(self, *args):
|
def update_movie(self, *args):
|
||||||
|
|
||||||
query = ' '.join((
|
query = ' '.join((
|
||||||
|
|
||||||
"UPDATE movie",
|
"UPDATE movie",
|
||||||
|
@ -89,7 +87,6 @@ class KodiMovies(KodiItems):
|
||||||
self.cursor.execute(query, (args))
|
self.cursor.execute(query, (args))
|
||||||
|
|
||||||
def update_movie_17(self, *args):
|
def update_movie_17(self, *args):
|
||||||
|
|
||||||
query = ' '.join((
|
query = ' '.join((
|
||||||
|
|
||||||
"UPDATE movie",
|
"UPDATE movie",
|
||||||
|
@ -159,7 +156,6 @@ class KodiMovies(KodiItems):
|
||||||
return country_id
|
return country_id
|
||||||
|
|
||||||
def _get_country(self, country):
|
def _get_country(self, country):
|
||||||
|
|
||||||
query = ' '.join((
|
query = ' '.join((
|
||||||
|
|
||||||
"SELECT country_id",
|
"SELECT country_id",
|
||||||
|
@ -176,7 +172,6 @@ class KodiMovies(KodiItems):
|
||||||
return country_id
|
return country_id
|
||||||
|
|
||||||
def add_boxset(self, boxset):
|
def add_boxset(self, boxset):
|
||||||
|
|
||||||
query = ' '.join((
|
query = ' '.join((
|
||||||
|
|
||||||
"SELECT idSet",
|
"SELECT idSet",
|
||||||
|
@ -201,8 +196,16 @@ class KodiMovies(KodiItems):
|
||||||
|
|
||||||
return set_id
|
return set_id
|
||||||
|
|
||||||
def set_boxset(self, set_id, movie_id):
|
def update_boxset(self, set_id, boxset):
|
||||||
|
query = ' '.join((
|
||||||
|
|
||||||
|
"UPDATE sets",
|
||||||
|
"SET strSet = ?",
|
||||||
|
"WHERE idSet = ?"
|
||||||
|
))
|
||||||
|
self.cursor.execute(query, (boxset, set_id,))
|
||||||
|
|
||||||
|
def set_boxset(self, set_id, movie_id):
|
||||||
query = ' '.join((
|
query = ' '.join((
|
||||||
|
|
||||||
"UPDATE movie",
|
"UPDATE movie",
|
||||||
|
@ -212,7 +215,6 @@ class KodiMovies(KodiItems):
|
||||||
self.cursor.execute(query, (set_id, movie_id,))
|
self.cursor.execute(query, (set_id, movie_id,))
|
||||||
|
|
||||||
def remove_from_boxset(self, movie_id):
|
def remove_from_boxset(self, movie_id):
|
||||||
|
|
||||||
query = ' '.join((
|
query = ' '.join((
|
||||||
|
|
||||||
"UPDATE movie",
|
"UPDATE movie",
|
||||||
|
|
|
@ -325,7 +325,7 @@ class Movies(Items):
|
||||||
emby_dbitem = emby_db.getItem_byId(boxsetid)
|
emby_dbitem = emby_db.getItem_byId(boxsetid)
|
||||||
try:
|
try:
|
||||||
setid = emby_dbitem[0]
|
setid = emby_dbitem[0]
|
||||||
|
self.kodi_db.update_boxset(setid, title)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
setid = self.kodi_db.add_boxset(title)
|
setid = self.kodi_db.add_boxset(title)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue