Changeset 2113
- Timestamp:
- 2006-02-27 23:46:33 (3 years ago)
- Files:
-
- annoamp/trunk/annoamp.py (modified) (2 diffs)
- annoamp/trunk/anxplayer.py (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
annoamp/trunk/annoamp.py
r1864 r2113 157 157 else: 158 158 tree_selection.select_path(playlist.get_path(playlist.iter_nth_child(playlist.iter_nth_child(None,current),chapter))) 159 desc = player.chapter_info_list[current][chapter].props.desc 159 desc = player.chapter_info_list[current][chapter].props.description 160 160 if desc != None: 161 xml.get_widget("description").set_text(player.chapter_info_list[current][chapter].props.desc )161 xml.get_widget("description").set_text(player.chapter_info_list[current][chapter].props.description) 162 162 else: 163 163 xml.get_widget("description").set_text("No Description") … … 167 167 else: 168 168 xml.get_widget("link").set_label('No Link.') 169 img_src = player.chapter_info_list[current][chapter].props.img_ src169 img_src = player.chapter_info_list[current][chapter].props.img_uri 170 170 if img_src != None: 171 171 try: annoamp/trunk/anxplayer.py
r1864 r2113 1 1 #!/usr/bin/env python 2 #Copyright (C) 2005 Scott Shawcroft3 # Jason Kivlighn2 #Copyright (C) 2005-2006 Scott Shawcroft 3 # Jason Kivlighn 4 4 # 5 5 #This program is free software; you can redistribute it and/or … … 98 98 99 99 def bus_call (self, bus, message): 100 #self.debug(str(message.type) + "=>" + str(message))100 self.debug(str(message.type) + "=>" + str(message)) 101 101 if message.type == gst.MESSAGE_TAG: 102 102 self.debug("Tag!") … … 158 158 if message.type == gst.MESSAGE_EOS: 159 159 #song is over 160 self.debug("We've come to the end of a file.") 160 161 self.chapter_info_list[self.file_to_index_map[filename]] = chapter_info 161 162 self.add_file_callback(filename, playlist_info) … … 176 177 pass 177 178 elif type(tag).__name__ == '__main__.GstCmmlTagClip': 178 #FIXME remove 1000000s gst.SECOND should be enough.179 179 playlist_str = format_time(int(tag.props.start_time/gst.SECOND)) 180 if tag.props.desc != None:181 playlist_str += " - " + tag.props.desc 180 if tag.props.description != None: 181 playlist_str += " - " + tag.props.description 182 182 else: 183 183 playlist_str += " - " + tag.props.id … … 193 193 result = fake.set_state(gst.STATE_PLAYING) 194 194 else: 195 self.chapter_info_list.append([]) 195 196 self.add_file_callback(filename, []) 196 197 return