本文整理匯總了Python中movie.Movie.getSubtitleErrorList方法的典型用法代碼示例。如果您正苦於以下問題:Python Movie.getSubtitleErrorList方法的具體用法?Python Movie.getSubtitleErrorList怎麽用?Python Movie.getSubtitleErrorList使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類movie.Movie
的用法示例。
在下文中一共展示了Movie.getSubtitleErrorList方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _processListRequest
# 需要導入模塊: from movie import Movie [as 別名]
# 或者: from movie.Movie import getSubtitleErrorList [as 別名]
def _processListRequest(self):
""" Process a list Request. """
log.level = -1
listItems = []
for dirName in sorted(os.listdir(self.baseDir)):
if (os.path.isdir(dirName)):
dirPath = "%s/%s" % (self.baseDir, dirName)
movie = Movie(dirPath)
if (self.list == 'novideo'): listItems += movie.getNoVideoList()
elif (self.list == 'badnfo'): listItems += movie.getBadNfoList()
elif (self.list == 'nonfo'): listItems += movie.getMissingNfoList()
elif (self.list == 'hassub'): listItems += movie.getHasSubtitleList()
elif (self.list == 'nosub'): listItems += movie.getNoSubtitleList()
elif (self.list == 'suberr'): listItems += movie.getSubtitleErrorList()
# Print the Result
if (listItems) and (self.print0):
sys.stdout.write("\0".join(listItems))
elif (listItems):
print "\n".join(listItems)