Commit 45083b8193cd13444d625d918e10a3c028fee1c4

Authored by steve ago
Exists in master

Merge branch 'master' of http://gitlab.pikicast.com/Noah/dsfacebook

Showing 1 changed file Side-by-side Diff

insight/url.py View file @ 45083b8
... ... @@ -96,13 +96,13 @@
96 96  
97 97 def Url2Cid(self,url):
98 98  
99   - if self.isrpiki(url):
100   - return Base62().decode(url.split("cid=")[1].split("&")[0])
101   - elif self.isdeep(url):
102   - try:
  99 + try:
  100 + if self.isrpiki(url):
  101 + return Base62().decode(url.split("cid=")[1].split("&")[0])
  102 + elif self.isdeep(url):
103 103 return requests.get(url).text.split("http://www.pikicast.com/share/")[1].split('"')[0]
104   - except :
105   - return "0"
  104 + except :
  105 + return "0"
106 106  
107 107 def rpiki2click(self,url):
108 108 #print url