You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
341B

  1. class gfycat():
  2. def __init__(self):
  3. pass
  4. def url_get(self,url,urladd):
  5. urlsplit = url.split("/")
  6. urlsplit[2] = urladd + urlsplit[2]
  7. urlsplit.append(".webm")
  8. i = 0
  9. urlnew = ""
  10. for split in urlsplit:
  11. urlnew = urlnew + split
  12. i += 1
  13. if i <= 3:
  14. urlnew = urlnew + "/"
  15. return urlnew
  16. def get(self,url):
  17. return url