projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[rtlnow] Allow double slashes after domain name (Fixes #1928)
[youtube-dl]
/
youtube_dl
/
extractor
/
theplatform.py
diff --git
a/youtube_dl/extractor/theplatform.py
b/youtube_dl/extractor/theplatform.py
index d1d6a4c2cbc9cf846c9fe5c5fcf2e0f993dbfe48..61452e47d760cc76731f8e9bfbc319377cf84a25 100644
(file)
--- a/
youtube_dl/extractor/theplatform.py
+++ b/
youtube_dl/extractor/theplatform.py
@@
-4,14
+4,13
@@
import json
from .common import InfoExtractor
from ..utils import (
xpath_with_ns,
from .common import InfoExtractor
from ..utils import (
xpath_with_ns,
- find_xpath_attr,
)
_x = lambda p: xpath_with_ns(p, {'smil': 'http://www.w3.org/2005/SMIL21/Language'})
class ThePlatformIE(InfoExtractor):
)
_x = lambda p: xpath_with_ns(p, {'smil': 'http://www.w3.org/2005/SMIL21/Language'})
class ThePlatformIE(InfoExtractor):
- _VALID_URL = r'
https?://link\.theplatform\.com/s/[^/]+/
(?P<id>[^/\?]+)'
+ _VALID_URL = r'
(?:https?://link\.theplatform\.com/s/[^/]+/|theplatform:)
(?P<id>[^/\?]+)'
_TEST = {
# from http://www.metacafe.com/watch/cb-e9I_cZgTgIPd/blackberrys_big_bold_z30/
_TEST = {
# from http://www.metacafe.com/watch/cb-e9I_cZgTgIPd/blackberrys_big_bold_z30/