def _get_metadata(self):
        """Get album metadata from `description_file` (`index.md`):

        -> title, thumbnail image, description

        """
        descfile = join(self.src_path, self.description_file)
        self.description = ''
        self.meta = {}
        # default: get title from directory name
        self.title = os.path.basename(self.path if self.path != '.'
                                      else self.src_path)

        if isfile(descfile):
            meta = read_markdown(descfile)
            for key, val in meta.items():
                setattr(self, key, val)

        try:
            self.author = self.meta['author'][0]
        except KeyError:
            self.author = self.settings.get('author')
def _get_metadata(self):
        """Get album metadata from `description_file` (`index.md`):

        -> title, thumbnail image, description

        """
        descfile = join(self.src_path, self.description_file)
        self.description = ''
        self.meta = {}
        # default: get title from directory name
        self.title = os.path.basename(self.path if self.path != '.'
                                      else self.src_path)

        if isfile(descfile):
            meta = read_markdown(descfile)
            for key, val in meta.items():
                setattr(self, key, val)

        try:
            self.author = self.meta['author'][0]
        except KeyError:
            self.author = self.settings.get('author')
def _get_metadata ( self ) : descfile = join ( self . src_path , self . description_file ) self . description = '' self . meta = { } # default: get title from directory name self . title = os . path . basename ( self . path if self . path != '.' else self . src_path ) if isfile ( descfile ) : meta = read_markdown ( descfile ) for key , val in meta . items ( ) : setattr ( self , key , val ) try : self . author = self . meta [ 'author' ] [ 0 ] except KeyError : self . author = self . settings . get ( 'author' )
Get album metadata from `description_file` (`index.md`):

        -> title, thumbnail image, description
Get album metadata from description_file ( index . md ) :