How to use the pylast._BaseObject.__init__ function in pylast

To help you get started, we’ve selected a few pylast examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github maxexcloo / LastDown / pylast.py View on Github external
def __init__(self, group_name, network):
        _BaseObject.__init__(self, network)
        
        self.name = group_name
github maxexcloo / LastDown / pylast.py View on Github external
def __init__(self, user, network):
        _BaseObject.__init__(self, network)
        
        if isinstance(user, User):
            self.user = user
        else:
            self.user = User(user, self.network)
        
        self._albums_index = 0
        self._artists_index = 0
        self._tracks_index = 0
github maxexcloo / LastDown / pylast.py View on Github external
def __init__(self, artist, title, network):
        _BaseObject.__init__(self, network)
        _Taggable.__init__(self, 'track')
        
        if isinstance(artist, Artist):
            self.artist = artist
        else:
            self.artist = Artist(artist, self.network)
        
        self.title = title
github asermax / lastfm_extension / pylast.py View on Github external
def __init__(self, artist, title, network):
        """
        Create an album instance.
        # Parameters:
            * artist: An artist name or an Artist object.
            * title: The album title.
        """
        
        _BaseObject.__init__(self, network)
        _Taggable.__init__(self, 'album')
        
        if isinstance(artist, Artist):
            self.artist = artist
        else:
            self.artist = Artist(artist, self.network)
        
        self.title = title
github pylast / pylast / pylast.py View on Github external
def __init__(self, user, id, network):
        _BaseObject.__init__(self, network)

        if isinstance(user, User):
            self.user = user
        else:
            self.user = User(user, self.network)

        self.id = id
github asermax / lastfm_extension / pylast.py View on Github external
def __init__(self, name, network):
        _BaseObject.__init__(self, network)
        
        self.name = name
github maxexcloo / LastDown / pylast.py View on Github external
def __init__(self, user, id, network):
        _BaseObject.__init__(self, network)
        
        if isinstance(user, User):
            self.user = user
        else:
            self.user = User(user, self.network)
        
        self.id = id
github maxexcloo / LastDown / pylast.py View on Github external
def __init__(self, ws_prefix, search_terms, network):
        _BaseObject.__init__(self, network)
        
        self._ws_prefix = ws_prefix
        self.search_terms = search_terms
        
        self._last_page_index = 0
github asermax / lastfm_extension / pylast.py View on Github external
def __init__(self, name, network):
        _BaseObject.__init__(self, network)
        
        self.name = name
github pylast / pylast / pylast.py View on Github external
def __init__(self, artist, title, network, username=None):
        _BaseObject.__init__(self, network)
        _Taggable.__init__(self, 'track')

        if isinstance(artist, Artist):
            self.artist = artist
        else:
            self.artist = Artist(artist, self.network)

        self.title = title

        self.username = username