예제 #1
0
 def downloadMovieInfo(self, name, filename=None):
     try:
         from EventInformationTable import createEIT
         print "[AdvancedMovieSelection] RecordTimerEvent, loading info from tmdb:", name
         createEIT(filename, name)
     except:
         printStackTrace()
예제 #2
0
 def downloadMovieInfo(self, name, filename=None):
     try:
         from EventInformationTable import createEIT
         print "[AdvancedMovieSelection] RecordTimerEvent, loading info from tmdb:", name
         createEIT(filename, name)
     except:
         printStackTrace()
예제 #3
0
 def downloadMovieInfo(self, name, filename=None):
     import tmdb
     from EventInformationTable import createEIT
     results = tmdb.search(name)
     if results and len(results) > 0:
         searchResult = results[0]
         movie = tmdb.getMovieInfo(searchResult['id'])
         createEIT(filename, name, config.AdvancedMovieSelection.coversize.value, movie)
    def downloadMovieInfo(self, name, filename=None):
        import tmdb
        from EventInformationTable import createEIT

        results = tmdb.search(name)
        if results and len(results) > 0:
            searchResult = results[0]
            movie = tmdb.getMovieInfo(searchResult["id"])
            createEIT(filename, name, config.AdvancedMovieSelection.coversize.value, movie)
예제 #5
0
 def downloadMovieInfo(self, name, filename=None):
     from MovieDB import tmdb
     from EventInformationTable import createEIT
     print "[AdvancedMovieSelection] RecordTimerEvent, loading info from tmdb:", name
     results = tmdb.search(name)
     if results and len(results) > 0:
         searchResult = results[0]
         movie = tmdb.getMovieInfo(searchResult['id'])
         createEIT(filename, name, config.AdvancedMovieSelection.coversize.value, movie)
 def run(self):
     self.cancel = False
     global current, total, movie_title
     total = len(self.items)
     current = 0
     for item_list in self.items:
         if self.cancel:
             #print "Movie download canceled"
             self.finish()
             return
         service = item_list[0]
         if service.flags & eServiceReference.mustDescent:
             total = total - 1
             continue
         current = current + 1 
         movie_title = ServiceCenter.getInstance().info(service).getName(service).encode("utf-8").split(" - ")[0].strip()
         createEIT(service.getPath(), movie_title, self.coversize)
     
     self.finish()
 def titleSelected(self):
     global movie_title
     current = self["list"].l.getCurrentSelection()
     if self.service is not None and current:
         createEIT(self.service.getPath(), movie_title, self.coversize, movie=current[1])
     self.__hide()