Kodi Community Forum

Full Version: [Q] How to remove unwanted ad.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I ran across a few add-on where the vendor imposed its ad at the start of the add-on. I found the section where it calls a website, downloads the image, saves it as temp.jpg and display it before the add-on start. I like to edit it out but don't know how. Please help.

Code:

try :
IiII = xbmc . translatePath ( xbmcaddon . Addon ( ) . getAddonInfo ( 'path' ) ) . decode ( "utf-8" )
IiII = xbmc . translatePath ( os . path . join ( IiII , "temp.jpg" ) )
urllib . urlretrieve ( 'http://echipstore.net/images/htvonline.jpg' , IiII )
iI1Ii11111iIi = xbmcgui . ControlImage ( 0 , 0 , 1280 , 720 , IiII )
i1i1II = xbmcgui . WindowDialog ( )
i1i1II . addControl ( iI1Ii11111iIi )
i1i1II . doModal ( )

I can post the entire .py file if need be.

Thanks