2011-03-21, 16:47
misterhek Wrote:Trailers for me still did not work in latest version. I had to edit resources\scrapers\local\scraper.py to get it working.
I added this to line 21:
Code:_S_ = _A_.getSetting
Then in fetch_trailers I changed
ToCode:self.tmp_trailers = dirEntries( self.settings[ "trailer_folder" ] , "video", "TRUE", "-trailer" )
Code:self.tmp_trailers = dirEntries( _S_("trailer_folder") , "video", "TRUE", "-trailer" )
Not sure if this is the best method, but seems to work now.
Strange.. It should work(tested with both Download sources(AMT Db and AMT Site)
The change you made will work, except it plays from the local folder(which can be different then the download folder)
I'll double check the code that sets - self.settings[ "trailer_folder" ] - before calling the local scraper.
Thanks for the heads up...