Commit a46888bf authored by Yannick Chudy's avatar Yannick Chudy

no need csv for calc.padagraph.io

parent 9920eb68
......@@ -72,11 +72,20 @@ def parse_url(url):
url = "https://%s.framapad.org/p/%s/export/txt" % (pad[0], pad[1])
return url, pad[0], "txt"
# padagraph.io
re_pad = "https?:\/\/calc.padagraph.io/([0-9a-zA-Z\-_]+)([\.csv]+)?"
pad = re.findall(re_pad, url)
debug( "convert_url", url , pad )
if len(pad):
pad = [r for r in pad[0] if len(r)]
if len(pad) :
return "%s.csv" % url, pad[0], "csv"
# ethercald & framacalc
re_pad = "https?:\/\/(?:frama|ether)calc.org/([0-9a-zA-Z\-_]+)([\.csv]+)?"
pad = re.findall(re_pad, url)
debug( "convert_url", url , pad )
if len(pad) :
if len(pad):
pad = [r for r in pad[0] if len(r)]
if len(pad) :
return "%s.csv" % url, pad[0], "csv"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment