<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>AUTHORS</filename>
    </added>
    <added>
      <filename>LICENSE</filename>
    </added>
    <added>
      <filename>TODO</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -0,0 +1,10 @@
+# Introduction
+
+The purpose of this library is to wrap up all the communication details 
+of using the Brightcove 3 Media APIs so that the developer using the 
+library can focus on just writing Python.
+
+
+### Links
+
+* [Media API Reference](http://help.brightcove.com/developer/docs/mediaapi/media-API.cfm)</diff>
      <filename>README.md</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,24 @@
+#!/usr/bin/python
+# Copyright (c) 2009 StudioNow, Inc &lt;patrick@studionow.com&gt;
+# 
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the &quot;Software&quot;), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+# 
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+# 
+# THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
 from pybrightcove.connection import Connection
 from pybrightcove.video import Video
 </diff>
      <filename>bin/send_file.py</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,5 @@
 [Connection]
-url = http://api.brightcove.com/services/library
+read_url = http://api.brightcove.com/services/library
+write_url = http://api.brightcove.com/services/post
 read_token = 123
 write_token = 456
\ No newline at end of file</diff>
      <filename>pybrightcove.cfg</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,23 @@
+# Copyright (c) 2009 StudioNow, Inc &lt;patrick@studionow.com&gt;
+# 
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the &quot;Software&quot;), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+# 
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+# 
+# THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
 import sys
 
 from pybrightcove.config import Config</diff>
      <filename>pybrightcove/__init__.py</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,23 @@
+# Copyright (c) 2009 StudioNow, Inc &lt;patrick@studionow.com&gt;
+# 
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the &quot;Software&quot;), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+# 
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+# 
+# THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
 import StringIO, os
 import ConfigParser
 </diff>
      <filename>pybrightcove/config.py</filename>
    </modified>
    <modified>
      <diff>@@ -1,23 +1,34 @@
+# Copyright (c) 2009 StudioNow, Inc &lt;patrick@studionow.com&gt;
+# 
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the &quot;Software&quot;), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+# 
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+# 
+# THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
 import hashlib
 import simplejson
 import urllib2
 import cookielib
 
-from pybrightcove import config, UserAgent
-from pybrightcove.exceptions import BrightcoveClientError, BrightcoveError, BrightcoveGeneralError
+from pybrightcove       import config, UserAgent
 from pybrightcove.video import Video
-from pybrightcove.playlist import Playlist
-
-
     
 
 class Connection(object):
-    def __init__(self, url=None, read_token=None, write_token=None):
-        if url:
-            self.url = url
-        elif config.has_option('Connection', 'url'):
-            self.url = config.get('Connection', 'url')
-        
+    def __init__(self, read_token=None, write_token=None, read_url=None, write_url=None):
         if read_token:
             self.read_token = read_token
         elif config.has_option('Connection', 'read_token'):
@@ -27,30 +38,43 @@ class Connection(object):
             self.write_token = write_token
         elif config.has_option('Connection', 'write_token'):
             self.write_token = config.get('Connection', 'write_token')
+        
+        if read_url:
+            self.read_url = read_url
+        elif config.has_option('Connection', 'read_url'):
+            self.read_url = config.get('Connection', 'read_url')
+        
+        if write_url:
+            self.write_url = write_url
+        elif config.has_option('Connection', 'write_url'):
+            self.write_url = config.get('Connection', 'write_url')
+        
             
     def _post_file(self, data, file_to_upload):
         from pybrightcove.multipart import MultipartPostHandler
         cookies = cookielib.CookieJar()
         opener = urllib2.build_opener(urllib2.HTTPCookieProcessor(cookies), MultipartPostHandler)
         params = { &quot;JSONRPC&quot; : simplejson.dumps(data), &quot;filePath&quot; : open(file_to_upload, &quot;rb&quot;) }
-        r = opener.open(&quot;http://api.brightcove.com/services/post&quot;, params)
+        r = opener.open(self.write_url, params)
         print r.read()
         
 
-    def create_video(self, filename, video=None, do_checksum=True, create_multiple_renditions=True, preserve_source_rendition=True):
-        data = {&quot;method&quot;:&quot;create_video&quot;,
-                &quot;params&quot;: {
-                    &quot;token&quot;: self.write_token, 
-                    &quot;create_multiple_renditions&quot;: create_multiple_renditions,
-                    &quot;preserve_source_rendition&quot;: preserve_source_rendition
-                    }
+    def create_video(self, filename, video, do_checksum=True, create_multiple_renditions=True, preserve_source_rendition=True):
+        data = {
+            &quot;method&quot;:&quot;create_video&quot;,
+            &quot;params&quot;: {
+                &quot;token&quot;: self.write_token, 
+                &quot;create_multiple_renditions&quot;: create_multiple_renditions,
+                &quot;preserve_source_rendition&quot;: preserve_source_rendition,
+                &quot;video&quot;: video.to_dict()
                 }
-        if video:
-            data['params']['video'] = video.to_dict()
+            }
+                
         if do_checksum:
             m = hashlib.md5()
             m.update(open(filename, 'rb').read())
             data['params']['file_checksum'] = m.hexdigest()
+            
         r = self._post_file(data=data, file_to_upload=filename)
         return r
 </diff>
      <filename>pybrightcove/connection.py</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,23 @@
+# Copyright (c) 2009 StudioNow, Inc &lt;patrick@studionow.com&gt;
+# 
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the &quot;Software&quot;), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+# 
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+# 
+# THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
 class BrightcoveClientError(Exception):
     pass
 </diff>
      <filename>pybrightcove/exceptions.py</filename>
    </modified>
    <modified>
      <diff>@@ -1,2 +1,23 @@
+# Copyright (c) 2009 StudioNow, Inc &lt;patrick@studionow.com&gt;
+# 
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the &quot;Software&quot;), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+# 
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+# 
+# THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+
 class Playlist(object):
     pass
\ No newline at end of file</diff>
      <filename>pybrightcove/playlist.py</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,24 @@
+# Copyright (c) 2009 StudioNow, Inc &lt;patrick@studionow.com&gt;
+# 
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the &quot;Software&quot;), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+# 
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+# 
+# THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+
+
 class EconomicsEnum(object):
     FREE = &quot;FREE&quot;
     AD_SUPPORTED = &quot;AD_SUPPORTED&quot;</diff>
      <filename>pybrightcove/video.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>760d1293dadc31735254ba6c177b5f65e56e12d2</id>
    </parent>
  </parents>
  <author>
    <name>Patrick Altman</name>
    <email>patrick@studionow.com</email>
  </author>
  <url>http://github.com/studionow/pybrightcove/commit/835e36435b25be5ebee0e0d41440f735c5bbfc00</url>
  <id>835e36435b25be5ebee0e0d41440f735c5bbfc00</id>
  <committed-date>2009-02-06T09:16:44-08:00</committed-date>
  <authored-date>2009-02-06T09:16:44-08:00</authored-date>
  <message>added license information</message>
  <tree>0edc3ff80d80cd2d8e286d23f7eec6a41523a069</tree>
  <committer>
    <name>Patrick Altman</name>
    <email>patrick@studionow.com</email>
  </committer>
</commit>
