From 8e5a4152bb6f2fd72e7f3d7f5f7e937a0fc40344 Mon Sep 17 00:00:00 2001 From: milisbir Date: Fri, 13 Oct 2017 05:33:40 +0300 Subject: [PATCH] talimat.py --- bin/talimat.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/talimat.py b/bin/talimat.py index 41021bb2a..99f6f5f63 100755 --- a/bin/talimat.py +++ b/bin/talimat.py @@ -302,10 +302,17 @@ class renk: class Arge: def indir(self,link): + ''' if "packages/" in link: paket=link.split("?h=packages/")[1] else: 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 try: veri = urllib2.urlopen(link)