def findurl(code,server):
	mediaurl = "ERROR"
	server = server.lower() #Para hacer el procedimiento case insensitive
	if server == "megavideo":
		mediaurl = megavideo.Megavideo(code)

	if server == "megaupload":
		mediaurl = megaupload.getvideo(code)
		
	if server == "wuapi":
		mediaurl = wuapi.Wuapi(code)
		
	if server == "vreel":
		mediaurl = vreel.Vreel(code)

	if server == "stagevu":
		mediaurl = stagevu.Stagevu(code)
	
	if server == "tu.tv":
		mediaurl = tutv.Tutv(code)
	
	if server == "movshare":
		mediaurl = movshare.getvideo(code)
	
	if server == "veoh":
		mediaurl = veoh.getvideo(code)
	
	if server == "directo":
		mediaurl = code
		
	if server == "metadivx":
		mediaurl = metadivx.geturl(code)

	if server == "divxden":
		mediaurl = divxden.geturl(code)

	if server == "divxlink":
		mediaurl = divxlink.geturl(code)

	if server == "videoweed":
		mediaurl = videoweed.geturl(code)
	
	if server == "youtube":
		mediaurl = youtube.geturl(code)
	
	if server == "cinshare":
		mediaurl = cinshare.geturl(code)
		
	if server == "facebook":
		mediaurl = code
		
	if server == "xml":
		mediaurl = xmltoplaylist.geturl(code)
		
	return mediaurl
Esempio n. 2
0
def findurl(code, server):
    mediaurl = "ERROR"
    server = server.lower()  #Para hacer el procedimiento case insensitive
    if server == "megavideo":
        mediaurl = megavideo.Megavideo(code)

    if server == "megaupload":
        mediaurl = megaupload.getvideo(code)

    if server == "wuapi":
        mediaurl = wuapi.Wuapi(code)

    if server == "vreel":
        mediaurl = vreel.Vreel(code)

    if server == "stagevu":
        mediaurl = stagevu.Stagevu(code)

    if server == "tu.tv":
        mediaurl = tutv.Tutv(code)

    if server == "movshare":
        mediaurl = movshare.getvideo(code)

    if server == "veoh":
        mediaurl = veoh.getvideo(code)

    if server == "directo":
        mediaurl = code

    if server == "metadivx":
        mediaurl = metadivx.geturl(code)

    if server == "divxden":
        mediaurl = divxden.geturl(code)

    if server == "divxlink":
        mediaurl = divxlink.geturl(code)

    if server == "videoweed":
        mediaurl = videoweed.geturl(code)

    if server == "youtube":
        mediaurl = youtube.geturl(code)

    if server == "cinshare":
        mediaurl = cinshare.geturl(code)

    if server == "facebook":
        mediaurl = code

    return mediaurl
def findurl(code,server):
    mediaurl = "ERROR"
    server = server.lower() #Para hacer el procedimiento case insensitive

    if server == "megavideo":
        import megavideo
        mediaurl = megavideo.Megavideo(code)

    if server == "megaupload":
        import megaupload
        mediaurl = megaupload.getvideo(code)
        
    if server == "vreel":
        import vreel
        mediaurl = vreel.Vreel(code)

    if server == "stagevu":
        import stagevu
        mediaurl = stagevu.Stagevu(code)
    
    if server == "tu.tv":
        import tutv
        mediaurl = tutv.Tutv(code)
    
    if server == "movshare":
        import movshare
        mediaurl = movshare.getvideo(code)
    
    if server == "veoh":
        import veoh
        mediaurl = veoh.getvideo(code)
    
    if server == "directo":
        mediaurl = code
        
    if server == "metadivx":
        import metadivx
        mediaurl = metadivx.geturl(code)

    if server == "divxden":
        import divxden
        mediaurl = divxden.geturl(code)

    if server == "divxlink":
        import divxlink
        mediaurl = divxlink.geturl(code)

    if server == "videoweed":
        import videoweed
        mediaurl = videoweed.geturl(code)
    
    if server == "youtube":
        import youtube
        mediaurl = youtube.geturl(code)
    
    if server == "zshare":
        import zshare
        mediaurl = zshare.geturl(code)

    if server == "4shared":
        import fourshared
        mediaurl = fourshared.geturl(code)
    
    if server == "cinshare":
        import cinshare
        mediaurl = cinshare.geturl(code)
        
    if server == "facebook":
        mediaurl = code
        
    if server == "xml":
        import xmltoplaylist
        mediaurl = xmltoplaylist.geturl(code)

    if server == "vimeo":
        import vimeo
        mediaurl = vimeo.geturl(code)
        
    return mediaurl