def _channel(self): if self._channel_data is None: self._channel_data = model.fetch_channel(self.package, self.name) return self._channel_data
def get(cls, name, package): chanview = model.fetch_channel(package, name, with_releases=False) return cls(name, package, chanview.current)