Remind you I am using Service URL to process the video URLs...
When when calling PlayVideo from:
parts.append(PartObject(key=Callback(PlayVideo, url=VideoStream_URL*)))
obj = [MediaObject(
parts = parts,
I get the following Error message in plug-in log:
2013-05-07 13:24:52,400 (764) : CRITICAL (core:561) - Exception when calling function 'PlayVideo' (most recent call last):
File "C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py", line 294, in call_named_function
result = f(*args, **kwargs)
File "C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py", line 82, in __call__
return self._f(*args, **kwargs)
File "C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\MOVIE2K.bundle\Contents\Services\URL\MOVIE2K\ServiceCode.pys", line 211, in PlayVideo
objects = [VideoClipObject(items = [PartObject(key = video_url)])]
File "C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\objects.py", line 215, in __init__
Container.__init__(self, **kwargs)
File "C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\objects.py", line 128, in __init__
self.add(obj)
File "C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\objects.py", line 162, in add
raise Framework.exceptions.FrameworkException("Object of type '%s' cannot be added to this container." % str(type(obj)))
FrameworkException: Object of type '' cannot be added to this container.
2013-05-07 13:24:52,414 (764) : CRITICAL (core:561) - Exception (most recent call last):
File “C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py”, line 837, in handle_request
result = f(**d)
File “C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\handlers\services.py”, line 150, in call_service_function
result = self._core.services._call_named_function_in_service(f_name, service, f_args, f_kwargs)
File “C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\services.py”, line 588, in _call_named_function_in_service
return self._call_named_function_in_sandbox(service.sandbox, fname, None, f_args, f_kwargs, allow_deferred, raise_exceptions, f_optional)
File “C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\services.py”, line 572, in _call_named_function_in_sandbox
result = sandbox.call_named_function(fname, allow_deferred=allow_deferred, raise_exceptions=raise_exceptions, args=f_args, kwargs=f_kwargs, mod_name=mod_name, optional_kwargs=f_optional)
File “C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\code\sandbox.py”, line 294, in call_named_function
result = f(*args, **kwargs)
File “C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\components\runtime.py”, line 82, in call
return self._f(*args, **kwargs)
File “C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\MOVIE2K.bundle\Contents\Services\URL\MOVIE2K\ServiceCode.pys”, line 211, in PlayVideo
objects = [VideoClipObject(items = [PartObject(key = video_url)])]
File “C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\objects.py”, line 215, in init
Container.init(self, **kwargs)
File “C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\objects.py”, line 128, in init
self.add(obj)
File “C:\Documents and Settings\Administrator\Local Settings\Application Data\Plex Media Server\Plug-ins\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\modelling\objects.py”, line 162, in add
raise Framework.exceptions.FrameworkException(“Object of type ‘%s’ cannot be added to this container.” % str(type(obj)))
FrameworkException: Object of type ‘<class ‘Framework.modelling.objects.PartObject’>’ cannot be added to this container.
UPDATE: I kind of understand what I should do now looking more at the Apple Trailers that Castle Keeper provided. Where I am at in the ObjectContainer is the items = [MediaObject(
parts = parts, ect....] which is the MediaObject Part of the URL Service. Being this far down in the cycle how do I append the current ObjectContainer with the values of http_headers and http_cookies?
Also, trying to use: return IndirectReponse(VideoClipObject, key=url)
I get a Log error of: NameError: global name 'IndirectReponse' is not defined
Any ideas? Thanks agin for the info in Headers, Cookies and Useragent!