def getVideoByVid(vid): rows=table.getUrlByVid(ctable, vid) if rows!=-1 and len(rows)>0: url=rows[0][0] return getVideoByUrl(url) else: return None
def getUrlByVid(vid): rows = table.getUrlByVid(ctable, vid) if rows != -1 and len(rows) > 0: url = rows[0][0] return url