(self)
return self.file[-1] != '/'
Check if filename is correct
Check if filename is correct
Check if filename is correct
def is_valid(self):
        """
        Check if filename is correct
        """
        # not youtube video '521689/' (http://www.kinopoisk.ru/film/521689/video/)
        return self.file[-1] != '/'
def is_valid ( self ) : # not youtube video '521689/' (http://www.kinopoisk.ru/film/521689/video/) return self . file [ - 1 ] != '/'