from threading import Thread
from time import time
import urlparse
import httplib
import urllib
import utils
import sys
import os
import re



Log.out( "PLUGIN::LOADED -> '%s'" % __name__)


if (Plugin.get_platform() == utils.WINDOWS or 
    Plugin.get_platform() == utils.XBOX):
    Log.out('PLUGIN::IMPORT -> "cPickle" module')
    import cPickle as pickle
else: 
    Log.out('PLUGIN::IMPORT -> "pickle" module')
    import pickle  
    

NONE = 0; READ = 1; WRITE = 2; BINARY = 'b'; ASCII = ''



def file_exist(file):
    if os.path.isfile(file): return True
        
示例#2
0
from urllib import urlencode, splithost, quote, unquote, quote_plus, unquote_plus
from urllib2 import urlopen, Request, URLError
from urlparse import urlparse
from threading import Thread
from time import time
import urlparse
import httplib
import urllib
import utils
import sys
import os
import re

Log.out("PLUGIN::LOADED -> '%s'" % __name__)

if (Plugin.get_platform() == utils.WINDOWS
        or Plugin.get_platform() == utils.XBOX):
    Log.out('PLUGIN::IMPORT -> "cPickle" module')
    import cPickle as pickle
else:
    Log.out('PLUGIN::IMPORT -> "pickle" module')
    import pickle

NONE = 0
READ = 1
WRITE = 2
BINARY = 'b'
ASCII = ''


def file_exist(file):