Exemplo n.º 1
0
    def increase_play_count(self, movie: MovieType) -> None:
        """

        :param movie:
        :return:
        """
        PlayStatistics.increase_play_count(movie)
    def get_next_movie(self):
        # type: () -> MovieType
        """

        :return:
        """
        clz = PlayableTrailersContainer
        movie = self._ready_to_play_queue.get(block=False)
        if movie is not None:
            PlayStatistics.increase_play_count(movie)
            if clz.logger.isEnabledFor(LazyLogger.DEBUG_VERBOSE):
                clz.logger.exit('movie:', movie[Movie.TITLE])
        else:
            if clz.logger.isEnabledFor(LazyLogger.DEBUG_VERBOSE):
                clz.logger.exit('No movie in queue')
        return movie