feedly.py 575 B

123456789101112131415161718
  1. from terroroftinytown.services.base import BaseService
  2. from terroroftinytown.services.rand import HashRandMixin
  3. from terroroftinytown.services.status import URLStatus
  4. class FeedlyService(BaseService):
  5. def process_redirect(self, response):
  6. status, url, encoding = BaseService.process_redirect(self, response)
  7. if url == 'http://feedly.com/':
  8. return URLStatus.not_found, None, None
  9. else:
  10. return status, url, encoding
  11. class Feedly8Service(HashRandMixin, FeedlyService):
  12. def get_shortcode_width(self):
  13. return 8