Skip to content

Instantly share code, notes, and snippets.

@5p0ng3b0b
5p0ng3b0b / autoexec.py
Last active April 4, 2024 05:17
Kodi startup script to enable all addons.
import xbmc, xbmcvfs, xbmcaddon, xbmcgui,re, os, glob, thread
from datetime import datetime
try: from sqlite3 import dbapi2 as database
except: from pysqlite2 import dbapi2 as database
def main():
class enableAll():
def __init__(self):
self.databasepath = xbmc.translatePath('special://database/')
self.addons = xbmc.translatePath('special://home/addons/')
@strycore
strycore / vdf_parser.py
Created June 8, 2013 15:18
Parser for Steam VDF files
import os
import json
def vdf_parse(steam_config_file, config):
line = " "
while line:
line = steam_config_file.readline()
if not line or line.strip() == "}":
return config