示例#1
0
    def __init__(self, session):
        BaseChannelsEndpoint.__init__(self, session)

        child_handler_dict = {"subscribed": ChannelsSubscribedEndpoint, "discovered": ChannelsDiscoveredEndpoint,
                              "popular": ChannelsPopularEndpoint}
        for path, child_cls in child_handler_dict.iteritems():
            self.putChild(path, child_cls(self.session))
    def __init__(self, session, cid):
        BaseChannelsEndpoint.__init__(self, session)
        self.cid = bytes(cid.decode('hex'))

        child_handler_dict = {"torrents": ChannelsTorrentsEndpoint, "rssfeeds": ChannelsRssFeedsEndpoint,
                              "playlists": ChannelsPlaylistsEndpoint, "recheckfeeds": ChannelsRecheckFeedsEndpoint}
        for path, child_cls in child_handler_dict.iteritems():
            self.putChild(path, child_cls(session, self.cid))
    def __init__(self, session, cid):
        BaseChannelsEndpoint.__init__(self, session)
        self.cid = bytes(cid.decode('hex'))

        child_handler_dict = {"torrents": ChannelsTorrentsEndpoint, "rssfeeds": ChannelsRssFeedsEndpoint,
                              "playlists": ChannelsPlaylistsEndpoint, "recheckfeeds": ChannelsRecheckFeedsEndpoint,
                              "mdblob": ChannelsDiscoveredExportEndpoint}
        for path, child_cls in child_handler_dict.iteritems():
            self.putChild(path, child_cls(session, self.cid))
示例#4
0
    def __init__(self, session):
        BaseChannelsEndpoint.__init__(self, session)

        child_handler_dict = {
            "subscribed": ChannelsSubscribedEndpoint,
            "discovered": ChannelsDiscoveredEndpoint,
            "popular": ChannelsPopularEndpoint
        }
        for path, child_cls in child_handler_dict.iteritems():
            self.putChild(path, child_cls(self.session))
 def __init__(self, session, cid):
     BaseChannelsEndpoint.__init__(self, session)
     self.cid = bytes(cid.decode('hex'))
示例#6
0
 def __init__(self, session, cid):
     BaseChannelsEndpoint.__init__(self, session)
     self.cid = cid
示例#7
0
 def __init__(self, session, cid, playlist_id):
     BaseChannelsEndpoint.__init__(self, session)
     self.cid = cid
     self.playlist_id = playlist_id
示例#8
0
 def __init__(self, session, cid, playlist_id, infohash):
     BaseChannelsEndpoint.__init__(self, session)
     self.cid = cid
     self.playlist_id = playlist_id
     self.infohash = infohash.decode('hex')
示例#9
0
 def __init__(self, session, cid):
     BaseChannelsEndpoint.__init__(self, session)
     self.cid = cid
     self.is_chant_channel = (len(cid) == 74)
 def __init__(self, session, cid, playlist_id, infohash):
     BaseChannelsEndpoint.__init__(self, session)
     self.cid = cid
     self.playlist_id = playlist_id
     self.infohash = infohash.decode('hex')
 def __init__(self, session, cid, playlist_id):
     BaseChannelsEndpoint.__init__(self, session)
     self.cid = cid
     self.playlist_id = playlist_id
示例#12
0
 def __init__(self, session, cid, path):
     BaseChannelsEndpoint.__init__(self, session)
     self.cid = cid
     self.path = path
     self.deferred = Deferred()
     self.is_chant_channel = (len(cid) == 74)
 def __init__(self, session, cid, path):
     BaseChannelsEndpoint.__init__(self, session)
     self.cid = cid
     self.path = path
     self.deferred = Deferred()
 def __init__(self, session, cid):
     BaseChannelsEndpoint.__init__(self, session)
     self.cid = cid
     self.is_chant_channel = (len(cid) == 74)
 def __init__(self, session, cid, path):
     BaseChannelsEndpoint.__init__(self, session)
     self.cid = cid
     self.path = path
     self.deferred = Deferred()
     self.is_chant_channel = (len(cid) == 74)
示例#16
0
 def __init__(self, session, cid):
     BaseChannelsEndpoint.__init__(self, session)
     self.cid = cid
 def __init__(self, session, cid):
     BaseChannelsEndpoint.__init__(self, session)
     self.cid = bytes(cid.decode('hex'))