projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix imports and general cleanup
[youtube-dl]
/
youtube_dl
/
extractor
/
fourtube.py
diff --git
a/youtube_dl/extractor/fourtube.py
b/youtube_dl/extractor/fourtube.py
index b22ce2acb5d1beae29d1b298b4ef63c8e7639e5f..7187e075291af16151e28b8041d7e06e49887fa7 100644
(file)
--- a/
youtube_dl/extractor/fourtube.py
+++ b/
youtube_dl/extractor/fourtube.py
@@
-3,12
+3,14
@@
from __future__ import unicode_literals
import re
from .common import InfoExtractor
import re
from .common import InfoExtractor
-from ..
utils
import (
+from ..
compat
import (
compat_urllib_request,
compat_urllib_request,
- unified_strdate,
- str_to_int,
- parse_duration,
+)
+from ..utils import (
clean_html,
clean_html,
+ parse_duration,
+ str_to_int,
+ unified_strdate,
)
)
@@
-31,9
+33,7
@@
class FourTubeIE(InfoExtractor):
}
def _real_extract(self, url):
}
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
-
- video_id = mobj.group('id')
+ video_id = self._match_id(url)
webpage_url = 'http://www.4tube.com/videos/' + video_id
webpage = self._download_webpage(webpage_url, video_id)
webpage_url = 'http://www.4tube.com/videos/' + video_id
webpage = self._download_webpage(webpage_url, video_id)