[aparat] Add support (Fixes #2012)
This commit is contained in:
parent
768df74538
commit
aa94a6d315
5 changed files with 73 additions and 6 deletions
|
@ -1093,3 +1093,8 @@ def remove_start(s, start):
|
|||
def url_basename(url):
|
||||
path = compat_urlparse.urlparse(url).path
|
||||
return path.strip(u'/').split(u'/')[-1]
|
||||
|
||||
|
||||
class HEADRequest(compat_urllib_request.Request):
|
||||
def get_method(self):
|
||||
return "HEAD"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue