Código: Seleccionar todo
updater.py
28: DESTINATION_FOLDER = xbmc.translatePath( "special://home/plugins/video")
*resources\lib
downloadtools.py (3 matches)
342: downloadpath = xbmc.translatePath( "special://home/downloads")
380: downloadpath = xbmc.translatePath( "special://home/downloads/list")
*servers
cinshare.py
18: COOKIEFILE = xbmc.translatePath( "special://home/plugins/video/pelisalacarta/cookies.lwp" )
divxden.py
17: COOKIEFILE = xbmc.translatePath( "special://home/plugins/video/pelisalacarta/cookies.lwp" )
divxlink.py
17: COOKIEFILE = xbmc.translatePath( "special://home/plugins/video/pelisalacarta/cookies.lwp" )
gigabyteupload.py
17: COOKIEFILE = xbmc.translatePath( "special://home/plugins/video/pelisalacarta/cookies.lwp" )
megavideo.py
20: #COOKIEFILE = xbmc.translatePath( "special://home/plugins/video/pelisalacarta/cookies.lwp" )
metadivx.py
17: COOKIEFILE = xbmc.translatePath( "special://home/plugins/video/pelisalacarta/cookies.lwp" )
movshare.py
14: COOKIEFILE = xbmc.translatePath( "special://home/plugins/video/pelisalacarta/cookies.lwp" )
vreel.py
15: COOKIEFILE = xbmc.translatePath( "special://home/plugins/video/pelisalacarta/cookies.lwp" )
zshare.py
17: COOKIEFILE = xbmc.translatePath( "special://home/plugins/video/pelisalacarta/cookies.lwp" )
El update supongo que desaparecerá por lo que imagino que no es problema.
También estoy borrando las carpetas que se supone que sobran: Library, Bookmarks??
LA LINEA QUE ESTOY SIGUIENDO PARA REPARA ES ESTA:
He crado una constante DATA_PATH en config.py que contendrá el directorio adecuado para guardar datos ya sea una versión pre o post Dharma...
Código: Seleccionar todo
if DHARMA:
DATA_PATH = xbmc.translatePath("special://profile/addon_data/%s" % getPluginId())
else:
DATA_PATH = os.getcwd()
Código: Seleccionar todo
f = open(os.getcwd()+'/films.tab', 'w') # fichero para obtener las notas
Código: Seleccionar todo
filename = os.path.join (config.DATA_PATH, "films.tab")
f = open (filename, 'w')
Finalmente todos los usos de getcwd sospechosos (sin revisar, habrá usos legítimos)...
Código: Seleccionar todo
plugin.video.pelisalacarta
channels
anotador.py (2 matches)
23: f = open(os.getcwd()+"/channels/notas.tab","r")
24: # f = open(os.getcwd()+"/fa.tab","r")
casttv.py (17 matches)
2.439: VISTO_PATH = xbmc.translatePath( os.path.join( os.getcwd(), 'bookmarks/vistos' ) )
2.474: VISTO_PATH = xbmc.translatePath( os.path.join( os.getcwd(), 'bookmarks/vistos' ) )
2.517: VISTO_PATH = xbmc.translatePath( os.path.join( os.getcwd(), 'bookmarks/vistos' ) )
2.557: VISTO_PATH = xbmc.translatePath( os.path.join( os.getcwd(), 'bookmarks/vistos' ) )
2.788: copy2(fullfilename,xbmc.translatePath( os.path.join( os.getcwd(), 'resources', 'lib', 'subtitulo.srt' )))
cineadicto.py
450: fullpath = os.path.join( os.getcwd(), 'resources', 'lib', 'subtitulo.srt' )
descargacineclasico.py
79: f = open(os.getcwd()+'/films.tab', 'w') # fichero para obtener las notas
divxonline.py
370: f = open(os.getcwd()+'/films.tab', 'w') # fichero para obtener las notas
mocosoftx.py
22: BASE_PLUGIN_THUMBNAIL_PATH = os.path.join( os.getcwd(), "thumbnails","videos" )
newdivx.py
486: fullpath = os.path.join( os.getcwd(), 'resources', 'lib', 'subtitulo.srt' )
nolomires.py
512: fullpath = os.path.join( os.getcwd(), 'resources', 'lib', 'subtitulo.srt' )
pelisflv.py
446: fullpath = os.path.join( os.getcwd(), 'resources', 'lib', 'subtitulo.srt' )
resources
lib
favoritos.py
34: BOOKMARK_PATH = xbmc.translatePath( os.path.join( os.getcwd(), 'bookmarks' ) )
scrapertools.py
137: ficherocookies = os.path.join( os.getcwd(), 'cookies.lwp' )
xbmctools.py (2 matches)
337: xbmc.Player().setSubtitles(xbmc.translatePath( os.path.join( os.getcwd(), 'resources', 'lib', 'subtitulo.srt' ) ) )
servers
megaupload.py
21: COOKIEFILE = os.path.join( os.getcwd(), 'cookies.lwp' )
megavideo.py
23: #COOKIEFILE = os.path.join( os.getcwd(), 'cookies.lwp' )
updater.py (3 matches) (A BORRAR, NO IMPORTANTE)
20: ROOT_DIR = os.getcwd()
112: xbmc.output("[updater.py] cwd="+os.getcwd())