mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-24 09:46:11 +00:00
fixed some typos
This commit is contained in:
parent
d93f5044b3
commit
cabcdd5e90
1 changed files with 6 additions and 8 deletions
|
@ -232,6 +232,11 @@ class WriteKodiDB():
|
||||||
studios = API().getStudios(MBitem)
|
studios = API().getStudios(MBitem)
|
||||||
studio = " / ".join(studios)
|
studio = " / ".join(studios)
|
||||||
mpaa = MBitem.get("OfficialRating")
|
mpaa = MBitem.get("OfficialRating")
|
||||||
|
runtime = int(timeInfo.get('Duration'))*60
|
||||||
|
plot = utils.convertEncoding(API().getOverview(MBitem))
|
||||||
|
title = utils.convertEncoding(MBitem["Name"])
|
||||||
|
sorttitle = utils.convertEncoding(MBitem["SortName"])
|
||||||
|
rating = MBitem.get("CommunityRating")
|
||||||
|
|
||||||
if MBitem.get("DateCreated") != None:
|
if MBitem.get("DateCreated") != None:
|
||||||
dateadded = MBitem["DateCreated"].replace("T"," ")
|
dateadded = MBitem["DateCreated"].replace("T"," ")
|
||||||
|
@ -267,13 +272,6 @@ class WriteKodiDB():
|
||||||
tlpathid = tlpathid + 1
|
tlpathid = tlpathid + 1
|
||||||
pathsql="insert into path(idPath, strPath, strContent, strScraper, noUpdate) values(?, ?, ?, ?, ?)"
|
pathsql="insert into path(idPath, strPath, strContent, strScraper, noUpdate) values(?, ?, ?, ?, ?)"
|
||||||
cursor.execute(pathsql, (tlpathid,toplevelpath,"tvshows","metadata.local",1))
|
cursor.execute(pathsql, (tlpathid,toplevelpath,"tvshows","metadata.local",1))
|
||||||
|
|
||||||
|
|
||||||
runtime = int(timeInfo.get('Duration'))*60
|
|
||||||
plot = utils.convertEncoding(API().getOverview(MBitem))
|
|
||||||
title = utils.convertEncoding(MBitem["Name"])
|
|
||||||
sorttitle = utils.convertEncoding(MBitem["SortName"])
|
|
||||||
rating = MBitem.get("CommunityRating")
|
|
||||||
|
|
||||||
#create the tvshow
|
#create the tvshow
|
||||||
cursor.execute("select coalesce(max(idShow),0) as showid from tvshow")
|
cursor.execute("select coalesce(max(idShow),0) as showid from tvshow")
|
||||||
|
@ -296,7 +294,7 @@ class WriteKodiDB():
|
||||||
#### UPDATE THE TV SHOW #############
|
#### UPDATE THE TV SHOW #############
|
||||||
else:
|
else:
|
||||||
pathsql="UPDATE tvshow SET (c00 = ?, c01 = ?, c04 = ?, c05 = ?, c08 = ?, c09 = ?, c13 = ?, c14 = ?, c15 = ? WHERE idShow = ?"
|
pathsql="UPDATE tvshow SET (c00 = ?, c01 = ?, c04 = ?, c05 = ?, c08 = ?, c09 = ?, c13 = ?, c14 = ?, c15 = ? WHERE idShow = ?"
|
||||||
cursor.execute(pathsql, title, plot, rating, premieredate, title, genre, mpaa, studio, sorttitle, showid)
|
cursor.execute(pathsql, (title, plot, rating, premieredate, title, genre, mpaa, studio, sorttitle, showid))
|
||||||
|
|
||||||
#update the checksum in emby table
|
#update the checksum in emby table
|
||||||
cursor.execute("UPDATE emby SET checksum = ? WHERE emby_id = ?", (API().getChecksum(MBitem), MBitem["Id"]))
|
cursor.execute("UPDATE emby SET checksum = ? WHERE emby_id = ?", (API().getChecksum(MBitem), MBitem["Id"]))
|
||||||
|
|
Loading…
Reference in a new issue