projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
77a842c
)
[metacafe] Fix family filter bypass (closes #19287)
author
Sergey M․
<dstftw@gmail.com>
Wed, 20 Feb 2019 22:59:07 +0000
(
05:59
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 20 Feb 2019 22:59:07 +0000
(
05:59
+0700)
youtube_dl/extractor/metacafe.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/metacafe.py
b/youtube_dl/extractor/metacafe.py
index 28f59f63c836a6f16f58c85969337e669e12dcb3..9e92416d1d804cfd7d0569d20c26f591655adf09 100644
(file)
--- a/
youtube_dl/extractor/metacafe.py
+++ b/
youtube_dl/extractor/metacafe.py
@@
-1,12
+1,13
@@
from __future__ import unicode_literals
from __future__ import unicode_literals
+import json
import re
from .common import InfoExtractor
from ..compat import (
compat_parse_qs,
import re
from .common import InfoExtractor
from ..compat import (
compat_parse_qs,
+ compat_urllib_parse,
compat_urllib_parse_unquote,
compat_urllib_parse_unquote,
- compat_urllib_parse_urlencode,
)
from ..utils import (
determine_ext,
)
from ..utils import (
determine_ext,
@@
-144,7
+145,7
@@
class MetacafeIE(InfoExtractor):
headers = {
# Disable family filter
headers = {
# Disable family filter
- 'Cookie': 'user=%s; ' % compat_urllib_parse
_urlencode({'ffilter': False}
)
+ 'Cookie': 'user=%s; ' % compat_urllib_parse
.quote(json.dumps({'ffilter': False})
)
}
# AnyClip videos require the flashversion cookie so that we get the link
}
# AnyClip videos require the flashversion cookie so that we get the link