First of all, thank you so much Sleuteltje! This is exactly what I've been looking for
I spent all of yesterday setting up a rasperry pi for my little brother using raspbian and installing kodi separately and finished with the addition of your plugin (which I'll be adding to my personal pi too).
It worked flawlessly and after a fair bit of time we successfully added some of his favorite channels, some of which have over 3000 videos! I'm a little bit worried I may have set him up for a youtube addiction.. I checked some streams and it all worked perfectly
Unfortunately this morning he woke up to some errors. I tried reinstalling the addon but I don't think it changed anything.
We discussed what had changed since yesterday but the only thing we can think of is that this morning he attempted to add a couple of streams to the kodi playlist (ie bringing up the menu on a video and selecting "Queue item" before playing them.
EDIT: sorry i forgot to give some details regarding my system!
Kodi compiled Aug 30 2015 by GCC 4.9.2 for Linux ARM 32-bit version 3.16.7 (200711)
Running on Raspbian GNU/Linux 8 (jessie), kernel: Linux ARM 32-bit version 3.18.0-trunk-rpi2
FFmpeg statically linked, version: 2.6.4-kodi-2.6.4-Isengard
Youtube Library: version 0.9.5
Attempting to play a video throws back this error (i made sure we selected a video that worked yesterday)
Code:
13:02:21 T:1661989808 NOTICE: Previous line repeats 2 times.
13:02:21 T:1661989808 NOTICE: Thread JobWorker start, auto delete: true
13:02:27 T:1780945840 NOTICE: Previous line repeats 2 times.
13:02:27 T:1780945840 NOTICE: Thread BackgroundLoader start, auto delete: false
13:02:34 T:1780945840 NOTICE: Previous line repeats 2 times.
13:02:34 T:1780945840 NOTICE: Thread LanguageInvoker start, auto delete: false
13:02:35 T:1780945840 NOTICE: -->Python Interpreter Initialized<--
13:02:35 T:1780945840 NOTICE: MICHS YoutubeLibrary:::::::: Running
13:02:40 T:1780945840 NOTICE: script.module.youtube.dl: youtube_dl core version: 2015.12.23
13:03:11 T:1780945840 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ZeroDivisionError'>
Error Contents: integer division or modulo by zero
Traceback (most recent call last):
File "/home/####/.kodi/addons/plugin.video.youtubelibrary/addon.py", line 139, in <module>
play.playVid(id, filename, season, episode, show) #Play the video
File "/home/####/.kodi/addons/plugin.video.youtubelibrary/resources/lib/play.py", line 158, in pl$
diff = currentTime / totalTime #Calculate how much of the video has been watced
ZeroDivisionError: integer division or modulo by zero
-->End of Python script error report<--
13:03:12 T:1946550272 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.youtubelibrary/?mode=play&id=TrvefxktlTg&show=YOGSCAST Lewis & Simon&season=2008&episode=1&filename=s2008e1 - Warcraft - How To_ Eredar Twins]
13:03:26 T:1780945840 NOTICE: Thread BackgroundLoader start, auto delete: false
13:03:29 T:1762333616 NOTICE: Thread JobWorker start, auto delete: true
13:04:00 T:1780945840 NOTICE: Previous line repeats 1 times.
13:04:00 T:1780945840 NOTICE: Thread BackgroundLoader start, auto delete: false
13:04:04 T:1780945840 NOTICE: Previous line repeats 2 times.
13:04:04 T:1780945840 NOTICE: Thread JobWorker start, auto delete: true
13:04:22 T:1739584432 NOTICE: Previous line repeats 1 times.
13:04:22 T:1739584432 NOTICE: Thread BackgroundLoader start, auto delete: false
And when I attempted to reinstall the plugin I got this:
Code:
13:10:20 T:1803547568 NOTICE: Previous line repeats 6 times.
13:10:20 T:1803547568 NOTICE: Thread JobWorker start, auto delete: true
13:10:24 T:1780945840 NOTICE: Previous line repeats 1 times.
13:10:24 T:1780945840 NOTICE: Thread BackgroundLoader start, auto delete: false
13:10:58 T:1780945840 NOTICE: Previous line repeats 2 times.
13:10:58 T:1780945840 NOTICE: Thread LanguageInvoker start, auto delete: false
13:10:58 T:1661989808 NOTICE: Thread BackgroundLoader start, auto delete: false
13:10:58 T:1780945840 NOTICE: -->Python Interpreter Initialized<--
13:10:58 T:1780945840 NOTICE: MICHS YOUTUBELIBRARY plugin.video.youtubelibrary: SERVICE.py started!
13:10:58 T:1780945840 NOTICE: Thread LanguageInvoker start, auto delete: false
13:10:59 T:1780945840 NOTICE: -->Python Interpreter Initialized<--
13:10:59 T:1780945840 NOTICE: MICHS YoutubeLibrary:::::::: Running
13:11:04 T:1780945840 NOTICE: script.module.youtube.dl: youtube_dl core version: 2015.12.23
13:11:04 T:1780945840 WARNING: Attempt to use invalid handle -1
13:11:04 T:1780945840 NOTICE: MICHS YoutubeLibrary:::::::: Playlist last scanned on: 2013-01-06 13:11:04.293011, now: 2016-01-06 13:11:04.293134
13:11:04 T:1780945840 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IOError'>
Error Contents: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl$
Traceback (most recent call last):
File "/home/####/.kodi/addons/plugin.video.youtubelibrary/addon.py", line 73, in <module>
routes.run_service()
File "/home/####/.kodi/addons/plugin.video.youtubelibrary/resources/lib/routes.py", line 34, in r$
service.update_playlists()
File "/home/####/.kodi/addons/plugin.video.youtubelibrary/resources/lib/service.py", line 57, in $
update_playlist(child.attrib['id'], type=type) #Update the nfo & strm files for this playlist
File "/home/####/.kodi/addons/plugin.video.youtubelibrary/resources/lib/service.py", line 86, in $
generators.write_tvshow_nfo(folder, settings)
File "/home/####/.kodi/addons/plugin.video.youtubelibrary/resources/lib/generators.py", line 987,$
urllib.urlretrieve(settings.find('thumb').text, folder+"/folder.jpg")
File "/usr/lib/python2.7/urllib.py", line 98, in urlretrieve
return opener.retrieve(url, filename, reporthook, data)
File "/usr/lib/python2.7/urllib.py", line 245, in retrieve
fp = self.open(url, data)
File "/usr/lib/python2.7/urllib.py", line 213, in open
return getattr(self, name)(url)
File "/usr/lib/python2.7/urllib.py", line 443, in open_https
h.endheaders(data)
File "/usr/lib/python2.7/httplib.py", line 997, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 850, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 812, in send
self.connect()
File "/usr/lib/python2.7/httplib.py", line 1212, in connect
server_hostname=server_hostname)
File "/usr/lib/python2.7/ssl.py", line 350, in wrap_socket
_context=self)
File "/usr/lib/python2.7/ssl.py", line 566, in __init__
self.do_handshake()
File "/usr/lib/python2.7/ssl.py", line 788, in do_handshake
self._sslobj.do_handshake()
IOError: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)
-->End of Python script error report<--