diff --git a/.build b/.build index 9d60796..da2d398 100644 --- a/.build +++ b/.build @@ -1 +1 @@ -11 \ No newline at end of file +14 \ No newline at end of file diff --git a/AUTHORS b/AUTHORS deleted file mode 100644 index 053c3a0..0000000 --- a/AUTHORS +++ /dev/null @@ -1,2 +0,0 @@ -Amr Hassan -Lukas Lipka diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100755 index 0000000..9e84b8c --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,6 @@ +include pylast.py +include setup.py +include README +include COPYING +include INSTALL +include .build diff --git a/PKG-INFO b/PKG-INFO deleted file mode 100644 index e6dad55..0000000 --- a/PKG-INFO +++ /dev/null @@ -1,10 +0,0 @@ -Metadata-Version: 1.0 -Name: pylast -Version: 0.5.11 -Summary: A Python interface to Last.fm (and other API compatible social networks) -Home-page: http://code.google.com/p/pylast/ -Author: Amr Hassan -Author-email: amr.hassan@gmail.com -License: Apache2 -Description: UNKNOWN -Platform: UNKNOWN diff --git a/README b/README index 64b1b7f..923259e 100644 --- a/README +++ b/README @@ -3,5 +3,5 @@ pylast A python interface to Last.fm. Try using the pydoc utility for help on usage. -For more info check out the project's home page at http://code.google.com/p/pylast/ -or the mailing list http://groups.google.com/group/pylast/ + +Original code can be found at: http://code.google.com/p/pylast/ diff --git a/pylast.py b/pylast.py index 71be2a0..a4e0c0e 100644 --- a/pylast.py +++ b/pylast.py @@ -313,37 +313,6 @@ class _Network(object): return Playlist(user, e_id, self) - def get_top_artists(self, limit=None): - """Returns a sequence of the most played artists.""" - - doc = _Request(self, "chart.getTopArtists").execute(True) - seq = [] - for node in doc.getElementsByTagName("artist"): - title = _extract(node, "name") - artist = Artist(title, self) - seq.append(artist) - - if limit: - seq = seq[:limit] - - return seq - - def get_top_tracks(self, limit=None): - """Returns a sequence of the most played tracks.""" - - doc = _Request(self, "chart.getTopTracks").execute(True) - seq = [] - for node in doc.getElementsByTagName("track"): - title = _extract(node, "name") - artist = _extract(node, "name", 1) - track = Track(artist, title, self) - seq.append(track) - - if limit: - seq = seq[:limit] - - return seq - def get_top_tags(self, limit=None): """Returns a sequence of the most used tags as a sequence of TopItem objects.""" @@ -383,8 +352,6 @@ class _Network(object): def enable_caching(self, file_path = None): """Enables caching request-wide for all cachable calls. - In choosing the backend used for caching, it will try _SqliteCacheBackend first if - the module sqlite3 is present. If not, it will fallback to _ShelfCacheBackend which uses shelve.Shelf objects. * file_path: A file path for the backend storage file. If None set, a temp file would probably be created, according the backend. diff --git a/setup.py b/setup.py old mode 100644 new mode 100755