Пример #1
0
 def _getters(cls):
     getters = plugins.item_field_getters()
     getters['singleton'] = lambda i: i.album_id is None
     getters['filesize'] = Item.try_filesize  # In bytes.
     return getters
Пример #2
0
 def _getters(cls):
     return plugins.item_field_getters()
Пример #3
0
 def _getters(cls):
     getters = plugins.item_field_getters()
     getters['singleton'] = lambda i: i.album_id is None
     return getters
Пример #4
0
 def _getters(cls):
     getters = plugins.item_field_getters()
     getters['singleton'] = lambda i: i.album_id is None
     getters['filesize'] = Item.try_filesize  # In bytes.
     return getters
Пример #5
0
 def _getters(cls):
     return plugins.item_field_getters()
Пример #6
0
 def _getters(cls):
     getters = plugins.item_field_getters()
     getters['singleton'] = lambda i: i.album_id is None
     return getters
Пример #7
0
 def _getters(cls):
     getters = plugins.item_field_getters()
     getters['singleton'] = lambda i: i.album_id is None
     # Filesize is given in bytes
     getters['filesize'] = lambda i: os.path.getsize(syspath(i.path))
     return getters