0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-22 02:15:12 +00:00

corrected a typo and added myself to travis notifications.

This commit is contained in:
M.Yasoob Khalid 2013-07-18 12:37:02 +05:00
parent c4949c50f9
commit 233ad24ecf
2 changed files with 5 additions and 4 deletions

View file

@ -9,6 +9,7 @@ notifications:
- filippo.valsorda@gmail.com - filippo.valsorda@gmail.com
- phihag@phihag.de - phihag@phihag.de
- jaime.marquinez.ferrandiz+travis@gmail.com - jaime.marquinez.ferrandiz+travis@gmail.com
- yasoob.khld@gmail.com
# irc: # irc:
# channels: # channels:
# - "irc.freenode.org#youtube-dl" # - "irc.freenode.org#youtube-dl"

View file

@ -21,9 +21,9 @@ class ExfmIE(InfoExtractor):
def _real_extract(self, url): def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url) mobj = re.match(self._VALID_URL, url)
video_id = mobj.group(1) song_id = mobj.group(1)
info_url = "http://ex.fm/api/v3/song/%s" %(video_id) info_url = "http://ex.fm/api/v3/song/%s" %(song_id)
webpage = self._download_webpage(info_url, video_id) webpage = self._download_webpage(info_url, song_id)
info = json.loads(webpage) info = json.loads(webpage)
song_url = re.match(self._SOUNDCLOUD_URL_,info['song']['url']) song_url = re.match(self._SOUNDCLOUD_URL_,info['song']['url'])
if song_url is not None: if song_url is not None:
@ -31,7 +31,7 @@ def _real_extract(self, url):
else: else:
song_url = info['song']['url'] song_url = info['song']['url']
return [{ return [{
'id': video_id, 'id': song_id,
'url': song_url, 'url': song_url,
'ext': 'mp3', 'ext': 'mp3',
'title': info['song']['title'], 'title': info['song']['title'],