Kodi Community Forum
MovieLib - Your movie database on web - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: MovieLib - Your movie database on web (/showthread.php?tid=167893)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45


RE: MovieLib - Your movie database on web - Levi59 - 2014-11-22

I found the error: bad authorization of access to the http group.
I was able to create the cache for a film by movielib. By cons I found a new error:
When I was in "banner", there was a first error that I have not copied. I thought a reset might put things in order and now I have it that appears every time.

Code:
Warning: imagecreatetruecolor(): Invalid image dimensions in /volume2/web/movielib-master/function.php on line 498 Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 499 Warning: imagefill() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 500 Warning: Division by zero in /volume2/web/movielib-master/function.php on line 513 Warning: Division by zero in /volume2/web/movielib-master/function.php on line 513 Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 514 Warning: imagecreatetruecolor(): Invalid image dimensions in /volume2/web/movielib-master/function.php on line 518 Warning: imagecolorallocatealpha() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 519 Warning: imagefill() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 520 Warning: imagecopyresampled() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 526 Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 529 Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 530 Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 531 Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 532 Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 533 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 602 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 602 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 602 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 601 Warning: imagettftext() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 602 Warning: imagecopy() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 552 Warning: imagecolorallocate() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 555 Warning: imageline() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 556 Warning: imageline() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 557 Warning: imageline() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 558 Warning: imageline() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 559 Warning: imagejpeg() expects parameter 1 to be resource, boolean given in /volume2/web/movielib-master/function.php on line 562 Warning: Illegal string offset 'w' in /volume2/web/movielib-master/admin.php on line 638 Warning: Illegal string offset 'h' in /volume2/web/movielib-master/admin.php on line 638 Warning: Illegal string offset 'bg_c' in /volume2/web/movielib-master/admin.php on line 639 Warning: Illegal string offset 'lw_c' in /volume2/web/movielib-master/admin.php on line 640 Warning: Illegal string offset 'lw_s' in /volume2/web/movielib-master/admin.php on line 640 Warning: Illegal string offset 'lw_x' in /volume2/web/movielib-master/admin.php on line 640 Warning: Illegal string offset 'lw_y' in /volume2/web/movielib-master/admin.php on line 640 Warning: Illegal string offset 't_c' in /volume2/web/movielib-master/admin.php on line 641 Warning: Illegal string offset 't_s' in /volume2/web/movielib-master/admin.php on line 641 Warning: Illegal string offset 't_x' in /volume2/web/movielib-master/admin.php on line 641 Warning: Illegal string offset 't_y' in /volume2/web/movielib-master/admin.php on line 641 Warning: Illegal string offset 'o_c' in /volume2/web/movielib-master/admin.php on line 642 Warning: Illegal string offset 'o_s' in /volume2/web/movielib-master/admin.php on line 642 Warning: Illegal string offset 'o_x' in /volume2/web/movielib-master/admin.php on line 642 Warning: Illegal string offset 'o_y' in /volume2/web/movielib-master/admin.php on line 642 Warning: Illegal string offset 'i_c' in /volume2/web/movielib-master/admin.php on line 643 Warning: Illegal string offset 'i_s' in /volume2/web/movielib-master/admin.php on line 643 Warning: Illegal string offset 'i_x' in /volume2/web/movielib-master/admin.php on line 643 Warning: Illegal string offset 'i_y' in /volume2/web/movielib-master/admin.php on line 643 Warning: Illegal string offset 'st_c' in /volume2/web/movielib-master/admin.php on line 644 Warning: Illegal string offset 'b_c' in /volume2/web/movielib-master/admin.php on line 645



RE: MovieLib - Your movie database on web - Regss - 2014-11-22

Banner is creating by movielib if script don't have permission to write file the banner not created and function return errors.
You must set CHMOD 777 for dirs: cache/ and cache/actors/ to set permission to write otherwise the script will not work correctly.


RE: MovieLib - Your movie database on web - Levi59 - 2014-11-23

As i said, i can now create cache files. When i refresh movie or tv show, a thumbs appear in cache folder and a banner.jpg is created after i watched a tv show.

The error is still there:
Image


RE: MovieLib - Your movie database on web - Regss - 2014-11-23

I found mistake in code, try replace this function.php file on server and in banner section click on reset.
function.php


RE: MovieLib - Your movie database on web - Levi59 - 2014-11-23

perfect ^^

I continue to explore the different facets of the script.

Note that I just saw something strange. All genres are gone on the "index.php" from the addition of a last video at the base. I do not have a log for now but I will recharge my base and monitoring of eventual new errors.


RE: MovieLib - Your movie database on web - Levi59 - 2014-11-25

i get an error after reboot : "script error : movielib" :

This is the log :
Code:
07:48:25 T:140180616832768   DEBUG: POParser: PO file has Win Style Line Endings. Converted in memory to Linux LF for file: /home/xbmcbuntu/.xbmc/addons/script.movielib/resources/language/French/strings.po
07:48:25 T:140180616832768   DEBUG: POParser: loaded 11 strings from file /home/xbmcbuntu/.xbmc/addons/script.movielib/resources/language/French/strings.po
07:48:25 T:140180616832768   DEBUG: POParser: PO file has Win Style Line Endings. Converted in memory to Linux LF for file: /home/xbmcbuntu/.xbmc/addons/script.movielib/resources/language/English/strings.po
07:48:25 T:140180616832768   DEBUG: POParser: loaded 21 strings from file /home/xbmcbuntu/.xbmc/addons/script.movielib/resources/language/English/strings.po
07:48:25 T:140182903355328   DEBUG: ------ Window Init (DialogExtendedProgressBar.xml) ------
07:48:25 T:140180616832768   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: (u'Etats-Unis',)
                                            Traceback (most recent call last):
                                              File "/home/xbmcbuntu/.xbmc/addons/script.movielib/default.py", line 29, in <module>
                                                Movielib()
                                              File "/home/xbmcbuntu/.xbmc/addons/script.movielib/default.py", line 21, in __init__
                                                sync.start(self)
                                              File "/home/xbmcbuntu/.xbmc/addons/script.movielib/lib/sync.py", line 51, in start
                                                check(self)
                                              File "/home/xbmcbuntu/.xbmc/addons/script.movielib/lib/sync.py", line 132, in check
                                                if syncVideo.sync(self, v) is False:
                                              File "/home/xbmcbuntu/.xbmc/addons/script.movielib/lib/syncVideo.py", line 73, in sync
                                                if add(self, videoToAdd, v, 'add') is False:
                                              File "/home/xbmcbuntu/.xbmc/addons/script.movielib/lib/syncVideo.py", line 119, in add
                                                values = prepareValues.prep(self, self.videosXBMC[video], v)
                                              File "/home/xbmcbuntu/.xbmc/addons/script.movielib/lib/prepareValues.py", line 28, in prep
                                                val.append(self.panelsSITE[panel][l.strip()])
                                            KeyError: (u'Etats-Unis',)
                                            -->End of Python script error report<--
07:48:25 T:140182903355328   DEBUG: ------ Window Init (DialogKaiToast.xml) ------
07:48:25 T:140180616832768    INFO: Python script stopped
07:48:25 T:140180616832768   DEBUG: Thread LanguageInvoker 140180616832768 terminating
07:48:25 T:140182903355328   DEBUG: ------ Window Deinit (DialogExtendedProgressBar.xml) ------
07:48:30 T:140181531236096   DEBUG: Thread JobWorker 140181531236096 terminating (autodelete)
07:48:30 T:140181397018368   DEBUG: Thread JobWorker 140181397018368 terminating (autodelete)
07:48:30 T:140181506057984   DEBUG: Thread JobWorker 140181506057984 terminating (autodelete)
07:48:31 T:140182903355328   DEBUG: ------ Window Deinit (DialogKaiToast.xml) ------
07:48:38 T:140182128932608   DEBUG: CecLogMessage - >> 04:44:0d
07:48:38 T:140182128932608   DEBUG: CecLogMessage - >> TV (0) -> Playback 1 (4): user control pressed (44)
07:48:38 T:140182128932608   DEBUG: CecLogMessage - key pressed: exit (d)
07:48:38 T:140182128932608   DEBUG: PushCecKeypress - received key d8 duration 0
07:48:38 T:140182903355328   DEBUG: OnKey: menu (0xd8) pressed, action is PreviousMenu
07:48:38 T:140182903355328   DEBUG: CGUIWindowManager::PreviousWindow: Deactivate
07:48:38 T:140182903355328   DEBUG: Activating window ID: 10000
07:48:38 T:140182903355328   DEBUG: ------ Window Init (Home.xml) ------
07:48:38 T:140182903355328    INFO: Loading skin file: Home.xml, load type: KEEP_IN_MEMORY
07:48:39 T:140182128932608   DEBUG: CecLogMessage - >> 04:45
07:48:39 T:140182128932608   DEBUG: CecLogMessage - >> TV (0) -> Playback 1 (4): user control release (45)
07:48:39 T:140182128932608   DEBUG: CecLogMessage - key released: exit (d)
07:48:39 T:140182128932608   DEBUG: PushCecKeypress - received key d8 duration 204
07:48:41 T:140181506057984  NOTICE: Thread JobWorker start, auto delete: true
07:48:41 T:140181506057984   ERROR: GetDirectory - Error getting include
07:48:41 T:140181397018368   ERROR: Previous line repeats 4 times.
07:48:41 T:140181397018368  NOTICE: Thread JobWorker start, auto delete: true
07:48:41 T:140181506057984   ERROR: GetDirectory - Error getting include
07:48:41 T:140181397018368   ERROR: Previous line repeats 4 times.
07:48:41 T:140181397018368   DEBUG: CRecentlyAddedJob::UpdateMusic() - Running RecentlyAdded home screen update
07:48:41 T:140181397018368   DEBUG: GetRecentlyAddedAlbumSongs() query: SELECT songview.* FROM (SELECT idAlbum FROM albumview ORDER BY idAlbum DESC LIMIT 10) AS recentalbums JOIN songview ON songview.idAlbum=recentalbums.idAlbum
07:48:41 T:140181397018368   DEBUG: GetRecentlyAddedAlbums query: select * from albumview where strAlbum != '' order by idAlbum desc limit 10
07:48:41 T:140181397018368   DEBUG: CRecentlyAddedJob::UpdateVideos() - Running RecentlyAdded home screen update
07:48:41 T:140182903355328   DEBUG: started alarm with name: widgetmove
07:48:41 T:140181531236096  NOTICE: Thread AlarmClock start, auto delete: false
07:48:41 T:140182903355328   DEBUG: started alarm with name: widget2move
07:48:41 T:140182903355328   DEBUG: started alarm with name: hometileleft
07:48:41 T:140182903355328   DEBUG: started alarm with name: hometileright
07:48:41 T:140182903355328   DEBUG: started alarm with name: hometilemid
07:48:41 T:140182903355328   DEBUG: started alarm with name: hometile2left
07:48:41 T:140182903355328   DEBUG: started alarm with name: hometile2right
07:48:41 T:140182903355328   DEBUG: started alarm with name: hometile2mid
07:48:41 T:140181397018368   DEBUG: RunQuery took 149 ms for 10 items query: select * from movieview  ORDER BY dateAdded desc, idMovie desc LIMIT 10
07:48:42 T:140181397018368   DEBUG: RunQuery took 220 ms for 10 items query: select * from episodeview  ORDER BY dateAdded desc, idEpisode desc LIMIT 10
07:48:42 T:140181506057984   DEBUG: DoWork - took 149 ms to load special://skin/backgrounds/tvshows/makingof4.jpg
07:48:42 T:140181422196480   DEBUG: RunQuery took 277 ms for 986 items query: select * from movieview
07:48:42 T:140182902531840  NOTICE: Thread RSSReader start, auto delete: false
07:48:42 T:140182902531840   DEBUG: CurlFile::Open(0x7f7ee01bdc60) http://www.franceinfo.fr/rss.xml
07:48:42 T:140182902531840    INFO: easy_aquire - Created session to http://www.franceinfo.fr
07:48:42 T:140181397018368   DEBUG: RunQuery took 4 ms for 0 items query: select * from musicvideoview  ORDER BY dateAdded desc, idMVideo desc LIMIT 10
07:48:42 T:140181397018368   DEBUG: CRecentlyAddedJob::UpdateTotal() - Running RecentlyAdded home screen update
07:48:42 T:140182902531840   DEBUG: Got rss feed: http://www.franceinfo.fr/rss.xml
07:48:42 T:140182902531840   DEBUG: RSS feed encoding: UTF-8
07:48:42 T:140182902531840   DEBUG: Parsed rss feed: http://www.franceinfo.fr/rss.xml
07:48:42 T:140182902531840   DEBUG: Thread RSSReader 140182902531840 terminating
07:48:42 T:140180616832768  NOTICE: Thread JobWorker start, auto delete: true
07:48:43 T:140181422196480  NOTICE: Previous line repeats 1 times.
07:48:43 T:140181422196480   DEBUG: RunQuery took 235 ms for 1514 items query: select * from episodeview
07:48:43 T:140181422196480   DEBUG: RunQuery took 3 ms for 0 items query: select * from musicvideoview
07:48:43 T:140181422196480   DEBUG: GetAlbumsByWhere query: SELECT albumview.* FROM albumview  WHERE albumview.strAlbum <> ''
07:48:43 T:140181422196480   DEBUG: GetAlbumsByWhere - query took 4 ms
07:48:43 T:140181422196480   DEBUG: GetArtistsByWhere query: SELECT artistview.* FROM artistview  WHERE (artistview.idArtist IN (SELECT song_artist.idArtist FROM song_artist) OR artistview.idArtist IN (SELECT album_artist.idArtist FROM album_artist)) and artistview.strArtist != '' and artistview.strArtist <> 'Artistes divers'
07:48:43 T:140181422196480   DEBUG: Time to retrieve artists from dataset = 3
07:48:43 T:140181422196480   DEBUG: GetSongsByWhere query = SELECT songview.* FROM songview  WHERE ((CAST(songview.iTimesPlayed as DECIMAL(5,1)) < 1))
07:48:43 T:140181422196480   DEBUG: Skin Widgets: Total time needed to request random queries: 0:00:01.652312
07:48:43 T:140181422196480   DEBUG: RunQuery took 81 ms for 147 items query: select * from movieview  WHERE ((movieview.playCount IS NULL OR movieview.playCount = 0))
07:48:44 T:140181422196480   DEBUG: RunQuery took 152 ms for 472 items query: select * from episodeview  WHERE ((episodeview.playCount IS NULL OR episodeview.playCount < 1))
07:48:44 T:140181422196480   DEBUG: RunQuery took 3 ms for 0 items query: select * from musicvideoview
07:48:44 T:140181422196480   DEBUG: GetAlbumsByWhere query: SELECT albumview.* FROM albumview  WHERE albumview.strAlbum <> ''
07:48:44 T:140181422196480   DEBUG: GetAlbumsByWhere - query took 4 ms
07:48:44 T:140181422196480   DEBUG: Skin Widgets: Total time needed to request recent items queries: 0:00:01.172292
07:48:49 T:140181506057984   DEBUG: DoWork - took 130 ms to load special://skin/backgrounds/tvshows/tv_shows8.jpg
07:48:57 T:140180616832768   DEBUG: DoWork - took 126 ms to load special://skin/backgrounds/tvshows/tv_shows5.jpg
07:48:59 T:140182903355328    INFO: LIRC Initialize: using: /dev/lircd
07:48:59 T:140182903355328   DEBUG: Failed to connect to LIRC. Giving up.



RE: MovieLib - Your movie database on web - Regss - 2014-11-25

I need full debug log.
In addon settings enable debugging and paste full xbmc.log on pastebin.com after error occurs.

Best if you enable the private messages on forum.


RE: MovieLib - Your movie database on web - Levi59 - 2014-11-25

i can't send a full log... i don't have a pro account on pastebin.

I don't sur if it was on web but : Levi59...bmc.log


RE: MovieLib - Your movie database on web - Regss - 2014-11-25

You must enable debbuging in Movielib addon settings not in XBMC settings.


RE: MovieLib - Your movie database on web - mydandel - 2014-11-28

Wonderful tool !!

I am getting errors though, maybe due to time out? I don't know...
The log is too big for pastebin, so I added the beginning and the end of the log.
It should have all the details you need.

http://pastebin.com/x4PJeM5K

Thank you for looking into this.


RE: MovieLib - Your movie database on web - mydandel - 2014-11-28

Found the issue. It was a corrupt database.
Thank you for this awesome addon!!


RE: MovieLib - Your movie database on web - Chpoubs - 2014-12-02

Thank you for this wonderful tool.


I ve added some feature for my use:
  - A new image for last add, it will disappear after a few days
  - The star image for rating

Image


Addon:
In the file sync.py missing "file" in ligne 122 to sync episodes file in the database.



sorry for my english.


RE: MovieLib - Your movie database on web - azsenca - 2014-12-04

(2014-12-02, 21:52)Chpoubs Wrote: Thank you for this wonderful tool.


I ve added some feature for my use:
  - A new image for last add, it will disappear after a few days
  - The star image for rating

Image


Addon:
In the file sync.py missing "file" in ligne 122 to sync episodes file in the database.



sorry for my english.

Can you share a code for these features? And images also? Smile


RE: MovieLib - Your movie database on web - Regss - 2014-12-04

I implement star rating but "new movie" flag could be a icon not a string. To maintain multiple languages.


RE: MovieLib - Your movie database on web - azsenca - 2014-12-04

Maybe it would be better if there are 10 stars for rating score, becouse for rating from 8.5 to 9.4 there are 9 and a half stars...
I think smaller stars and 10 of them would look better...
Put stars in Rating row.. so it would be something like Rating: * * * * * * * * * * (8.5)
Just my opinion. Smile