This commit is contained in:
Tim Bentley 2012-09-10 19:55:23 +01:00
commit d8f8a9adc4
2 changed files with 25 additions and 30 deletions

View File

@ -365,7 +365,7 @@ class Renderer(object):
The theme information The theme information
""" """
if not theme_data.font_main_override: if not theme_data.font_main_override:
return QtCore.QRect(10, 0, self.width, self.footer_start) return QtCore.QRect(10, 0, self.width - 20, self.footer_start)
else: else:
return QtCore.QRect(theme_data.font_main_x, theme_data.font_main_y, return QtCore.QRect(theme_data.font_main_x, theme_data.font_main_y,
theme_data.font_main_width - 1, theme_data.font_main_height - 1) theme_data.font_main_width - 1, theme_data.font_main_height - 1)

View File

@ -63,37 +63,32 @@ if VLC_AVAILABLE:
VLC_AVAILABLE = False VLC_AVAILABLE = False
log.debug(u'VLC could not be loaded: %s' % version) log.debug(u'VLC could not be loaded: %s' % version)
AUDIO_EXT = [ AUDIO_EXT = [u'*.mp3', u'*.wav', u'*.wma', u'*.ogg']
u'*.mp3'
, u'*.wav'
, u'*.wma'
, u'*.ogg'
]
VIDEO_EXT = [ VIDEO_EXT = [
u'*.3gp' u'*.3gp',
, u'*.asf', u'*.wmv' u'*.asf', u'*.wmv',
, u'*.au' u'*.au',
, u'*.avi' u'*.avi',
, u'*.flv' u'*.flv',
, u'*.mov' u'*.mov',
, u'*.mp4' u'*.mp4',
, u'*.ogm' u'*.ogm', u'*.ogv',
, u'*.mkv', u'*.mka' u'*.mkv', u'*.mka',
, u'*.ts', u'*.mpg' u'*.ts', u'*.mpg',
, u'*.mpg', u'*.mp2' u'*.mpg', u'*.mp2',
, u'*.nsc' u'*.nsc',
, u'*.nsv' u'*.nsv',
, u'*.nut' u'*.nut',
, u'*.ra', u'*.ram', u'*.rm', u'*.rv' ,u'*.rmbv' u'*.ra', u'*.ram', u'*.rm', u'*.rv' ,u'*.rmbv',
, u'*.a52', u'*.dts', u'*.aac', u'*.flac' ,u'*.dv', u'*.vid' u'*.a52', u'*.dts', u'*.aac', u'*.flac' ,u'*.dv', u'*.vid',
, u'*.tta', u'*.tac' u'*.tta', u'*.tac',
, u'*.ty' u'*.ty',
, u'*.dts' u'*.dts',
, u'*.xa' u'*.xa',
, u'*.iso' u'*.iso',
, u'*.vob' u'*.vob'
] ]
class VlcPlayer(MediaPlayer): class VlcPlayer(MediaPlayer):