Get rid of some unneccessary logs in lib sync
This commit is contained in:
parent
5be1e3a24a
commit
d16b931486
1 changed files with 0 additions and 14 deletions
|
@ -315,7 +315,6 @@ class Movies(Items):
|
||||||
# If the item doesn't exist, we'll add it to the database
|
# If the item doesn't exist, we'll add it to the database
|
||||||
update_item = True
|
update_item = True
|
||||||
itemid = API.getRatingKey()
|
itemid = API.getRatingKey()
|
||||||
self.logMsg("Processing item %s" % itemid, 1)
|
|
||||||
# Cannot parse XML, abort
|
# Cannot parse XML, abort
|
||||||
if not itemid:
|
if not itemid:
|
||||||
self.logMsg("Cannot parse XML data for movie", -1)
|
self.logMsg("Cannot parse XML data for movie", -1)
|
||||||
|
@ -380,7 +379,6 @@ class Movies(Items):
|
||||||
studio = studios[0]
|
studio = studios[0]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
studio = None
|
studio = None
|
||||||
self.logMsg('Read all attributes', 1)
|
|
||||||
|
|
||||||
# Find one trailer
|
# Find one trailer
|
||||||
trailer = None
|
trailer = None
|
||||||
|
@ -429,7 +427,6 @@ class Movies(Items):
|
||||||
'mode': "play"
|
'mode': "play"
|
||||||
}
|
}
|
||||||
filename = "%s?%s" % (path, urllib.urlencode(params))
|
filename = "%s?%s" % (path, urllib.urlencode(params))
|
||||||
self.logMsg('Path set for item', 1)
|
|
||||||
##### UPDATE THE MOVIE #####
|
##### UPDATE THE MOVIE #####
|
||||||
if update_item:
|
if update_item:
|
||||||
self.logMsg("UPDATE movie itemid: %s - Title: %s" % (itemid, title), 1)
|
self.logMsg("UPDATE movie itemid: %s - Title: %s" % (itemid, title), 1)
|
||||||
|
@ -476,7 +473,6 @@ class Movies(Items):
|
||||||
# Create the reference in emby table
|
# Create the reference in emby table
|
||||||
emby_db.addReference(itemid, movieid, "Movie", "movie", fileid, pathid, None, checksum, viewid)
|
emby_db.addReference(itemid, movieid, "Movie", "movie", fileid, pathid, None, checksum, viewid)
|
||||||
|
|
||||||
self.logMsg('Done add or update for item', 1)
|
|
||||||
# Update the path
|
# Update the path
|
||||||
query = ' '.join((
|
query = ' '.join((
|
||||||
|
|
||||||
|
@ -953,7 +949,6 @@ class TVShows(Items):
|
||||||
|
|
||||||
update_item = True
|
update_item = True
|
||||||
itemid = API.getRatingKey()
|
itemid = API.getRatingKey()
|
||||||
self.logMsg("Processing item %s" % itemid, 1)
|
|
||||||
|
|
||||||
if not itemid:
|
if not itemid:
|
||||||
self.logMsg("Cannot parse XML data for TV show", -1)
|
self.logMsg("Cannot parse XML data for TV show", -1)
|
||||||
|
@ -1008,8 +1003,6 @@ class TVShows(Items):
|
||||||
except IndexError:
|
except IndexError:
|
||||||
studio = None
|
studio = None
|
||||||
|
|
||||||
self.logMsg('Read all attributes', 1)
|
|
||||||
|
|
||||||
# GET THE FILE AND PATH #####
|
# GET THE FILE AND PATH #####
|
||||||
playurl = API.getKey()
|
playurl = API.getKey()
|
||||||
|
|
||||||
|
@ -1043,7 +1036,6 @@ class TVShows(Items):
|
||||||
# Set plugin path
|
# Set plugin path
|
||||||
toplevelpath = "plugin://plugin.video.plexkodiconnect.tvshows/"
|
toplevelpath = "plugin://plugin.video.plexkodiconnect.tvshows/"
|
||||||
path = "%s%s/" % (toplevelpath, itemid)
|
path = "%s%s/" % (toplevelpath, itemid)
|
||||||
self.logMsg('Path set for item', 1)
|
|
||||||
# UPDATE THE TVSHOW #####
|
# UPDATE THE TVSHOW #####
|
||||||
if update_item:
|
if update_item:
|
||||||
self.logMsg("UPDATE tvshow itemid: %s - Title: %s" % (itemid, title), 1)
|
self.logMsg("UPDATE tvshow itemid: %s - Title: %s" % (itemid, title), 1)
|
||||||
|
@ -1098,7 +1090,6 @@ class TVShows(Items):
|
||||||
# Create the reference in emby table
|
# Create the reference in emby table
|
||||||
emby_db.addReference(itemid, showid, "Series", "tvshow", pathid=pathid,
|
emby_db.addReference(itemid, showid, "Series", "tvshow", pathid=pathid,
|
||||||
checksum=checksum, mediafolderid=viewid)
|
checksum=checksum, mediafolderid=viewid)
|
||||||
self.logMsg('Done add or update for item', 1)
|
|
||||||
# Update the path
|
# Update the path
|
||||||
query = ' '.join((
|
query = ' '.join((
|
||||||
|
|
||||||
|
@ -1155,7 +1146,6 @@ class TVShows(Items):
|
||||||
if not itemid:
|
if not itemid:
|
||||||
self.logMsg('Error getting itemid for season, skipping', -1)
|
self.logMsg('Error getting itemid for season, skipping', -1)
|
||||||
return
|
return
|
||||||
self.logMsg("Processing item %s" % itemid, 1)
|
|
||||||
kodicursor = self.kodicursor
|
kodicursor = self.kodicursor
|
||||||
emby_db = self.emby_db
|
emby_db = self.emby_db
|
||||||
kodi_db = self.kodi_db
|
kodi_db = self.kodi_db
|
||||||
|
@ -1221,7 +1211,6 @@ class TVShows(Items):
|
||||||
if not itemid:
|
if not itemid:
|
||||||
self.logMsg('Error getting itemid for episode, skipping', -1)
|
self.logMsg('Error getting itemid for episode, skipping', -1)
|
||||||
return
|
return
|
||||||
self.logMsg("Processing item %s" % itemid, 1)
|
|
||||||
emby_dbitem = emby_db.getItem_byId(itemid)
|
emby_dbitem = emby_db.getItem_byId(itemid)
|
||||||
try:
|
try:
|
||||||
episodeid = emby_dbitem[0]
|
episodeid = emby_dbitem[0]
|
||||||
|
@ -1700,7 +1689,6 @@ class Music(Items):
|
||||||
|
|
||||||
update_item = True
|
update_item = True
|
||||||
itemid = API.getRatingKey()
|
itemid = API.getRatingKey()
|
||||||
self.logMsg("Processing item %s" % itemid, 1)
|
|
||||||
emby_dbitem = emby_db.getItem_byId(itemid)
|
emby_dbitem = emby_db.getItem_byId(itemid)
|
||||||
try:
|
try:
|
||||||
artistid = emby_dbitem[0]
|
artistid = emby_dbitem[0]
|
||||||
|
@ -1807,7 +1795,6 @@ class Music(Items):
|
||||||
if not itemid:
|
if not itemid:
|
||||||
self.logMsg('Error processing Album, skipping', -1)
|
self.logMsg('Error processing Album, skipping', -1)
|
||||||
return
|
return
|
||||||
self.logMsg("Processing item %s" % itemid, 1)
|
|
||||||
emby_dbitem = emby_db.getItem_byId(itemid)
|
emby_dbitem = emby_db.getItem_byId(itemid)
|
||||||
try:
|
try:
|
||||||
albumid = emby_dbitem[0]
|
albumid = emby_dbitem[0]
|
||||||
|
@ -2014,7 +2001,6 @@ class Music(Items):
|
||||||
if not itemid:
|
if not itemid:
|
||||||
self.logMsg('Error processing Song; skipping', -1)
|
self.logMsg('Error processing Song; skipping', -1)
|
||||||
return
|
return
|
||||||
self.logMsg("Processing item %s" % itemid, 1)
|
|
||||||
emby_dbitem = emby_db.getItem_byId(itemid)
|
emby_dbitem = emby_db.getItem_byId(itemid)
|
||||||
try:
|
try:
|
||||||
songid = emby_dbitem[0]
|
songid = emby_dbitem[0]
|
||||||
|
|
Loading…
Reference in a new issue