[RELEASE] Apple iTunes Trailers (Video Add-on) - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154) +---- Thread: [RELEASE] Apple iTunes Trailers (Video Add-on) (/showthread.php?tid=160691) |
RE: [RELEASE] Apple iTunes Trailers (Video Add-on) - sphere - 2013-04-04 (2013-04-04, 14:40)namtih Wrote: Unfortunately it isn't showing the movie posters for me. Just a placeholder. Maybe because the movies are some kind of folders in this add-on (They have not "isPlayable"-Flag). IMO this should be fixed in the skin. RE: [RELEASE] Apple iTunes Trailers (Video Add-on) - namtih - 2013-04-05 Regarding the folders idea I don't think so, as the addon IMDB trailers don't handle them as folders and it has the same issue. But I don't know what the addon "The Trailers" is making different as it's working there. RE: [RELEASE] Apple iTunes Trailers (Video Add-on) - sphere - 2013-04-06 (2013-04-05, 10:19)namtih Wrote: Regarding the folders idea I don't think so, as the addon IMDB trailers don't handle them as folders and it has the same issue. Hi, I took a closer look and found the reason for the problem, its related to the skin, I reported the issue in the skin's thread. RE: [RELEASE] Apple iTunes Trailers (Video Add-on) - EvilCartman - 2013-04-06 (2013-04-03, 00:02)sphere Wrote: Version 1.0.0 is in the official xbmc.org repository now. At present time it's only 0.0.2 version is available from xbmc repo for me. No updates available. Is something wrong on my side? Also there's one major problem. The Add-on refuses to stream and play video without any error messages. When I hit <Enter> nothing happens. I can only download video files using pop-up menu. Very similar problem I've expirienced with "The Trailers" 1.9.5 Add-on - when I hit <Enter> and after selection of video quality, progress wheel starting to animate for a few seconds, then freezes with the whole screen and only the sound of trailer comes out of speakers, no video at all. Can you tell what kind of problem it can be and where I must look for solutiuon? Using 13.0 ALPHA1 on MBA/OSX 10.8.3 but exactly the same I've got on 12.0 and 12.1 versions of XBMC. Thank you! RE: [RELEASE] Apple iTunes Trailers (Video Add-on) - roscho - 2013-04-06 works like a charm on rasperry pi thanks a lot for sharing! roscho RE: [RELEASE] Apple iTunes Trailers (Video Add-on) - sphere - 2013-04-08 (2013-04-06, 15:14)EvilCartman Wrote:(2013-04-03, 00:02)sphere Wrote: Version 1.0.0 is in the official xbmc.org repository now. Hi, sorry, it was a copy&paste error, of course version 0.0.2 (the most recent) is in the repo. regards, sphere RE: [RELEASE] Apple iTunes Trailers (Video Add-on) - pecinko - 2013-04-08 (2013-04-08, 11:57)sphere Wrote: sorry, it was a copy&paste error, of course version 0.0.2 (the most recent) is in the repo. Hey I have uninstalled previous version and installed again from the repo, but I'm still getting error described above. Anything I can do to help fixing it? RE: [RELEASE] Apple iTunes Trailers (Video Add-on) - sphere - 2013-04-08 (2013-04-08, 11:59)pecinko Wrote: I have uninstalled previous version and installed again from the repo, but I'm still getting error described above. Anything I can do to help fixing it? Ah, forgot to reply to your problem, sorry. Regarding your problem: I believe that your system has two versions of python installed and the json module is taken from the wrong one (<2.6). Or you have only one (old) python version installed. Could you execute the following in a shell and send me the output? Code: # open the python interactive interpreter RE: [RELEASE] Apple iTunes Trailers (Video Add-on) - EvilCartman - 2013-04-08 (2013-04-08, 11:57)sphere Wrote: sorry, it was a copy&paste error, of course version 0.0.2 (the most recent) is in the repo.Oh, I get it. Do you have any ideas about my other described problems with video playback? RE: [RELEASE] Apple iTunes Trailers (Video Add-on) - pecinko - 2013-04-08 (2013-04-08, 12:08)sphere Wrote: Could you execute the following in a shell and send me the output? Sure, here it is: Code: Python 2.7.2 (default, Oct 11 2012, 20:14:37) Thanks. RE: [RELEASE] Apple iTunes Trailers (Video Add-on) - sphere - 2013-04-08 (2013-04-08, 20:24)pecinko Wrote: >>> print json.__file__ Hm - looks ok, could you do it again, but this time direct in the addon code? Open "/Users/mini/Library/Application Support/XBMC/addons/plugin.video.itunes_trailers/resources/lib/scraper.py" and search this line (22): Code: import json Code: import json after that start the addon and send me the two lines after the line with fourty dash signs thanks, sphere RE: [RELEASE] Apple iTunes Trailers (Video Add-on) - pecinko - 2013-04-09 (2013-04-08, 20:30)sphere Wrote: Hm - looks ok, could you do it again, but this time direct in the addon code? Done. Here they are: PHP Code: 07:53:44 T:2953318400 DEBUG: Process - Entering source directory /Users/mini/Library/Application Support/XBMC/addons/plugin.video.itunes_trailers RE: [RELEASE] Apple iTunes Trailers (Video Add-on) - Martijn - 2013-04-09 Well that's a known problem i've seen before Another addon is shipping it's own JSON module which is so bad. Also I use this PHP Code: if sys.version_info < (2, 7): RE: [RELEASE] Apple iTunes Trailers (Video Add-on) - sphere - 2013-04-09 (2013-04-09, 08:14)Martijn Wrote: Well that's a known problem i've seen before Well, some comments 1. Yes, another xbmc add-on provides a different json module which is really bad 2. Its partly XBMC's add-on system's fault because it inserts third party modules' path _before_ system modules' path - even on add-ons which don't require this third party module 3. simplejson is not faster than json Indeed it is slower (until 2.7, then its exactly the same module, maybe in an older version), also it doesn't provide the "load" method, only "loads" which require a string and not a "file like object" which can be a speed improvement on machines with less ram like the rpi. 4. Your code won't help here because he really has python 2.7 so you won't hit the if-part 5. simplejson is not part of the standard modules on < python 2.7, do you require it always via addon.xml? We really need a xbmc core fix for 2: Only insert module paths from add-ons which are required via addon.xml. Rethink if inserting _before_ system modules is really needed. @pecinko: This should work: PHP Code: import json regards, sphere RE: [RELEASE] Apple iTunes Trailers (Video Add-on) - Martijn - 2013-04-09 did some test runs last year with ronie and that what we found out that in general python 2.7 runs faster with json than simplejson so on point 5 yes we add it as required (could perhaps make it optional="true" and see if it gets imported when it needs to (not sure if that'll work) ah i found what we did (or somewhere around those pages) http://forum.xbmc.org/showthread.php?tid=113702&pid=1006841&highlight=loads#pid1006841 create a ticket for point 2. if you will. i think we should document these these on the wiki in some general how-to/faq page with small pieces of code how to solve these things. already have gathered some of these but need to update the pages. this should help other to prevent hitting this issue. |