•   
  • 1
  • 7
  • 8
  • 9(current)
  • 10
  • 11
  • 45
  •   
MovieLib - Your movie database on web
Have you tried with only one movie or that every movie takes that time? The first movie may take longer because the script first checks the connection and the token. It all depends on the size of poster and fanart files. I check this.
Reply
It takes ~30 sec per movie (I did add a directory containing 20 movies). And yes the first movie to be imported takes quite a lot more time compared to the rest.
Reply
(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:

Code:
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://192.168.2.200/Media_1/Movie/Neuer 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://192.168.2.200/Media_1/Movie/Neuer Ordner/Captain America/poster.jpg')
                                            Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/script.movielib/default.py", line 100, in <module>
                                                Movielib()
                                              File "/storage/.xbmc/addons/script.movielib/default.py", line 47, in __init__
                                                self.checkConn()
                                              File "/storage/.xbmc/addons/script.movielib/default.py", line 59, in checkConn
                                                self.checkToken()
                                              File "/storage/.xbmc/addons/script.movielib/default.py", line 84, in checkToken
                                                syncMovie.syncMovie()
                                              File "/storage/.xbmc/addons/script.movielib/lib/syncMovie.py", line 47, in __init__
                                                self.syncMovie()
                                              File "/storage/.xbmc/addons/script.movielib/lib/syncMovie.py", line 95, in syncMovie
                                                self.addMovie(toAddID)
                                              File "/storage/.xbmc/addons/script.movielib/lib/syncMovie.py", line 121, in addMovie
                                                image = Image.open(urllib2.unquote(movie['thumbnail'][8:][:-1]))
                                              File "/usr/lib/python2.7/site-packages/PIL/Image.py", line 1952, in open
                                            IOError: (2, 'No such file or directory', u'smb://192.168.2.200/Media_1/Movie/Neuer 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:
syncMovie

Good news!!! It worked with my testmovie on first try: http://cocotus.bplaced.net/movielib/index.php
Thank you so much!! Smile (Tested with SMB Share)

EDIT:
..And now tested it with NFS-Share - SUCCESS! Great work!
Reply
Hi, I'm unable to install the addon in xbmc. I'm able to install other addons, but movielib will not.

Logs

Any help appreciated
Reply
You are trying to install from my repository? XBMC shows any error?
Reply
yes, looks like its timing out
Reply
(2014-02-17, 09:55)tooviral Wrote: yes, looks like its timing out

Now it should work.
Reply
Thanks. All good.
Reply
(2014-02-16, 00:28)NEOhidra Wrote:
(2014-02-15, 23:40)Regss Wrote: Ok, I rewrite function uploading images. Try for SMB and NFS:
syncMovie

It does work over SMB. It takes almost 30 seconds to add a single movie - is it normal?

So in this case, when XBMC needs to copy all image files (poster, fanart, actor thumb) from the SMB source and create a temporary file to reduce size then send to the server it may take a time. A faster option is when the image files are stored locally and XBMC has direct access to them, then it will be a bit faster (but also any file need to be send to the server). The fastest option is when XBMC database stored only links to image in web, then are copied to movielib web script.
Another option in the new version of Movielib Addon is possible to disable sending a particular image files (poster, fanart, actor thumb.).
Reply
Regss, first thanks for your support! With the latest update everything seems to work well: DEMO
Looks great, love the template! I dont know if you take any suggestions or requests but in case you do I have some suggestions for future versions to make this addon even better:
  • Provide option to exclude folder from uploading/scanning (useful if you don't want sensible videos like homevideos from holiday/adult movies to appear on homepage)
  • TvShow support
  • Movieset support
  • Actor Search Textbox, i.e. to list all movies with Ali Larter Smile
  • As you can see on my moviepage, the list of "Year" and "Country" is quite long - so long that I have to scroll down to get to other filter (quality..) -> Maybe place year and country control to right side?
Reply
v. 2.3.0 is out.

- added cast field
- added actors thumbnail
- added live search

If You want updade old version:
Replace old files without install.php. Put update.zip in root directory and run. If You get 'Update successful' without errors delete update.php. This method does not update the actors for movies already synchronized. If you want to have actors for all movies you will have to synchronize the database from scratch.
Reply
Thanks for update! I installed update, resynced and now I get errors: http://cocotus.bplaced.net/movielib/index.php


Quote:Warning: array_search() expects parameter 2 to be array, null given in /users/cocotus/www/movielib/index.php on line 509
Reply
2.3.1 - fix this. (replace: index.php, config.php)
Cocotus, Thank's for help!
Reply
(2014-02-20, 09:45)Regss Wrote: 2.3.1 - fix this. (replace: index.php, config.php)
Cocotus, Thank's for help!
Good news, updated as you described and now everything's ok! Thanks Smile
Reply
(2014-02-12, 19:09)mydandel Wrote: Your were right about no video file information available.
However the reason was that these movies were all ISO files and XBMC only records and saves the video file information once you actually play the ISO file.

Thank you for pointing me in the right direction!

This addon is awesome! Keep up the wonderful work. Thank you.

I added option to this. You can enable it in Movielib addon to force sync ISO's without wating to XBMC get stream details.


(2014-02-19, 20:21)Cocotus Wrote: Regss, first thanks for your support! With the latest update everything seems to work well: DEMO
Looks great, love the template! I dont know if you take any suggestions or requests but in case you do I have some suggestions for future versions to make this addon even better:
  • Provide option to exclude folder from uploading/scanning (useful if you don't want sensible videos like homevideos from holiday/adult movies to appear on homepage)
  • TvShow support
  • Movieset support
  • Actor Search Textbox, i.e. to list all movies with Ali Larter Smile
  • As you can see on my moviepage, the list of "Year" and "Country" is quite long - so long that I have to scroll down to get to other filter (quality..) -> Maybe place year and country control to right side?

Thanks. I think about it. List of "Year" etc. you can collapse by clicking on title bar.
Reply
  •   
  • 1
  • 7
  • 8
  • 9(current)
  • 10
  • 11
  • 45
  •   
 
Thread Rating:
  • 8 Vote(s) - 4.63 Average



Logout Mark Read Team Forum Stats Members Help
MovieLib - Your movie database on web4.638
This forum uses Lukasz Tkacz MyBB addons.