Commits

mickael9 committed e7856a6

Allow trailing slashes when parsing share / file URLs

  • Participants
  • Parent commits 93fbfe5

Comments (0)

Files changed (1)

File gett_uploader.py

 from gett import *
 from time import sleep
 
-url_re = re.compile(r'^(?:http://ge\.tt/|/)?(\w+)(?:/(?:v/(\d+)))?$')
+url_re = re.compile(r'^(?:http://ge\.tt/|/)?(\w+)(?:/(?:v/(\d+)/?)?)?$')
 
 def humanize(nbytes):
     for (exp, unit) in ((9, 'GB'), (6, 'MB'), (3, 'KB')):