Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

mlbtv.py

By: a guest on Mar 14th, 2011  |  syntax: Diff  |  size: 3.50 KB  |  views: 102  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Binary files nexdef2010//MLBviewer/config.pyc and mlbtesting//MLBviewer/config.pyc differ
  2. Binary files nexdef2010//MLBviewer/__init__.pyc and mlbtesting//MLBviewer/__init__.pyc differ
  3. Binary files nexdef2010//MLBviewer/LIRC.pyc and mlbtesting//MLBviewer/LIRC.pyc differ
  4. Binary files nexdef2010//MLBviewer/mlbprocess.pyc and mlbtesting//MLBviewer/mlbprocess.pyc differ
  5. diff -crB nexdef2010//MLBviewer/mlbtv.py mlbtesting//MLBviewer/mlbtv.py
  6. *** nexdef2010//MLBviewer/mlbtv.py      2011-03-14 16:27:04.000000000 -0500
  7. --- mlbtesting//MLBviewer/mlbtv.py      2011-03-14 22:33:46.000000000 -0500
  8. ***************
  9. *** 41,47 ****
  10.   #DEBUG = None
  11.   #from __init__ import AUTHDIR
  12.  
  13. ! DEFAULT_F_RECORD = 'rtmpdump -f \"LNX 10,0,22,87\" -o %f -r %s'
  14.  
  15.   AUTHDIR = '.mlb'
  16.   COOKIEFILE = os.path.join(os.environ['HOME'], AUTHDIR, 'cookie')
  17. --- 41,47 ----
  18.   #DEBUG = None
  19.   #from __init__ import AUTHDIR
  20.  
  21. ! DEFAULT_F_RECORD = 'echo %s > /mnt/media/Baseball/mlbtv.strm'
  22.  
  23.   AUTHDIR = '.mlb'
  24.   COOKIEFILE = os.path.join(os.environ['HOME'], AUTHDIR, 'cookie')
  25. ***************
  26. *** 1594,1615 ****
  27.           rec_cmd_str = rec_cmd_str.replace('%f', '-')
  28.           rec_cmd_str = rec_cmd_str.replace('%s', '"' + streamurl + '"')
  29.           if self.play_path is not None:
  30. !             rec_cmd_str += ' -y "' + str(self.play_path) + '"'
  31.           if self.app is not None:
  32. !             rec_cmd_str += ' -a "' + str(self.app) + '"'
  33.           if self.use_soap:
  34. !             rec_cmd_str += ' -s http://mlb.mlb.com/flash/mediaplayer/v4/RC91/MediaPlayer4.swf?v=4'
  35.           if self.tc_url is not None:
  36. !             rec_cmd_str += ' -t "' + self.tc_url + '"'
  37.           if self.sub_path is not None:
  38. !             rec_cmd_str += ' -d ' + str(self.sub_path) + ' -v'
  39.           if self.rtmp_host is not None:
  40.               rec_cmd_str += ' -n ' + str(self.rtmp_host)
  41.           if self.rtmp_port is not None:
  42.               rec_cmd_str += ' -c ' + str(self.rtmp_port)
  43.           if self.start_time is not None and self.streamtype != 'audio':
  44.               if self.use_nexdef == False:
  45. !                 rec_cmd_str += ' -A ' + str(self.start_time)
  46.           self.log.write("\nDEBUG>> rec_cmd_str" + '\n' + rec_cmd_str + '\n\n')
  47.           return rec_cmd_str
  48.          
  49. --- 1594,1615 ----
  50.           rec_cmd_str = rec_cmd_str.replace('%f', '-')
  51.           rec_cmd_str = rec_cmd_str.replace('%s', '"' + streamurl + '"')
  52.           if self.play_path is not None:
  53. !             rec_cmd_str += ' playpath="' + str(self.play_path) + '"'
  54.           if self.app is not None:
  55. !             rec_cmd_str += ' app="' + str(self.app) + '"'
  56.           if self.use_soap:
  57. !             rec_cmd_str += ' swfurl=http://mlb.mlb.com/flash/mediaplayer/v4/RC91/MediaPlayer4.swf?v=4'
  58.           if self.tc_url is not None:
  59. !             rec_cmd_str += ' tcurl="' + self.tc_url + '"'
  60.           if self.sub_path is not None:
  61. !             rec_cmd_str += ' subscribe=' + str(self.sub_path) + ' live=1'
  62.           if self.rtmp_host is not None:
  63.               rec_cmd_str += ' -n ' + str(self.rtmp_host)
  64.           if self.rtmp_port is not None:
  65.               rec_cmd_str += ' -c ' + str(self.rtmp_port)
  66.           if self.start_time is not None and self.streamtype != 'audio':
  67.               if self.use_nexdef == False:
  68. !                 rec_cmd_str += ' start=' + str(self.start_time)
  69.           self.log.write("\nDEBUG>> rec_cmd_str" + '\n' + rec_cmd_str + '\n\n')
  70.           return rec_cmd_str
  71.          
  72. Binary files nexdef2010//MLBviewer/mlbtv.pyc and mlbtesting//MLBviewer/mlbtv.pyc differ