Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
Extract cover art from a story file.
    

        def get_cover(story_file):
    """Extract cover art from a story file.
    """

    story_data = _get_story_data(story_file)
    if blorb.claim_story_file(story_data):
        return blorb.get_story_file_cover(story_data)
    else:
        handler = deduce_handler(story_file, story_data)
        if handler.HAS_COVER:
            return handler.get_story_file_cover(story_data)
    return None
        


src/p/y/pyifbabel-0.2.3/treatyofbabel/ifstory.py   pyifbabel(Download)
            meta_dom = ifiction.get_ifiction_dom(meta)
            self.load_from_ifiction(meta_dom)
        cover = babel.get_cover(self.story_file)
        if cover is not None:
            self.cover = cover