Skip to content

Commit

Permalink
Fix support for Miro version 3.5 in trunk. This is the version shippi…
Browse files Browse the repository at this point in the history
…ng in Ubuntu 10.10, so versions for .24-fixes and .23-fixes will follow in the next few days.

git-svn-id: http://svn.mythtv.org/svn/trunk@27066 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
Robert McNamara committed Nov 1, 2010
1 parent 91ac033 commit 5236d90
Show file tree
Hide file tree
Showing 2 changed files with 806 additions and 4 deletions.
12 changes: 8 additions & 4 deletions mythtv/contrib/imports/mirobridge/mirobridge.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
Miro v2.0.3 or later must already be installed and configured and capable of downloading videos.
'''

__version__=u"v0.6.4"
__version__=u"v0.6.5"
# 0.1.0 Initial development
# 0.2.0 Initial Alpha release for internal testing only
# 0.2.1 Fixes from initial alpha test
Expand Down Expand Up @@ -188,6 +188,8 @@
# 0.6.2 Trapped possible unicode errors which would hang the MiroBridge process
# 0.6.3 Pull hostname from python bindings instead of socket libraries
# 0.6.4 MythTV python bindings changes
# 0.6.5 Added support for Miro v3.5.x
# Small internal document changes

examples_txt=u'''
For examples, please see the Mirobridge's wiki page at http://www.mythtv.org/wiki/MiroBridge
Expand Down Expand Up @@ -376,9 +378,12 @@ def __getattr__(self, attr):
elif config.get(prefs.APP_VERSION) < u"3.0":
logger.info("Using mirobridge_interpreter_2_5_2")
from mirobridge.mirobridge_interpreter_2_5_2 import MiroInterpreter
else:
elif config.get(prefs.APP_VERSION) < u"3.5":
logger.info("Using mirobridge_interpreter_3_0_0")
from mirobridge.mirobridge_interpreter_3_0_0 import MiroInterpreter
else:
logger.info("Using mirobridge_interpreter_3_5_0")
from mirobridge.mirobridge_interpreter_3_5_0 import MiroInterpreter
except Exception, e:
logger.critical(u"Importing mirobridge functions has failed. The following mirobridge files must be in the subdirectory 'mirobridge'.\n'mirobridge_interpreter_2_0_3.py' and 'mirobridge_interpreter_2_5_2.py', error(%s)" % e)
sys.exit(1)
Expand Down Expand Up @@ -2006,7 +2011,7 @@ def main():
parser = OptionParser(usage=u"%prog usage: mirobridge -huevstdociVHSCWM [parameters]\n")

parser.add_option( "-e", "--examples", action="store_true", default=False, dest="examples",
help=u"Display examples for executing the jamu script")
help=u"Display examples for executing the mirobridge script")
parser.add_option( "-v", "--version", action="store_true", default=False, dest="version",
help=u"Display version and author information")
parser.add_option( "-s", "--simulation", action="store_true", default=False, dest="simulation",
Expand Down Expand Up @@ -2262,7 +2267,6 @@ def main():
else:
app.movie_data_program_info = app.cli_interpreter.movie_data_program_info


#
# Attempt to import an opml file
#
Expand Down
Loading

0 comments on commit 5236d90

Please sign in to comment.