Home | Trees | Indices | Help |
---|
|
1 # -*- coding: utf-8 -*- 2 # Elisa - Home multimedia server 3 # Copyright (C) 2006-2008 Fluendo Embedded S.L. (www.fluendo.com). 4 # All rights reserved. 5 # 6 # This file is available under one of two license agreements. 7 # 8 # This file is licensed under the GPL version 3. 9 # See "LICENSE.GPL" in the root of this distribution including a special 10 # exception to use Elisa with Fluendo's plugins. 11 # 12 # The GPL part of Elisa is also available under a commercial licensing 13 # agreement from Fluendo. 14 # See "LICENSE.Elisa" in the root directory of this distribution package 15 # for details on that license. 16 17 """ 18 Metadata parsing support 19 """ 20 21 22 __maintainer__ = 'Philippe Normand <philippe@fluendo.com>' 23 __maintainer2__ = 'Benjamin Kampmann <benjamin@fluendo.com>' 24 25 26 from elisa.core.component import Component 27 2830 """ 31 Metadata (ID3 tags, EXIF information, ...) can be extracted from medias 32 using different ways. This base component is meant to 33 provide the developer some nice ways to extend Elisa's metadata 34 parsing framework. 35 36 All MetadataProviders are handled by the L{elisa.core.metadata_manager.MetadataManager} manager. 37 38 A MetadataProvider must be able to : 39 - provide a rank between 0 (highest) and 255 40 - check if it is able to handle a given dict 41 42 TODO: 43 - we need a way to rank the metadataproviders 44 """ 457947 """ 48 Rank determining wether the parser should be prioritized. 49 50 @todo: We need a better System here so that the developers can decide 51 which one to use 52 53 @rtype: integer 54 @return: the rank as integer between 0 and 255 55 """5658 """ Return wether this provider is able to fill in metadata, when it 59 gets this metadata dictionary. 60 61 @param metadata: a dictionary containing all known and requested 62 metadata 63 @type metadata: dict 64 @rtype: bool 65 """6668 """ Retrieve the metadata for this metadata request and put it in 69 there. 70 71 @todo: determine all the keys returned for each content-type. 72 73 @param metadata: a dictionary containing all the known and 74 requested metadata, which is also filled with the 75 new data 76 @type metadata: dict 77 @rtype: L{twisted.internet.defer.Deferred} 78 """
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Wed Jan 16 19:10:54 2008 | http://epydoc.sourceforge.net |