1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2025-02-06 10:09:50 +00:00

[weeklybeats] Cleaned up a bit

This commit is contained in:
Cloud Chagnon 2018-01-11 23:20:58 -07:00
parent dd64d69b7b
commit 546a694df4

View File

@ -21,10 +21,8 @@ class WeeklyBeatsIE(InfoExtractor):
def _real_extract(self, url):
video_id = self._search_regex(r'https://weeklybeats.com/[^/]+/music/([^/]*)/?', url, 'video_id')
print(video_id)
webpage = self._download_webpage(url, video_id)
# TODO more code goes here, for example ...
return {
'id': video_id,
'title': self._search_regex(r'<meta[^>]+property="og:title"[^>]+content="([^\"]+)"[^>]*>', webpage, 'title', fatal=False),