2009-02-07, 23:10
youtube plugin in the xbmc-addons svn.
ask any questions here
ask any questions here
22:53:41 T:3066890032 M:275951616 INFO: initializing python engine.
22:53:41 T:3066890032 M:275951616 DEBUG: Loading: /usr/share/xbmc/system/python/python24-i486-linux.so
22:53:42 T:3066890032 M:275759104 DEBUG: new python thread created. id=2
22:53:42 T:2845805456 M:275759104 DEBUG: Running thread 2845805456
22:53:42 T:2845805456 M:275759104 DEBUG: thread start, auto delete: 0
22:53:42 T:2845805456 M:275759104 DEBUG: Python thread: start processing
22:53:42 T:3066890032 M:275689472 DEBUG: WaitOnScriptResult - waiting on the Youtube plugin...
22:53:42 T:2845805456 M:275689472 NOTICE: -->Python Interpreter Initialized<--
22:53:42 T:2845805456 M:275689472 NOTICE:
22:53:42 T:2845805456 M:275689472 NOTICE: Traceback (most recent call last):
22:53:42 T:2845805456 M:275689472 NOTICE: File "/home/eee/.xbmc/plugins/video/Youtube/default.py", line 33, in ?
22:53:42 T:2845805456 M:275689472 NOTICE:
22:53:42 T:2845805456 M:275689472 NOTICE: plugin.Main()
22:53:42 T:2845805456 M:275689472 NOTICE: File "/home/eee/.xbmc/plugins/video/Youtube/YoutubeAPI/xbmcplugin_categories.py", line 26, in __init__
22:53:42 T:2845805456 M:275689472 NOTICE:
22:53:42 T:2845805456 M:275689472 NOTICE: self.make_presets_folders()
22:53:42 T:2845805456 M:275619840 NOTICE: File "/home/eee/.xbmc/plugins/video/Youtube/YoutubeAPI/xbmcplugin_categories.py", line 38, in make_presets_folders
22:53:42 T:2845805456 M:275619840 NOTICE:
22:53:42 T:2845805456 M:275619840 NOTICE: os.makedirs( xbmc.translatePath( self.BASE_PRESETS_PATH ) )
22:53:42 T:2845805456 M:275619840 NOTICE: File "/usr/share/xbmc/system/python/python24.zip/os.py", line 159, in makedirs
22:53:42 T:2845805456 M:275619840 NOTICE:
22:53:42 T:2845805456 M:275619840 NOTICE: mkdir(name, mode)
22:53:42 T:2845805456 M:275619840 NOTICE: OSError
22:53:42 T:2845805456 M:275619840 NOTICE: :
22:53:42 T:2845805456 M:275619840 NOTICE: [Errno 2] No such file or directory: 'special://profile/plugin_data/video/Youtube'
22:53:42 T:2845805456 M:275619840 NOTICE:
22:53:42 T:2845805456 M:275619840 ERROR: Scriptresult: Error
22:53:43 T:2845805456 M:275554304 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/time.so. flags: 2
22:53:43 T:2845805456 M:275415040 DEBUG: Loading: /tmp/xbmc-eee/time.so
22:53:43 T:2845805456 M:275415040 DEBUG: RegisterExtensionLib, adding Z:/time.so (0xac00a0c8)
22:53:43 T:2845805456 M:275415040 DEBUG: xbp_dlsym - load symbol inittime
22:53:43 T:2845805456 M:275496960 DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/collections.so. flags: 2
22:53:43 T:2845805456 M:275496960 DEBUG: Loading: /tmp/xbmc-eee/collections.so
22:53:43 T:2845805456 M:275496960 DEBUG: RegisterExtensionLib, adding Z:/collections.so (0xb06e2310)
22:53:43 T:2845805456 M:275496960 DEBUG: xbp_dlsym - load symbol initcollections
22:53:43 T:2845805456 M:275496960 INFO: Python script stopped
"""
Category module: list of categories to use as folders
"""
# main imports
import sys
import os
import xbmc
import xbmcgui
import xbmcplugin
PLATFORM_MAC = os.environ.get( "OS", "" ).lower() == "os x"
class _Info:
def __init__( self, *args, **kwargs ):
self.__dict__.update( kwargs )
class Main:
# base paths
BASE_SKIN_THUMBNAIL_PATH = "/".join( [ "special://xbmc", "skin", xbmc.getSkinDir(), "media", sys.modules[ "__main__" ].__plugin__ ] )
if PLATFORM_MAC or not os.path.isdir( BASE_SKIN_THUMBNAIL_PATH ): BASE_SKIN_THUMBNAIL_PATH = "/".join( [ "Q:\\", "skin", xbmc.getSkinDir(), "media", sys.modules[ "__main__" ].__plugin__ ] )
BASE_PLUGIN_THUMBNAIL_PATH = os.path.join( os.getcwd(), "thumbnails" )
BASE_PRESETS_PATH = "/".join( [ "special://profile", "plugin_data", "video", os.path.basename( os.getcwd().replace( ";", "" ) ) ] )
if PLATFORM_MAC or not os.path.isdir( BASE_PRESETS_PATH ): BASE_PRESETS_PATH = "/".join( [ "P:\\", "plugin_data", "video", os.path.basename( os.getcwd().replace( ";", "" ) ) ] )
def __init__( self ):
Quote:
[Youtube]
-changed: version -> 1.2
-added: login with cookie. needed for those adult videos. why the api authentication isn't enough is beyond me.
Quote:
[Youtube]
-changed: version -> 1.1
-changed: english language strings
-added: authentication
-changed: save presets in users settings.xml file
-changed: use xbmc.skinHasImage() check for category icons. (They need to be in skinname/media/Youtube/, named identical to the method name with a .png ext. eg "recently_featured.png")