~ubuntu-branches/ubuntu/karmic/coherence/karmic

« back to all changes in this revision

Viewing changes to coherence/backend.py

  • Committer: Bazaar Package Importer
  • Author(s): Charlie Smotherman
  • Date: 2009-05-13 00:34:24 UTC
  • mfrom: (1.1.6 upstream) (3.2.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090513003424-gvdr7y6msehcisoz
Tags: 0.6.4-1
* New upstream release.  Summary of changes.
    - new MediaServer backends that allow access to Picasa Web Albums
    - a TestServer to easily serve and test interaction with, 
        - one or more items and adjust 'upnp_class', 'mimetype'and 'DLNA-flags
        - items that are a GStreamer pipeline or an external program.
    - a new, used in parallel, D-Bus API with an 'org.DLNA' interface with the
      goal to create a common API for all UPnP/DNLA frameworks
    - support for the dlna-playcontainer URI
    - enchancements to the GStreamer MediaRenderer, supporting now
      dlna-playcontainer and SetNextAVTransportURI, and jumping to previous
      and next tracks
    - support for video items served by Ampache
    - base classes for a ScheduledRecording? service
    - some 'compatibility' adjustments for different devices
* Removed MochiKit symbolic link creation from debian/rules.
* Removed dependency on MochiKit in debian/control.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Licensed under the MIT license
4
4
# http://opensource.org/licenses/mit-license.php
5
5
 
6
 
# Copyright 2007, Frank Scholz <coherence@beebits.net>
 
6
# Copyright 2007,, Frank Scholz <coherence@beebits.net>
7
7
 
8
8
from coherence.extern.simple_plugin import Plugin
9
9
 
74
74
    """
75
75
 
76
76
    logCategory = 'backend_store'
77
 
    wmc_mapping = {'4':'4', '5':'5', '6':'6','7':'7','14':'14','F':'F',
78
 
                   '11':'11','16':'16','B':'B','C':'C','D':'D',
79
 
                   '13':'13', '17':'17',
80
 
                   '8':'8', '9':'9', '10':'10', '15':'15', 'A':'A', 'E':'E'}
81
77
 
82
78
    def __init__(self,server,*args,**kwargs):
83
79
        """ the init method for a MediaServer backend,
102
98
            of urlbase + '/' + id to the DIDLLite.Resource
103
99
        """
104
100
        self.urlbase = kwargs.get('urlbase','')
 
101
        if not self.urlbase.endswith('/'):
 
102
            self.urlbase += '/'
 
103
 
 
104
        self.wmc_mapping = {'4':'4', '5':'5', '6':'6','7':'7','14':'14','F':'F',
 
105
                            '11':'11','16':'16','B':'B','C':'C','D':'D',
 
106
                            '13':'13', '17':'17',
 
107
                            '8':'8', '9':'9', '10':'10', '15':'15', 'A':'A', 'E':'E'}
105
108
 
106
109
        self.wmc_mapping.update({'4':lambda: self._get_all_items(0),
107
110
                                 '8':lambda: self._get_all_items(0),