From f9e05bc58add155d78663c800094c64983f15695 Mon Sep 17 00:00:00 2001 From: gn64_jp Date: Sun, 16 May 2010 12:44:30 +0000 Subject: [PATCH] implement seriesnum determinant system. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@604 4e526526-5e11-4fc0-8910-f8fd03428081 --- rec10/trunk/src/classify.py | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/rec10/trunk/src/classify.py b/rec10/trunk/src/classify.py index 01b428c..bc9b3d7 100644 --- a/rec10/trunk/src/classify.py +++ b/rec10/trunk/src/classify.py @@ -111,6 +111,27 @@ if __name__ == "__main__": sa=auto_move.search_file(recpath, tsmovepath,".ts") else: recdblist.printutf8(u"ts_movepathが設定されていません。/etc/rec10.confを設定してください。") - elif opts.seriespath!="":##-Sの場合 + elif opts.seriespath!="":##-Sの場合##与えられたパスにシリーズがそろっているかを調べる。 ss=guess.detSeriesNum(opts.seriespath) - print ss + for sstitle, ssv in ss: + if len(ssv)>0: + maxt=0 + bt=0 + alr=[] + for ssi,ssiv in ssv: + alr.append(ssi) + if maxt0: + recdblist.printutf8(sstitle+" "+str(maxt)) + else: + recdblist.printutf8(u"**"+sstitle+" |"+str(maxt)+"| "+nuke) + + -- 2.11.0