Ok, another issue I encountered (sorry, hopefully the last one
:
When I add a video to my video folder this addon triggers a library update as expected. But the update fails to detect the new video file.
This is how it looks:
Code:
22:38:24 T:139901303514880 DEBUG: service.watchdog: poller: create event appeared in set(['smb://BEN/MASS2/Video/TV Shows/Once Upon A Time/Season 1/tvp-oneupon-s01e16-DELETE_720p.mkv'])
22:38:24 T:139901295122176 DEBUG: service.watchdog: <created> <smb://BEN/MASS2/Video/TV Shows/*>
22:38:28 T:139901714560768 DEBUG: service.watchdog: scanning smb://BEN/MASS2/Video/TV Shows/ (video)
In XBMC the status dialog pops up for one millisecond but then the new episode does not get added. When I however trigger a library update manually in XBMC then it is detected instantly.
I think it is related to the selective video update triggered by the plugin here in main.py:
Code:
def scan(self, library, path):
""" Tell xbmc to scan. Returns immediately when scanning has started. """
while self._xbmc_is_busy():
pass
log("scanning %s (%s)" % (path, library))
xbmc.executebuiltin("UpdateLibrary(%s,%s)" % (library, escape_param(path)))
When I change it to
Code:
xbmc.executebuiltin("UpdateLibrary(%s)" % (library))
it works as expected (it takes longer cause it triggers a complete instead of a selective update tho).
So I think its either a bug in XBMC regarding selective library update or the addon does not pass the path correctly to XBMC.
But it looks like XBMC sees the path correctly:
Code:
22:38:28 T:139901714560768 DEBUG: service.watchdog: scanning smb://BEN/MASS2/Video/TV Shows/ (video)
22:38:28 T:139902033319680 NOTICE: Thread CVideoInfoScanner start, auto delete: false
22:38:28 T:139902595012416 DEBUG: ------ Window Init (DialogExtendedProgressBar.xml) ------
22:38:28 T:139902033319680 NOTICE: VideoInfoScanner: Starting scan ..
22:38:28 T:139902033319680 DEBUG: CAnnouncementManager - Announcement: OnScanStarted from xbmc
22:38:28 T:139902033319680 DEBUG: GOT ANNOUNCEMENT, type: 16, from xbmc, message OnScanStarted
22:38:28 T:139902033319680 DEBUG: OpenDir - Using authentication url smb://<mysecret>@BEN/MASS2/Video/TV%20Shows
22:38:28 T:139902033319680 NOTICE: VideoInfoScanner: Finished scan. Scanning for video info took 00:00
This is the complete log:
http://pastebin.com/SKnXMWY1
EDIT:
Ok, seems to be an XBMC bug:
http://forum.xbmc.org/showthread.php?tid...id=1384514