talimat.py
This commit is contained in:
parent
3a1525490b
commit
8e5a4152bb
|
@ -302,10 +302,17 @@ class renk:
|
||||||
class Arge:
|
class Arge:
|
||||||
|
|
||||||
def indir(self,link):
|
def indir(self,link):
|
||||||
|
'''
|
||||||
if "packages/" in link:
|
if "packages/" in link:
|
||||||
paket=link.split("?h=packages/")[1]
|
paket=link.split("?h=packages/")[1]
|
||||||
else:
|
else:
|
||||||
paket=link.split("?h=")[1]
|
paket=link.split("?h=")[1]
|
||||||
|
'''
|
||||||
|
paket=link.split("/")[-1]
|
||||||
|
if paket == "":
|
||||||
|
paket=link.split("/")[-2]
|
||||||
|
if "=" in paket:
|
||||||
|
paket=paket.split("=")[1]
|
||||||
print renk.tamamb+paket+" indiriliyor..."+renk.son
|
print renk.tamamb+paket+" indiriliyor..."+renk.son
|
||||||
try:
|
try:
|
||||||
veri = urllib2.urlopen(link)
|
veri = urllib2.urlopen(link)
|
||||||
|
|
Loading…
Reference in New Issue