FFmpeg
|
Namespaces | |
album | |
api | |
artist | |
base | |
lyrics | |
subtitle | |
track | |
ws | |
Functions | |
def | url_call (url) |
def | download_file (file_url, file_name) |
def | get_trackid_from_text_search (title, artistname='') |
def | get_preview_from_trackid (trackid) |
Variables | |
string | __author__ = "Luca De Vitis <luca@monkeython.com>" |
string | __version__ = '0.9' |
string | __copyright__ = "2011, %s " |
string | __license__ |
string | __doc__ |
string | __docformat__ = 'restructuredtext en' |
list | __classifiers__ |
list | __all__ |
apikey = os.environ.get('musixmatch_apikey', None) | |
format = os.environ.get('musixmatch_format', 'json') | |
string | newapikey = '82be3ea3f79ea404d45f47607c103eff' |
song_wakeMeUp = musixmatch.ws.track.search(q_lyrics = 'wake me up',f_lyrics_language='en',s_track_rating='desc',format ='json',apikey=newapikey) | |
string | DIGITAL7_API_KEY = '7dbpa63h3y3d' |
tracktitle | |
trackid | |
audio_url = get_preview_from_trackid(trackid) | |
string | file_name = tracktitle+u'.mp3' |
string | path_name = './' |
mp3 = download_file(audio_url, path_name) | |
chart = musixmatch.ws.track.chart.get(country='it', apikey=apikey) | |
lyrics = musixmatch.ws.track.lyrics.get('Sexy and I know it',apikey=apikey) | |
Function Documentation
def musixmatch.download_file | ( | file_url, | |
file_name | |||
) |
Definition at line 55 of file musixmatch-master/musixmatch.py.
def musixmatch.get_preview_from_trackid | ( | trackid | ) |
***This method is from get_preview_url.py by Thierry Bertin-Mahieux*** Ask for the preview to a particular track, get the XML answer After calling the API with a given track id, we get an XML response that looks like: <response status="ok" version="1.2" xsi:noNamespaceSchemaLocation="http://api.7digital.com/1.2/static/7digitalAPI.xsd"> <url> http://previews.7digital.com/clips/34/6804688.clip.mp3 </url> </response> We parse it for the URL that we return, or '' if a problem
Definition at line 93 of file musixmatch-master/musixmatch.py.
def musixmatch.get_trackid_from_text_search | ( | title, | |
artistname = '' |
|||
) |
***This method is from get_preview_url.py by Thierry Bertin-Mahieux*** Search for an artist + title using 7digital search API Return None if there is a problem, or tuple (title,trackid)
Definition at line 67 of file musixmatch-master/musixmatch.py.
def musixmatch.url_call | ( | url | ) |
***This method is from get_preview_url.py by Thierry Bertin-Mahieux*** Do a simple request to the 7digital API We assume we don't do intense querying, this function is not robust Return the answer as na xml document
Definition at line 42 of file musixmatch-master/musixmatch.py.
Referenced by get_preview_from_trackid(), and get_trackid_from_text_search().
Variable Documentation
|
private |
|
private |
Definition at line 2 of file musixmatch-master/build/lib/musixmatch/__init__.py.
|
private |
Definition at line 30 of file musixmatch-master/build/lib/musixmatch/__init__.py.
|
private |
Definition at line 4 of file musixmatch-master/build/lib/musixmatch/__init__.py.
|
private |
|
private |
Definition at line 29 of file musixmatch-master/build/lib/musixmatch/__init__.py.
|
private |
Definition at line 5 of file musixmatch-master/build/lib/musixmatch/__init__.py.
|
private |
Definition at line 3 of file musixmatch-master/build/lib/musixmatch/__init__.py.
string musixmatch.apikey = os.environ.get('musixmatch_apikey', None) |
Definition at line 43 of file musixmatch-master/build/lib/musixmatch/__init__.py.
musixmatch.audio_url = get_preview_from_trackid(trackid) |
Definition at line 125 of file musixmatch-master/musixmatch.py.
musixmatch.chart = musixmatch.ws.track.chart.get(country='it', apikey=apikey) |
Definition at line 9 of file musixmatch.py.
string musixmatch.DIGITAL7_API_KEY = '7dbpa63h3y3d' |
Definition at line 40 of file musixmatch-master/musixmatch.py.
musixmatch.file_name = tracktitle+u'.mp3' |
Definition at line 127 of file musixmatch-master/musixmatch.py.
musixmatch.format = os.environ.get('musixmatch_format', 'json') |
Definition at line 44 of file musixmatch-master/build/lib/musixmatch/__init__.py.
musixmatch.lyrics = musixmatch.ws.track.lyrics.get('Sexy and I know it',apikey=apikey) |
Definition at line 12 of file musixmatch.py.
musixmatch.mp3 = download_file(audio_url, path_name) |
Definition at line 135 of file musixmatch-master/musixmatch.py.
Referenced by av_register_all(), avcodec_register_all(), mp3_parse_vbr_tags(), mp3_queue_flush(), mp3_read_header(), mp3_read_packet(), mp3_seek(), mp3_update_xing(), mp3_write_audio_packet(), mp3_write_trailer(), mp3_write_xing(), query_codec(), and read_xing_toc().
string musixmatch.newapikey = '82be3ea3f79ea404d45f47607c103eff' |
Definition at line 15 of file musixmatch-master/musixmatch.py.
string musixmatch.path_name = './' |
Definition at line 134 of file musixmatch-master/musixmatch.py.
musixmatch.song_wakeMeUp = musixmatch.ws.track.search(q_lyrics = 'wake me up',f_lyrics_language='en',s_track_rating='desc',format ='json',apikey=newapikey) |
Definition at line 21 of file musixmatch-master/musixmatch.py.
musixmatch.trackid |
Definition at line 123 of file musixmatch-master/musixmatch.py.
musixmatch.tracktitle |
Definition at line 123 of file musixmatch-master/musixmatch.py.
Generated on Mon Nov 18 2024 06:52:13 for FFmpeg by 1.8.11