How to test My Addon code in pycham 2016

Hi Brothers , I am New to python , and am trying to write Plugin addon for Kodi . So I have Pycham installed Python 2.7+ I have Kodistubs in the root of my project paython selected as iterpreters What i need Else And how to test. Thanks in...

Smart playlist and mysql

so i set up a mysql database and it seems to be working

but nothing shows up in smartlists even though the shows have been scraped and i can see them fine when just browsing the folders.

how do i get them working?

heres one that i'm using

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="tvshows">
    <name>TV Shows</name>
    <match>one</match>
    <rule field="path" operator="contains">
        <value>H:\Tv Shows\</value>
    </rule>
    <rule field="path" operator="contains">
        <value>G:\Tv Shows\</value>
    </rule>
</smartplaylist>

How to get (ok.ru/videoembed ) link Playable in kodi

PLease Help Me AS i am New to python,and working on my 2nd video Addon ,

And video links are on this site

http://ok.ru/videoembed/93942254125

and tihs link work only in browser but not in Vlc as a test



So:

How can i include this To My Addon
i found Answer But not sure how to include it in my Addon

Code:
import urllib, urllib2, urlparse, re, json

HEADERS = {
    'User-Agent':      'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36',
    'Accept':          'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
    'Cache-Control': 'no-transform'
}

def http_req(url, getCookie=False, data=None, customHeader=None):
    if data: data = urllib.urlencode(data)
    req = urllib2.Request(url, data, HEADERS)
    if customHeader:
        req = urllib2.Request(url, data, customHeader)
    response = urllib2.urlopen(req)
    source = response.read()
    response.close()
    if getCookie:
        cookie = response.headers.get('Set-Cookie')
        return {'source': source, 'cookie': cookie}
    return source

sources = []

mirrorUrl = 'http://www.ok.ru/videoembed/36530555610'

try:
    id = re.search('\d+', mirrorUrl).group(0)
    u = urlparse.urlparse(mirrorUrl)
    hostUrl = '://'.join([u.scheme, u.netloc])
    jsonUrl = 'http://ok.ru/dk?cmd=videoPlayerMetadata&mid=' + id
    jsonSource = json.loads(http_req(jsonUrl))

    quality = {
        'mobile': '144p',
        'lowest':  '240p',
        'low':      '360p',
        'sd':       '480p',
        'hd':       '720p',
        'full':      '1080p'
    }
    
    for source in jsonSource['videos']:
        q = source['name'].strip()
        q = quality.get(q, None)
        if not q:
            continue
        name = '%s %s' % ('[ok.ru]', q)
            'User-Agent':   HEADERS['User-Agent'],
            'Referer':      mirrorUrl,
            'Origin':       hostUrl
        }
        params = '&'.join(['%s=%s' % (k, urllib.quote_plus(v)) for k, v in params.iteritems()])
        link = '%s|%s' % (source['url'], params)
        
        item = {'name': name, 'url': link}
        sources.append(item)
except:
    pass

print sources

or shoulg i make it as util.pay and how to import it to my default.py

Coloring of highlighted playing item

Hi. In the channel list when watching full screen TV (Pressing 'c' on the keyboard); the color of the text of the channel that is playing, when highlighted, can't be changed. Since I have a black and white color theme, this results in the highlight c...

YouTube forced view

Hi. I have a problem with the YouTube plugin constantly changing the view type back to list view. So, can you make a force view option for the YouTube plugin? For both the homepage of the plugin, the Subscriptions-page etc.

How-to: Batch make Bluray Covers

Hi there Not sure if it's the right section of the forum, but here it goes. We all know some skins use some kind of template to show bluray covers, but in my case i prefer to have the covers already in bluray. I don't think artwork downloader gets b...

Stalker on Apple TV4

Hello all, Is the Stalker PVR client still a problem? I am coming into this game now, with the purchase of an Apple TV4. I have tried to sideload Krypton Alpha 1 and configure Stalker, but once I do this Kodi will no longer load. I then moved up to Be...

Function for profiles login window

Hello, Im looking for the correct function to open the profiles window (The one where you can choose the user). I have tried ActivateWindow(Profiles) but that just takes me to settngs profiles im looking for the one when you log in and it gives you a c...

A post from Sat TV IPTV

OBAVEŠTENJE ZA ONE KOJI PRATE PROGRAM SRPSKIH KANALA PREKO KROVNE I SOBNE ANTENE T-2 MREŽE Obaveštavamo Vas da će u noći između srede 14. i četvrtka 15. septembra, doći do neophodne, planirane izmene u tehničkim parametrima (PID-ovima) svih servisa. Ova promena će, kod gledalaca koji TV program primaju pomoću sobne ili krovne antene, prouzrokovati mogući gubitak slike, pa je neophodno da, u četvrtak 15. septembra, uradite ponovnu pretragu kanala na svojim prijemnicima. Srdačan pozdrav, JP „Emisiona tehnika i veze“

Timeline Photos

PyLearner – Learn Python the “easy” way.

Hi everyone, I was looking for an addon featuring python tutorials and found "PyVideo" in the official repository, later only to discover it doesn't play and outputs errors. I will probably have to file a bug report, but instead I chose another path. ...

Kodi 17 krypton on raspberry

hello, I wanted to make a clarification, with kodi program in my channel list in pvr iptv simple client there are movies on demand that if I wanted to move forward is not possible, practically if while I see movies on-demand should ever lock I'm forced...

Logos – Remote Path

Hello! I've been using IPTV Simple Client for a couple of weeks now, and I was wondering how can I create my own url/site in order to get the logos from there. I don't want to have the logos stored locally and I noticed that Simple Client has an optio...

cant access dolby digital sound in kodi 17

Hi Everyone, At the moment i am running the Kodi 17 Krypton in beta 1 build. While i am playing all my movies, im not picking up dolby digital sound via my yamaha rxv-475 receiver. In the past with kodi versions 15 and 16 i could always receive dolby d...