Added youtube support. Closes #94

This commit is contained in:
2018-02-20 11:47:33 -06:00
parent 5ff5a4a6d2
commit 0e41fabbe6
6 changed files with 38 additions and 80 deletions

View File

@@ -2,6 +2,7 @@ from audio_services import matches_url
import json
import re
import urllib
import youtube_utils
@matches_url('https://audioboom.com')
def convert_audioboom(url):
@@ -29,8 +30,8 @@ def convert_soundcloud (url):
raise TypeError('%r is not streamable' % url)
@matches_url ('https://www.youtube.com/watch')
def convert_long_youtube(url):
return "youtube-url"
def convert_youtube_long (url):
return youtube_utils.get_video_url(url)
def convert_generic_audio(url):
return url