2013-04-20, 10:18
I write a plugin to watch online series from www.soap4.me. I try to set watch status of episode by this construction:
info={}
info['season'] = int(row['season'])
info['episode'] = int(row['episode'])
info['playcount'] = 1
li = xbmcgui.ListItem(info['title'], iconImage = img, thumbnailImage = img)
li.setProperty('IsPlayable', 'true')
li.setInfo(type = vtype, infoLabels = info)
xbmcplugin.addDirectoryItem(h, uri, li, IsFolder)
When the episode is not yet viewed (Where is now record in files table in MyVideos75.db), all is ok. Episode mark as watch. But when i start playing this episode, xbmc create record in Library for this file. After that xbmc ignore setInfo in plugin script and mark episode with information from Library.
How can i overwrite information from Library. Can i do it from script or i must write with database and change watch status there?
I use Xbmc 12.1
info={}
info['season'] = int(row['season'])
info['episode'] = int(row['episode'])
info['playcount'] = 1
li = xbmcgui.ListItem(info['title'], iconImage = img, thumbnailImage = img)
li.setProperty('IsPlayable', 'true')
li.setInfo(type = vtype, infoLabels = info)
xbmcplugin.addDirectoryItem(h, uri, li, IsFolder)
When the episode is not yet viewed (Where is now record in files table in MyVideos75.db), all is ok. Episode mark as watch. But when i start playing this episode, xbmc create record in Library for this file. After that xbmc ignore setInfo in plugin script and mark episode with information from Library.
How can i overwrite information from Library. Can i do it from script or i must write with database and change watch status there?
I use Xbmc 12.1