FFmpeg
|
musixmatch-master/7digital-python/lib/py7digital.py
Go to the documentation of this file.
28 __cache_enabled = False # Enable cache? if set to True, make sure that __cache_dir exists! (e.g. $ mkdir ./cache)
57 data.append('='.join((name, urllib.quote_plus(self.params[name].replace('&', '&').encode('utf8')))))
161 if not self._xml : self._xml = self._request(self._method, + 'details', True, {'artistid': self.id})
173 if not self._xml : self._xml = self._request(self._method + 'details', True, {'artistid': self.id})
183 if not self._xml : self._xml = self._request(self._method + 'details', True, {'artistid': self.id})
206 xml = self._request(self._method + 'releases', True, {'artistid': self.id, 'pageSize': str(pageSize)})
218 xml = self._request('/release/recommend', True, {'artistid': self.id, 'pageSize': str(pageSize)}) # TODO if country is set gives different results
229 xml = self._request(self._method + 'toptracks', True, {'artistid': self.id, 'pageSize': str(pageSize)})
273 if not self._xml : self._xml = self._request(self._method + 'details', True, {'releaseid': self.id})
285 if not self._xml : self._xml = self._request(self._method + 'details', True, {'releaseid': self.id})
295 if not self._xml : self._xml = self._request(self._method + 'details', True, {'releaseid': self.id})
305 if not self._xml : self._xml = self._request(self._method + 'details', True, {'releaseid': self.id})
315 if not self._xml : self._xml = self._request(self._method + 'details', True, {'releaseid': self.id})
325 if not self._xml : self._xml = self._request(self._method + 'details', True, {'releaseid': self.id})
335 if not self._xml : self._xml = self._request(self._method + 'details', True, {'releaseid': self.id})
345 if not self._xml : self._xml = self._request(self._method + 'details', True, {'releaseid': self.id})
365 if not self._xml : self._xml = self._request(self._method + 'details', True, {'releaseid': self.id})
389 xml = self._request(self._method + 'tracks', True, {'releaseid': self.id, 'pageSize': str(pageSize)})
403 xml = self._request(self._method + 'recommend', True, {'releaseid': self.id, 'pageSize': str(pageSize)})
453 if not self._xml : self._xml = self._request(self._method + 'details', True, {'trackid': self.id})
463 if not self._xml : self._xml = self._request(self._method + 'details', True, {'trackid': self.id})
473 if not self._xml : self._xml = self._request(self._method + 'details', True, {'trackid': self.id})
486 if not self._xml : self._xml = self._request(self._method + 'preview', True, {'trackid': self.id})
493 if not self._xml : self._xml = self._request(self._method + 'details', True, {'trackid': self.id})
503 if not self._xml : self._xml = self._request(self._method + 'details', True, {'trackid': self.id})
513 if not self._xml : self._xml = self._request(self._method + 'details', True, {'trackid': self.id})
523 if not self._xml : self._xml = self._request(self._method + 'details', True, {'trackid': self.id})
576 if not self._xml : self._xml = self._request(self._method + 'details', True, {'tagid': self.id})
586 if not self._xml : self._xml = self._request(self._method + 'details', True, {'tagid': self.id})
857 album.set_label(_get_label(xml.getElementsByTagName('label')[0])) #In some cases that are albums with no label (record company) attached! :-(
def __init__(self, id)
def get_url(self)
def album_releases(fromdate, todate)
_release_date
def get_name(self)
def get_albums(self, pageSize=10)
def get_id(self)
def _get_label(xml)
def get_md5(text)
def __str__(self)
def get_position(self)
def _get_results(self, master_node)
def set_album(self, album)
_url
def __ne__(self, other)
def get_tags(self, pageSize=10)
def get_label(self)
_xml
def get_tags(self, pageSize=10)
def get_similar(self, pageSize=10)
name
def _get_track(xml, album, artist)
def get_type(self)
_year
def _get_results(self, master_node)
params
def _get_cache_key(self)
def get_audio(self)
def set_name(self, name)
_duration
def __init__(self, id)
def _download_response(self)
method
def __init__(self, method, search_terms, xml_tag)
def get_id(self)
def get_total_result_count(self)
def set_url(self, url)
def set_url(self, url)
_tags
_method
id
def get_barcode(self)
_explicit
_tracks
_label
def set_artist(self, artist)
def set_image(self, image)
def set_type(self, type)
def get_recommended_albums(self, pageSize=10)
def __eq__(self, other)
id
_top_tracks
def _request(self, method_name, cacheable=False, params=None)
def _retrieve_next_page(self)
def __repr__(self)
def get_explicit(self)
_search_terms
def get_isrc(self)
def __init__(self, method_name, params)
def _get_cache_dir()
def __repr__(self)
artist
barcode
def get_url(self)
def get_next_page(self)
def get_added_date(self)
def _get_results(self, master_node)
def __eq__(self, other)
def _extract_all(node, name, pageSize_count=None)
def set_image(self, image)
def set_barcode(self, barcode)
def __init__(self, artist_id)
def set_position(self, track_number)
_added_date
def set_year(self, year)
def __init__(self, query)
def get_tracks(self, pageSize=10)
def __init__(self, id=HOST_NAME)
_tags
def set_release_date(self, release_date)
def get_url(self)
_tags
def search_album(query)
_type
artist
def album_charts(period, todate)
_message
def get_name(self)
def _get_results(self, master_node)
def set_url(self, url)
def set_isrc(self, isrc)
def set_title(self, title)
def __init__(self, id, artist=None)
def _extract(node, name, index=0)
def set_title(self, title)
_url
def search_track(query)
_image
def browse_artists(letter)
def disable_caching()
def __init__(self, letter)
def get_release_date(self)
def __ne__(self, other)
def get_title(self)
def _get_results(self, master_node)
def __init__(self, fromdate, todate)
def _retrieve_page(self, page_index)
def get_image(self)
def get_artist(self)
def set_version(self, version)
def get_url(self)
def get_type(self)
def search_artist(query)
def _get_cached_response(self)
def get_message(self)
def get_title(self)
def __init__(self, query)
def _get_tag(xml)
_xml_tag
album
def __init__(self, period, todate)
_results_per_page
def __eq__(self, other)
def set_name(self, name)
def _get_params(self)
def __repr__(self)
def __init__(self, method)
_isrc
_preview
def __ne__(self, other)
def set_duration(self, duration)
def _get_error(self, text)
def get_id(self)
def __ne__(self, other)
name
def set_artist(self, artist)
_last_page_index
def set_label(self, label)
def get_artist_detail(artistId)
_recommended_albums
_type
def get_year(self)
id
def get_top_tracks(self, pageSize=10)
def is_caching_enabled()
def _get_results(self, master_node)
_url
def set_name(self, name)
def __init__(self, type, message)
title
name
_image
def __repr__(self)
def set_explicit(self, explicit)
def __eq__(self, other)
def has_results(self)
def __init__(self, query)
def set_added_date(self, added_date)
def __init__(self, id)
def get_preview(self)
_hits
def get_name(self)
_url
def _get_results(self, master_node)
_similar
title
_image
def _get_artist(xml)
_version
def get_artist(self)
def get_id(self)
def __eq__(self, other)
_barcode
def _is_cached(self)
id
def get_album(self)
id
def set_url(self, url)
def get_page(self, page=0)
def __ne__(self, other)
_albums
def enable_caching(cache_dir=None)
def execute(self, cacheable=False)
def _get_album(xml, artist)
def get_version(self)
def __repr__(self)
_position
def get_image(self)
def get_duration(self)
def _get_params(self)
def get_id(self)
Generated on Mon Nov 18 2024 06:51:59 for FFmpeg by 1.8.11