MovieLib - Your movie database on web
(2014-02-15, 23:40)Regss Wrote:
(2014-02-15, 21:31)Cocotus Wrote:
(2014-02-15, 20:53)Regss Wrote: Your share is not always available? Only when you play it? I don't understand this.
You used the file that I paste above?
Whit SMB it's work for me.

Myshare is always available but I set up my server to go into hibernate when noone is surfing on it (I think it's something like 30min after last access to server so it should'nt be problem here). I used your py file and here's the output on a SMB share:

20:25:10 T:139739660601088  NOTICE: >>>> Movielib <<<< Check Token
20:25:10 T:139739660601088  NOTICE: >>>> Movielib <<<< true
20:25:10 T:139739660601088  NOTICE: >>>> Movielib <<<< Run Sync Movies
20:25:10 T:139739660601088  NOTICE: >>>> Movielib <<<< movielibID: []
20:25:10 T:139739660601088  NOTICE: >>>> Movielib <<<< {u'jsonrpc': u'2.0', u'id': 1, u'result': {u'movies': [{u'movieid': 1, u'label': u'Captain America - The First Avenger'}], u'limits': {u'start': 0, u'total': 1, u'end': 1}}}
20:25:10 T:139739660601088  NOTICE: >>>> Movielib <<<< xbmcID: ['1']
20:25:10 T:139739660601088  NOTICE: >>>> Movielib <<<< toAddID: ['1']
20:25:10 T:139739660601088  NOTICE: >>>> Movielib <<<< toRemoveID: []
20:25:10 T:139739660601088  NOTICE: >>>> Movielib <<<< {u'jsonrpc': u'2.0', u'id': u'1', u'result': {u'moviedetails': {u'originaltitle': u'Captain America: The First Avenger', u'dateadded': u'2013-02-24 10:29:04', u'movieid': 1, u'plot': u'Der Amerikaner Steve Rogers ist sehr klein und durch und durch schm\xe4chtig und mager. Sein gro\xdfer Traum ist es ein Soldat zu werden und seinem Land im 2. Weltkrieg zu dienen. Immer wieder wird er wegen seiner Statur abgelehnt, bis ein Wissenschaftler seine wahre St\xe4rke, Mut und Charakter, erkennt und ihn im Auftrag des Milit\xe4rs ein revolution\xe4res Serum erproben l\xe4sst...', u'fanart': u'image://smb%3a%2f%2f192.168.2.200%2fMedia_1%2fMovie%2fNeuer%20Ordner%2fCaptain%20America%2ffanart.jpg/', u'country': [u'United States of America'], u'lastplayed': u'2014-02-15 19:38:42', u'thumbnail': u'image://smb%3a%2f%2f192.168.2.200%2fMedia_1%2fMovie%2fNeuer%20Ordner%2fCaptain%20America%2fposter.jpg/', u'label': u'Captain America - The First Avenger', u'director': [u'Joe Johnston'], u'cast': [{u'role': u'Captain America / Steve Rogers', u'name': u'Chris Evans', u'thumbnail': u'image://smb%3a%2f%2f192.168.2.200%2fMedia_1%2fMovie%2fNeuer%20Ordner%2fCaptain%20America%2f.actors%2fChris_Evans.jpg/'}, {u'role': u'Peggy Carter', u'name': u'Hayley Atwell', u'thumbnail': u'image://smb%3a%2f%2f192.168.2.200%2fMedia_1%2fMovie%2fNeuer%20Ordner%2fCaptain%20America%2f.actors%2fHayley_Atwell.jpg/'}, {u'role': u"James Buchanan 'Bucky' Barnes", u'name': u'Sebastian Stan', u'thumbnail': u'image://smb%3a%2f%2f192.168.2.200%2fMedia_1%2fMovie%2fNeuer%20Ordner%2fCaptain%20America%2f.actors%2fSebastian_Stan.jpg/'}, {u'role': u'Colonel Chester Phillips', u'name': u'Tommy Lee Jones', u'thumbnail': u'image://smb%3a%2f%2f192.168.2.200%2fMedia_1%2fMovie%2fNeuer%20Ordner%2fCaptain%20America%2f.actors%2fTommy_Lee_Jones.jpg/'}, {u'role': u'Johann Schmidt / Red Skull', u'name': u'Hugo Weaving', u'thumbnail': u'image://smb%3a%2f%2f192.168.2.200%2fMedia_1%2fMovie%2fNeuer%20Ordner%2fCaptain%20America%2f.actors%2fHugo_Weaving.jpg/'}, {u'role': u'Howard Stark', u'name': u'Dominic Cooper', u'thumbnail': u'image://smb%3a%2f%2f192.168.2.200%2fMedia_1%2fMovie%2fNeuer%20Ordner%2fCaptain%20America%2f.actors%2fDominic_Cooper.jpg/'}, {u'role': u'Heinz Kruger', u'name': u'Richard Armitage', u'thumbnail': u'image://smb%3a%2f%2f192.168.2.200%2fMedia_1%2fMovie%2fNeuer%20Ordner%2fCaptain%20America%2f.actors%2fRichard_Armitage.jpg/'}, {u'role': u'Dr. Abraham Erskine', u'name': u'Stanley Tucci', u'thumbnail': u'image://smb%3a%2f%2f192.168.2.200%2fMedia_1%2fMovie%2fNeuer%20Ordner%2fCaptain%20America%2f.actors%2fStanley_Tucci.jpg/'}, {u'role': u'Nick Fury', u'name': u'Samuel L. Jackson', u'thumbnail': u'image://smb%3a%2f%2f192.168.2.200%2fMedia_1%2fMovie%2fNeuer%20Ordner%2fCaptain%20America%2f.actors%2fSamuel_L._Jackson.jpg/'}, {u'role': u'Dr. Arnim Zola', u'name': u'Toby Jones', u'thumbnail': u'image://smb%3a%2f%2f192.168.2.200%2fMedia_1%2fMovie%2fNeuer%20Ordner%2fCaptain%20America%2f.actors%2fToby_Jones.jpg/'}], u'year': 2011, u'genre': [u'Action', u'Fantasy', u'Superhelden'], u'title': u'Captain America - The First Avenger', u'playcount': 1, u'runtime': 7451, u'rating': 6.8000001907348633, u'trailer': u'smb:// Ordner/Captain America/Captain America The First Avenger.2011.BLURAY-trailer.mp4', u'streamdetails': {u'video': [{u'duration': 7451, u'width': 1312, u'codec': u'h264', u'aspect': 2.3529410362243652, u'height': 544}], u'audio': [{u'channels': 6, u'codec': u'ac3', u'language': u'ger'}], u'subtitle': []}}}}
20:25:10 T:139739660601088   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: (2, 'No such file or directory', u'smb:// Ordner/Captain America/poster.jpg')
                                            Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/script.movielib/", line 100, in <module>
                                              File "/storage/.xbmc/addons/script.movielib/", line 47, in __init__
                                              File "/storage/.xbmc/addons/script.movielib/", line 59, in checkConn
                                              File "/storage/.xbmc/addons/script.movielib/", line 84, in checkToken
                                              File "/storage/.xbmc/addons/script.movielib/lib/", line 47, in __init__
                                              File "/storage/.xbmc/addons/script.movielib/lib/", line 95, in syncMovie
                                              File "/storage/.xbmc/addons/script.movielib/lib/", line 121, in addMovie
                                                image =['thumbnail'][8:][:-1]))
                                              File "/usr/lib/python2.7/site-packages/PIL/", line 1952, in open
                                            IOError: (2, 'No such file or directory', u'smb:// Ordner/Captain America/poster.jpg')
                                            -->End of Python script error report<--

Its the same error all the time,and I know that the share is avalaible because I watch movie on it right now Nod

Ok, I rewrite function uploading images. Try for SMB and NFS:

Good news!!! It worked with my testmovie on first try:
Thank you so much!! Smile (Tested with SMB Share)

..And now tested it with NFS-Share - SUCCESS! Great work!
Thread Rating:
  • 8 Vote(s) - 4.63 Average

Messages In This Thread
RE: MovieLib - Your movie database on web - by Cocotus - 2014-02-16, 13:23
Last Post - by Jeffreywat - 2017-09-03, 14:02

Logout Mark Read Team Forum Stats Members Help
MovieLib - Your movie database on web4.638