Ejemplo n.º 1
0
 def refresh_movielist(self): 
     print "SUPERCAAAAAATS"
     self.unprocessedcount = 0
     self.moviesdb = []
     for dir in [d.strip() for d in tools.config.get("general","Directories").split(",")]:
         if dir: mymovies.scandirectory(self, dir)
     self.moviesdb.sort(key=itemgetter("SortTitle"))
Ejemplo n.º 2
0
 def refresh_movielist(self):
     print "SUPERCAAAAAATS"
     self.unprocessedcount = 0
     self.moviesdb = []
     for dir in [
             d.strip()
             for d in tools.config.get("general", "Directories").split(",")
     ]:
         if dir: mymovies.scandirectory(self, dir)
     self.moviesdb.sort(key=itemgetter("SortTitle"))
Ejemplo n.º 3
0
 def __init__(self):
     print id
     self.unprocessedcount = 0
     self.moviesdb = []
     
     tools.config = ConfigParser.ConfigParser()
     tools.config.optionxform = str
     cfgfile = open("main.conf")
     tools.config.readfp(cfgfile)
     
     for dir in [d.strip() for d in tools.config.get("general","Directories").split(",")]:
         if dir: mymovies.scandirectory(self, dir)
     self.moviesdb.sort(key=itemgetter("SortTitle"))
Ejemplo n.º 4
0
    def __init__(self):
        print id
        self.unprocessedcount = 0
        self.moviesdb = []

        tools.config = ConfigParser.ConfigParser()
        tools.config.optionxform = str
        cfgfile = open("main.conf")
        tools.config.readfp(cfgfile)

        for dir in [
                d.strip()
                for d in tools.config.get("general", "Directories").split(",")
        ]:
            if dir: mymovies.scandirectory(self, dir)
        self.moviesdb.sort(key=itemgetter("SortTitle"))