Kodi Community Forum
[RELEASE] The Trailers - 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] The Trailers (/showthread.php?tid=119587)

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


RE: [RELEASE] The Trailers - Van Gogh - 2013-01-21

@el.kiwi, awesome!!

It completely works! And another xbmc-install did an auto-update and everything is working perfect.

I have to learn more about programming in python Wink




RE: [RELEASE] The Trailers - aNILEator - 2013-01-21

Hmm not working for me, well not really.

Saw that it updated. GREAT! Big Grin

Played the first video I tried (Side effects trailer) as I knew this one wasn't working. AWESOME Big Grin

Try to play another one I knew wasn't working for me. It plays Side Effects trailer again..... OH NO Sad
(I once got it to play The Incredible Burt Wonderstone, but now same issues, either side effects or Burt Wonderstone)

Now all trailers I try to play are the side effects trailer or another one I've already watched Sad

I've also tried context menu -> download trailer, and that too downloads the Side Effects Trailer Sad

Have tried a different quality setting, that one then plays that trailer, but same error then happens (albeit with whatever the new video was)

Any idea how to fix, or how I can provide a detailed log for you guys?

Detailed instructions please, I'm very new to xbmc (Not afraid to poke it though Tongue), using frodo and xperience1080 skin. (but confirmed addon issues in confluence also) People suggested using HD Trailers addon but I don't like how many menus/steps there are to that addon, this one is what I want simple click a poster watch a trailer.


RE: [RELEASE] The Trailers - crni - 2013-01-21

I keep getting this error in the log:
PHP Code:
21:51:20 T:192   ERROREXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - 
NOTEIGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            
Error Type: <class 'xbmcswift.urls.NotFoundException'>
                                            
Error Contents
                                            
Traceback (most recent call last):
                                              
File "C:\Users\xxx\AppData\Roaming\XBMC\addons\plugin.video.the.trailers\addon.py"line 489in <module>
                                                
plugin.run()
                                              
File "C:\Users\xxx\AppData\Roaming\XBMC\addons\script.module.xbmcswift\lib\xbmcswift\plugin.py"line 330in run
                                                self
.dispatch(self.path)
                                              
File "C:\Users\xxx\AppData\Roaming\XBMC\addons\script.module.xbmcswift\lib\xbmcswift\plugin.py"line 130in dispatch
                                                raise NotFoundException
                                            NotFoundException
                                            
-->End of Python script error report<-- 
with latest update trailers do start playing but then xbmc freezes Confused any ideas ? tnx


RE: [RELEASE] The Trailers - el.kiwi - 2013-01-22

Hello again,

The first error is a typical Don't-Drink-And-Code one ... Sorry for that. In the "get_trailer" function please replace the except part with
Code:
except:            
            url=self.BACKUP_MOVIE_BASE % movie['movie_string']
            tree = None
            if quality_id=='h480p.mov':
                cache=(movie['movie_string'].split('/')[1])+trailer_type+quality_id+'.xml'
                tree=self.__get_tree(url + 'itsxml/25-'+trailer_type+'.xml',cache_filename=cache)
            if quality_id=='h720p.mov':
                cache=(movie['movie_string'].split('/')[1])+trailer_type+quality_id+'.xml'
                tree=self.__get_tree(url + 'itsxml/26-'+trailer_type+'.xml',cache_filename=cache)
            if quality_id=='h1080p.mov':
                cache=(movie['movie_string'].split('/')[1])+trailer_type+quality_id+'.xml'
                tree=self.__get_tree(url + 'itsxml/27-'+trailer_type+'.xml',cache_filename=cache)
            for s in tree.findAll('dict'):
                for k in s.findAll('key'):                
                    if k.string == 'URL':
                        url = k.nextSibling.string
                        if quality_id in url:
                            return ('%s?|User-Agent=%s' % (url, self.UA))

As for the second one, crni by any chance are you using Aeon Nox?


RE: [RELEASE] The Trailers - bushbrother - 2013-01-22

I am using Aeon Nox and I still get the freezing issue even after the update, I see one frame of the video overlayed with the home screen, sometimes with sound, sometimes just a freeze. Any suggestions? The plugin is great looking BTW Smile


RE: [RELEASE] The Trailers - Dakkar - 2013-01-22

I am getting the following in the log
Code:
01:45:13 T:2344  NOTICE: Apple scraper: __get_url started with url=http://trailers.apple.com/trailers/independent/thelastexorcismpartii/includes/playlists/web.inc, cache_filename=thelastexorcismpartiiwebinc.xml
01:45:13 T:2344   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.UnicodeDecodeError'>
                                            Error Contents: 'ascii' codec can't decode byte 0xc3 in position 19: ordinal not in range(128)
                                            Traceback (most recent call last):
                                              File "C:\Users\Paolo Croc�\AppData\Roaming\XBMC\addons\plugin.video.the.trailers\addon.py", line 489, in <module>
                                                plugin.run()
                                              File "C:\Users\Paolo Croc�\AppData\Roaming\XBMC\addons\script.module.xbmcswift\lib\xbmcswift\plugin.py", line 330, in run
                                                self.dispatch(self.path)
                                              File "C:\Users\Paolo Croc�\AppData\Roaming\XBMC\addons\script.module.xbmcswift\lib\xbmcswift\plugin.py", line 129, in dispatch
                                                return view_func(**items)
                                              File "C:\Users\Paolo Croc�\AppData\Roaming\XBMC\addons\plugin.video.the.trailers\addon.py", line 171, in get_trailer
                                                source_id, movie_title, is_download=is_download,
                                              File "C:\Users\Paolo Croc�\AppData\Roaming\XBMC\addons\plugin.video.the.trailers\addon.py", line 438, in __select_check_trailer
                                                trailer_type = ask_trailer_type(source, movie_title)
                                              File "C:\Users\Paolo Croc�\AppData\Roaming\XBMC\addons\plugin.video.the.trailers\addon.py", line 196, in ask_trailer_type
                                                trailer_types = source.get_trailer_types(movie_title)
                                              File "C:\Users\Paolo Croc�\AppData\Roaming\XBMC\addons\plugin.video.the.trailers\resources\lib\apple_trailers.py", line 124, in get_trailer_types
                                                tree=self.__get_tree(t_url,cache_filename=cache_filename)
                                              File "C:\Users\Paolo Croc�\AppData\Roaming\XBMC\addons\plugin.video.the.trailers\resources\lib\apple_trailers.py", line 227, in __get_tree
                                                html = self.__get_url(url, referer, cache_filename)
                                              File "C:\Users\Paolo Croc�\AppData\Roaming\XBMC\addons\plugin.video.the.trailers\resources\lib\apple_trailers.py", line 235, in __get_url
                                                cache_file = os.path.join(self.cache_path, filename)
                                              File "C:\Program Files\XBMC\system\python\Lib\ntpath.py", line 108, in join
                                                path += "\\" + b
                                            UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 19: ordinal not in range(128)
                                            -->End of Python script error report<--
01:45:13 T:7012   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.the.trailers/apple/trailer/The+Last+Exorcism+Part+II/play
I guess it is because I am using special characters in my UserData path...
Any chance to get this fixed?

Thank you,
Dakkar


RE: [RELEASE] The Trailers - curtis-r - 2013-01-22

@aNILEator,

I have the same problem. Everything was working great, but now a bunch of trailers show the trailer for "Side Effects". Maybe a conspiracy from the "Side Effects" producers Smile

@el.kiwi,

I can't seem to substitute your new code without getting a python error. Certainly is an error on my part, but still...


RE: [RELEASE] The Trailers - aNILEator - 2013-01-22

I'm getting a python error too... I think I'm editing it right :S never done it before so wouldn't know.


RE: [RELEASE] The Trailers - ursli - 2013-01-22

The forum screwed the spacing on el.kiwi's post, just look at how it is in the original file or copy paste this one: http://pastebin.com/raw.php?i=FAi2TD1E

Still getting errors in addon.py but the playback is fixed, not getting stuck on a trailer with this.

edit: I shouldn't copy paste stuff from the ipad, fixed the link.


RE: [RELEASE] The Trailers - crni - 2013-01-22

(2013-01-22, 00:45)el.kiwi Wrote: As for the second one, crni by any chance are you using Aeon Nox?

(2013-01-22, 01:17)bushbrother Wrote: I am using Aeon Nox and I still get the freezing issue even after the update, I see one frame of the video overlayed with the home screen, sometimes with sound, sometimes just a freeze. Any suggestions? The plugin is great looking BTW Smile

I'm using Xperience1080 and have exactly the same problem with freezing.
This is what happens according to the log:
PHP Code:
08:55:32 T:1228  NOTICE: -->Python Interpreter Initialized<--
08:55:32 T:1228  NOTICEThe Trailers addonget_trailer started with mode=play source_id=apple movie_title=Oblivion
08
:55:32 T:1228  NOTICEThe Trailers addon__select_check_trailer started with source_id=apple movie_title=Oblivion is_download=False
08
:55:32 T:1228  NOTICEThe Trailers addon__get_source usingapple
08
:55:32 T:1228  NOTICEApple scraper__get_movies started
08
:55:32 T:1228  NOTICEApple scraper__get_url started with url=http://trailers.apple.com/trailers/home/xml/current.xml, cache_filename=None
08:55:32 T:1228  NOTICEApple scraper__get_url using cachefileC:\Users\crni\AppData\Roaming\XBMC\userdata\addon_data\plugin.video.the.trailers\cache\current.xml
08
:55:32 T:1228  NOTICEApple scraper__get_url got 153903 bytes
08
:55:33 T:1228  NOTICEApple scraperget_movies finished with 101 elements
08
:55:33 T:1228  NOTICEApple scraperget_trailer_types started with movie_titleOblivion
08
:55:33 T:1228  NOTICEApple scraper__get_url started with url=http://trailers.apple.com/moviesxml/s/universal/oblivion/index.xml, cache_filename=oblivion.xml
08:55:33 T:1228  NOTICEApple scraper__get_url opening urlhttp://trailers.apple.com/moviesxml/s/universal/oblivion/index.xml
08:55:35 T:1228  NOTICEApple scraper__get_url started with url=http://trailers.apple.com/trailers/universal/oblivion/includes/playlists/web.inc, cache_filename=oblivionwebinc.xml
08:55:35 T:1228  NOTICEApple scraper__get_url opening urlhttp://trailers.apple.com/trailers/universal/oblivion/includes/playlists/web.inc
08:55:35 T:1228  NOTICEApple scraper__get_url got 2622 bytes
08
:55:35 T:1228  NOTICEApple scraperget_trailer_qualities started with movie_titleOblivion
08
:55:35 T:1228  NOTICEApple scraperget_trailer_qualities started with movie_titleOblivion
08
:55:35 T:1228  NOTICEApple scraperget_trailer started with movie_titleOblivion trailer_typetrailer quality_idh720p.mov
08
:55:35 T:1228  NOTICEApple scraper__get_url started with url=http://trailers.apple.com/moviesxml/s/universal/oblivion/index.xml, cache_filename=oblivion-trailer.xml
08:55:35 T:1228  NOTICEApple scraper__get_url opening urlhttp://trailers.apple.com/moviesxml/s/universal/oblivion/index.xml
08:55:35 T:1228  NOTICEApple scraper__get_url started with url=http://trailers.apple.com/trailers/universal/oblivion/itsxml/26-trailer.xml, cache_filename=obliviontrailerh720p.mov.xml
08:55:35 T:1228  NOTICEApple scraper__get_url opening urlhttp://trailers.apple.com/trailers/universal/oblivion/itsxml/26-trailer.xml
08:55:36 T:1228  NOTICEApple scraper__get_url got 2358 bytes
08
:55:36 T:3984  NOTICEDVDPlayerOpeninghttp://trailers.apple.com/405/us/media/trailers/universal/oblivion/oblivion-tlr1_h720p.mov?|User-Agent=QuickTime/7.6.5 (qtver=7.6.5;os=Windows NT 5.1Service Pack 3)
08:55:36 T:3984 WARNINGCDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
08
:55:36 T:1716  NOTICEThread CDVDPlayer startauto deletefalse
08
:55:36 T:1716  NOTICECreating InputStream
08
:55:38 T:1716  NOTICECreating Demuxer
08
:55:38 T:1016  NOTICEThread CFileCache startauto deletefalse
08
:55:46 T:1716  NOTICEOpening video stream0 source256
08
:55:46 T:1716  NOTICECreating video codec with codec id28
08
:55:46 T:1716  NOTICECDVDVideoCodecFFmpeg::Open() Using codecH.264 AVC MPEG-4 AVC MPEG-4 part 10
08
:55:46 T:1716  NOTICECreating video thread
08
:55:46 T:1716  NOTICEOpening audio stream1 source256
08
:55:46 T:1716  NOTICEFinding audio codec for: 86018
08
:55:46 T:1716  NOTICECreating audio thread
08
:55:46 T:1280  NOTICEThread CDVDPlayerAudio startauto deletefalse
08
:55:46 T:1280  NOTICErunning threadCDVDPlayerAudio::Process()
08:55:46 T:1280  NOTICECreating audio stream (codec id86018channels2sample rate48000no pass-through)
08:55:46 T:1832  NOTICEThread CDVDPlayerVideo startauto deletefalse
08
:55:46 T:1832  NOTICErunning threadvideo_thread
08
:55:46 T:1832  NOTICE:  fps23.976024pwidth1280pheight544dwidth1280dheight544
08
:55:46 T:1832  NOTICEDisplay resolution USER 1366x768 60.00 Full Screen #2 (17)
08:55:46 T:1832  NOTICED3Drendering method forced to DXVA2 processor 
at this point XBMC freezes and I have to kill it in the task manager. I have no problem with playing any other videos in XBMC


RE: [RELEASE] The Trailers - kevinkelm - 2013-01-22

I have the same problem with freezing video on a mac mini frodo.
The sound will continue to play but the video is stuck on the first frame. Eventually the video will show after fast forwarding to catch up to the audio.



RE: [RELEASE] The Trailers - aNILEator - 2013-01-22

thanks for the pastebin link working here so far (though i am testing over a remote connection) will test properly soon :-)


RE: [RELEASE] The Trailers - curtis-r - 2013-01-23

@ursli,

When I subsitute your or el.kiwi's code I get the addon.py error when I try to download a trailer also.


RE: [RELEASE] The Trailers - cruzannavy - 2013-01-23

unfortunately still no luck for me either, tested on frodo rc3 on windows 7 and vista.
upgrade plugin. Just get first frame and then only audio and its frozen.
tried to edit the script and i get a plugin error like other users.
maybe someone can upload there working apple_trailers.py file for me to test to see if it works and post my debug if it fails from a known working addon?


RE: [RELEASE] The Trailers - jingai - 2013-01-23

FWIW, it's working for me as of last update with Metropolis skin.