17-01-2017, Saat: 00:14
Admin haklısın kodu yeni denedim çalışıyor.
if not pano.startswith("http://") or pano.startswith("https://"):
pano="http://"+pano
kısmında kodun arka planda düzgün çalışıyor sadece print kısmında http://https: atıyor onu da düzeltelim istersen.
if pano.startswith("http://") or pano.startswith("https://"):
print pano
else:
pano="http://"+pano
print pano
eklersek daha düzgün olmaz mı ?
ok.ru dan hata almıştı. videoembed olmadığı için bazen hata verebiliyor. Onu da şöyle düzeltebiliriz
except:
try:
url="https://ok.ru/dk?cmd=videoPlayerMetadata&mid="+pano.split('ok.ru/video/')[1].split('"')[0]
print "ok.ru'da bulundu.."
except:
url="https://ok.ru/dk?cmd=videoPlayerMetadata&mid="+pano.split('ok.ru/videoembed/')[1].split('"')[0]
print "ok.ru'da bulundu.."
if not pano.startswith("http://") or pano.startswith("https://"):
pano="http://"+pano
kısmında kodun arka planda düzgün çalışıyor sadece print kısmında http://https: atıyor onu da düzeltelim istersen.
if pano.startswith("http://") or pano.startswith("https://"):
print pano
else:
pano="http://"+pano
print pano
eklersek daha düzgün olmaz mı ?
ok.ru dan hata almıştı. videoembed olmadığı için bazen hata verebiliyor. Onu da şöyle düzeltebiliriz
except:
try:
url="https://ok.ru/dk?cmd=videoPlayerMetadata&mid="+pano.split('ok.ru/video/')[1].split('"')[0]
print "ok.ru'da bulundu.."
except:
url="https://ok.ru/dk?cmd=videoPlayerMetadata&mid="+pano.split('ok.ru/videoembed/')[1].split('"')[0]
print "ok.ru'da bulundu.."



