Author: duncan
Date: Fri Dec  1 21:31:44 2006
New Revision: 8687

Modified:
   branches/rel-1/freevo/src/video/fxdhandler.py

Log:
Small tidy up


Modified: branches/rel-1/freevo/src/video/fxdhandler.py
==============================================================================
--- branches/rel-1/freevo/src/video/fxdhandler.py       (original)
+++ branches/rel-1/freevo/src/video/fxdhandler.py       Fri Dec  1 21:31:44 2006
@@ -65,10 +65,7 @@
         id         = fxd.getattr(node, 'id')
         options    = fxd.getattr(node, 'mplayer-options')
         player     = fxd.childcontent(node, 'player')
-        playlist   = False
-
-        if fxd.get_children(node, 'playlist'):
-            playlist = True
+        playlist   = fxd.get_children(node, 'playlist') and True or False
 
         if mode == 'file':
             if not media_id:
@@ -129,7 +126,7 @@
                 if is_playlist:
                     v.is_playlist  = True
 
-                audio    = fxd.get_children(parts[0], 'audio')
+                audio = fxd.get_children(parts[0], 'audio')
                 if audio:
                     audio = { 'media_id': fxd.getattr(audio[0], 'media-id'),
                               'file'    : fxd.gettext(audio[0]) }
@@ -137,7 +134,7 @@
                         audio['file'] = os.path.join(dirname, audio['file'])
                 else:
                     audio = {}
-                v.audio_file    = audio
+                v.audio_file = audio
 
                 subtitle = fxd.get_children(parts[0], 'subtitle')
                 if subtitle:
@@ -250,9 +247,6 @@
     fxd.getattr(None, 'items', []).append(item)
 
 
-
-
-
 def parse_disc_set(fxd, node):
     """
     Callback for VideoItem <disc-set>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to