Example #1
0
ICON = {
    'movie': 'moviesicon.png',
    'search': 'searchicon.png',
    'settings': 'settingsicon.png'
}

PLUGIN_PATH = plugin.getPluginPath()

for k, v in ICON.iteritems():
    ICON[k] = os.path.join(PLUGIN_PATH, 'resources', 'media', v)

print plugin.getPluginVersion()

DB = db.DB()

track(plugin.getPluginVersion())


def MAIN():
    addDir('Categorii', URL['base'], 1, ICON['movie'])
    addDir('Adaugate Recent', URL['newMovies'], 11, ICON['movie'])
    addDir('Cautare', URL['base'], 2, ICON['search'])

    xbmcplugin.endOfDirectory(int(sys.argv[1]))


def categories(url):
    html = BeautifulSoup(http_req(url)).find('ul', {
        'id': 'ul_categories'
    }).findAll('a')
Example #2
0
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program. If not, see <http://www.gnu.org/licenses/>.
"""

import sys, os, re, time, traceback
import urllib, urlparse
import xbmc, xbmcplugin, xbmcgui
import common, enc, scraper, tvguide, gui_utils, log_utils
from resources.lib import ga

script_start = time.time()
log_utils.log(ga.getPlatform())
ga.track()
PARAMS = dict(urlparse.parse_qsl(sys.argv[2].replace('?', '')))

MODE = int(PARAMS.get('mode', 0))
URL = PARAMS.get('url', '')
NAME = PARAMS.get('name', '')
THUMBNAIL = PARAMS.get('thumbnail', '')

log_utils.log('------------------PARAMS------------------')
log_utils.log('--- Mode: ' + str(MODE))
log_utils.log('--- Url: ' + URL)
log_utils.log('--- Name: ' + NAME)
log_utils.log('--- Thumbnail: ' + THUMBNAIL)
log_utils.log('------------------------------------------')

if MODE == 2:
Example #3
0
ICON = {
	'movie':	'moviesicon.png',
	'search':	'searchicon.png',
	'settings': 'settingsicon.png'
}

PLUGIN_PATH = plugin.getPluginPath()

for k, v in ICON.iteritems():
	ICON[k] = os.path.join(PLUGIN_PATH, 'resources', 'media', v)

print plugin.getPluginVersion()

DB = db.DB()

track(plugin.getPluginVersion())


def MAIN():
	addDir('Categorii', URL['base'], 1, ICON['movie'])
	addDir('Adaugate Recent', URL['newMovies'], 11, ICON['movie'])
	addDir('Cautare', URL['base'], 2, ICON['search'])
	#addDir('Setari', URL['base'], 98, ICON['settings'])
	#addDir('Golire Cache', URL['base'], 99)
	
	xbmcplugin.endOfDirectory(int(sys.argv[1]))


def categories(url):
	progress = xbmcgui.DialogProgress()
	progress.create('Incarcare', 'Asteptati...')
Example #4
0
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program. If not, see <http://www.gnu.org/licenses/>.
"""

import sys, os, re, time, traceback
import urllib, urlparse
import xbmc, xbmcplugin, xbmcgui
import common, enc, scraper, tvguide, gui_utils, log_utils
from resources.lib import ga

script_start = time.time()
log_utils.log(ga.getPlatform())
ga.track()
PARAMS = dict(urlparse.parse_qsl(sys.argv[2].replace('?','')))

MODE = int(PARAMS.get('mode', 0))
URL = PARAMS.get('url', '')
NAME = PARAMS.get('name', '')
THUMBNAIL = PARAMS.get('thumbnail', '')

log_utils.log('------------------PARAMS------------------')
log_utils.log('--- Mode: ' + str(MODE))
log_utils.log('--- Url: ' + URL)
log_utils.log('--- Name: ' + NAME)
log_utils.log('--- Thumbnail: ' + THUMBNAIL)
log_utils.log('------------------------------------------')