JLU5-SupyPlugins/LastFM/__init__.py
James Lu 07b4007099 Squashed commit of the following:
commit 8c00e3240a47fad7b983156d0f4f6a4ce14f9004
Author: James Lu <glolol1@hotmail.com>
Date:   Mon Nov 10 00:21:35 2014 -0800

    LastFM: update __init__.py

commit 37e8da3b3a1dddd14cbcc55b4b1b86063387e16e
Author: James Lu <glolol1@hotmail.com>
Date:   Tue Nov 4 17:48:05 2014 -0800

    Get rid of stale files and update README.md [ci skip]

commit 827e9abe7f79f98645097416f2c8b2432791864b
Author: James Lu <glolol1@hotmail.com>
Date:   Tue Nov 4 17:34:47 2014 -0800

    Fix __init__.py

commit 6289f11445dec2e62a93222087af7ace7768d503
Author: James Lu <glolol1@hotmail.com>
Date:   Tue Nov 4 17:22:21 2014 -0800

    fix UnicodeDecodeError with 'lastfm recenttracks'

commit 3497bab87a974e2858a2a35de536998f48d256aa
Author: James Lu <glolol1@hotmail.com>
Date:   Sun Nov 2 17:02:18 2014 -0800

    test.py: fetch API Key from environment variables

commit ca1b7d0d317880e45ad137f118a7add8739b987d
Author: James Lu <glolol1@hotmail.com>
Date:   Sun Nov 2 16:48:05 2014 -0800

    .travis.yml: this is why i don't use a 1 plugin/repo strategy

commit 41adad8f6de8ee178d7a7de86d8cb0649df77bf3
Author: James Lu <glolol1@hotmail.com>
Date:   Sun Nov 2 16:38:00 2014 -0800

    add travis-ci build files?

commit 1d4a5a2af55bf15327cbb6408c26f7e5bb3ccc90
Author: GLolol <GLolol1@hotmail.com>
Date:   Sun Nov 2 09:47:31 2014 -0800

    Stop hardcoding api key & fix errors when a user has never played a track before (#1)

    - Tests are broken at the moment (supybot-test just ignores them!) At least they don't cause SyntaxErrors now

commit 7f39668e79fc80ec3680a92a4aa2c64c648835b0
Author: GLolol <GLolol1@hotmail.com>
Date:   Sat Nov 1 11:36:56 2014 -0700

    Add preliminary Python 3 support (some things are still quite broken and need testing)

commit eaea76c2c8570bba685e9f7496f81984840571f2
Merge: 63b0af8 f7d5d22
Author: Kevin Funk <kevin@kfunk.org>
Date:   Sun Aug 4 13:15:36 2013 -0700

    Merge pull request #3 from hades/master

    nowPlaying: format album properly

commit f7d5d22cf8bf86920480d40f2a184f629f8dbffe
Author: Edward Hades <edward.hades@gmail.com>
Date:   Sat Aug 3 11:52:33 2013 +0200

    nowPlaying: format album properly

commit 63b0af83387be62b123b884843cd815738c70273
Author: Kevin Funk <kevin@kfunk.org>
Date:   Fri Mar 15 23:27:30 2013 +0100

    Fix missing argument

    Ouch. Wondering how that one slipped through.

    Thanks to Colin Guthrie for reporting.

commit 5e91a27acee6c6ac3acf276a5ce5d235d6d5f21c
Author: Kevin Funk <krf@electrostorm.net>
Date:   Tue Oct 16 09:11:21 2012 +0200

    Fix null album strings, add tests

    Thanks to Thomas Coppi for the hint.

    Related to https://github.com/krf/supybot-lastfm/pull/2

commit 1dbffdf6f65626b8a69fe0aab66aa274820512e3
Author: Kevin Funk <krf@electrostorm.net>
Date:   Fri Jul 27 06:54:19 2012 +0200

    Fix missing 'channel' decl

commit 644ef579ac5d45634331f310b853d243deb97a0f
Author: Kevin Funk <krf@electrostorm.net>
Date:   Thu Jul 26 21:37:27 2012 +0200

    Respect maxResults config variable in compare

commit 836b11b0264801d831d497ec0d98d61420bd5f95
Author: Kevin Funk <krf@electrostorm.net>
Date:   Thu Jul 26 20:53:54 2012 +0200

    Minor: Fixup method naming

commit c709f1d82664ed0620a369f43f81a423d8b5faf5
Author: Kevin Funk <krf@electrostorm.net>
Date:   Thu Jul 26 20:52:46 2012 +0200

    Include more rating information in "compare"

commit 127d7a5bcba6441146e4fd8b33f976fb6a85e5e2
Author: Kevin Funk <krf@electrostorm.net>
Date:   Thu Jul 26 20:37:42 2012 +0200

    Bump meta-information

commit 2bb47b716b6fc4ecc02fac510f453aa4477c6b55
Author: Kevin Funk <krf@electrostorm.net>
Date:   Thu Jul 26 20:35:38 2012 +0200

    Dont use generic try-except clauses

commit 122eedd11d56aa151fd64cbedb13edb25cab2fdf
Author: Kevin Funk <krf@electrostorm.net>
Date:   Thu Jul 26 20:33:07 2012 +0200

    Finally use own API KEY

commit 6eee1e06a93ec15733ee572badb0364fafb32dd2
Author: Kevin Funk <krf@electrostorm.net>
Date:   Thu Jul 26 20:32:23 2012 +0200

    More cleanup

commit 9638d6ddce4c909fea07cabdce438294db6d4623
Author: Kevin Funk <krf@electrostorm.net>
Date:   Thu Jul 26 20:21:13 2012 +0200

    Cleanup, try to stay compatible with Python 2.5.x

commit 20397ff5bb008ace0d149259d2be9152c5721662
Author: Kevin Funk <krf@electrostorm.net>
Date:   Thu Jul 26 20:10:03 2012 +0200

    Add compare function

commit 5adf58bd334222213edd22b0eecc28c511f8f58c
Author: Kevin Funk <krf@electrostorm.net>
Date:   Mon Jul 9 21:56:40 2012 +0200

    Formatting++

commit 8bcc372c0c0fe91555ae2225cc7a239cbb10781e
Author: Kevin Funk <krf@electrostorm.net>
Date:   Mon Jul 9 21:49:00 2012 +0200

    Moved to github.com

commit b951e57244131b128075be4ea99a7ff5757a9d36
Author: Kevin Funk <krf@electrostorm.net>
Date:   Mon Jul 9 12:28:37 2012 -0700

    Initial commit
2014-11-10 00:30:05 -08:00

75 lines
3.0 KiB
Python

###
# -*- coding: utf-8 -*-
#
# Copyright (c) 2008,2012 Kevin Funk
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions, and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions, and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# * Neither the name of the author of this software nor the name of
# contributors to this software may be used to endorse or promote products
# derived from this software without specific prior written consent.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
###
"""
Shows some information about a LastFM account (see: www.last.fm)
"""
import supybot
import supybot.world as world
# Use this for the version of this plugin. You may wish to put a CVS keyword
# in here if you're keeping the plugin in CVS or some similar system.
__version__ = ""
# Replace this with an appropriate author or supybot.Author instance.
__author__ = supybot.Author("Kevin Funk", "KRF", "krf@electrostorm.net")
# This is a dictionary mapping supybot.Author instances to lists of
# contributions.
__contributors__ = {
supybot.Author("Ilya Kuznetsov", "worklez", "worklez@gmail.com"): ["profile"],
supybot.Author("Pavel Dvořák", "czshadow", "czshadow@gmail.com"):
["misc"],
supybot.Author('James Lu', 'GLolol',
'GLolol@overdrive.pw'):
['Python 3 support', 'bugfixes']
}
# This is a url where the most recent plugin package can be downloaded.
__url__ = 'https://github.com/GLolol/supybot-lastfm'
from . import config
from . import plugin
from imp import reload
reload(plugin) # In case we're being reloaded.
# Add more reloads here if you add third-party modules and want them to be
# reloaded when this plugin is reloaded. Don't forget to import them as well!
if world.testing:
from . import test
Class = plugin.Class
configure = config.configure
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: