2009-04-18, 23:35
Feature request: Subtitles as an optional setting on the plugin settings?
atrac Wrote:I just finished watching last weeks "The Celebrity Apprentice" and decided to run the XBMC Update Checker. I noticed that there was a v1.2 so decided to update it. I went back in and can't seem to find Celebrity Apprentice any more. It should now be found under NBC.
Should I go back to v.01 that I was using for now (with the mod to allow Sci-Fi to load)? I know BlueCop you said there are some issues on the way NBC lists things so I don't mind going back to the older version as everything was working ok under it (and I'm totally addicted to Celebrity Apprentice).
I don't mean to criticize, just curious and don't want to lose anything.
BlueCop Wrote:i don't think it is currently possible to assign a subtitle file in python. i would love to add support for this since NBC does have xml subtitles i could easily convert to srt.
i submitted a feature request about 4 monthes back to assign a subtitle file for streaming media.
http://xbmc.org/ticket/5569
at the time i had hulu in mind and wrote some code to convert their sami subtitles to srt and store it locally to assign for the stream. anyway hulu is gone but the feature request is still there and hopefully a dev will help us out.
as something temporary i guess i could download and convert the subtitles and then let you manually set the subtitles using the OSD. i will look into this
# plugin constants
__plugin__ = "YouTube"
__author__ = "nuka1195"
__url__ = "http://code.google.com/p/xbmc-addons/"
__svn_url__ = "http://xbmc-addons.googlecode.com/svn/trunk/plugins/video/YouTube"
__version__ = "1.6.4a"
__XBMC_Revision__ = "19457"
def _check_compatible():
try:
# spam plugin statistics to log
xbmc.log( "[PLUGIN] '%s: version %s' initialized!" % ( __plugin__, __version__, ), xbmc.LOGNOTICE )
# get xbmc revision
xbmc_version = xbmc.getInfoLabel( "System.BuildVersion" )
xbmc_rev = 0
xbmc_rev = int( xbmc_version.split( " " )[ 1 ].replace( "r", "" ) )
# compatible?
ok = xbmc_rev >= int( __XBMC_Revision__ )
except:
# error, so make incompatible
ok = True
# spam revision info
xbmc.log( " ** Required XBMC Revision: r%s **" % ( __XBMC_Revision__, ), xbmc.LOGNOTICE )
xbmc.log( " ** Found XBMC Revision: r%d [%s] **" % ( xbmc_rev, ( "Not Compatible", "Compatible", )[ ok ], ), xbmc.LOGNOTICE )
# if not compatible, inform user
if ( not ok ):
import xbmcgui
xbmcgui.Dialog().ok( "%s - %s: %s" % ( __plugin__, xbmc.getLocalizedString( 30700 ), __version__, ), xbmc.getLocalizedString( 30701 ) % ( __plugin__, ), xbmc.getLocalizedString( 30702 ) % ( __XBMC_Revision__, ), xbmc.getLocalizedString( 30703 ) )
#return result
return ok