@@ -184,7 +184,6 @@ def _finalize_torrentfile(self):
184184 path_dir , path_base = os .path .split (self ['path' ])
185185 if up_dir and not os .path .samefile (up_dir , path_dir ):
186186 target = os .path .join (up_dir , path_base )
187- print (target , os .path .exists (target ))
188187 if not os .path .exists (target ):
189188 self .data_method (self ['path' ], target )
190189 else :
@@ -874,7 +873,7 @@ class AudioSubmission(BbSubmission):
874873 def subcategory (self ):
875874 release , rg = self ['release' ]
876875
877- if 'Audiobook' in rg [ 'secondary-type-list' ] :
876+ if 'Audiobook' in rg . get ( 'secondary-type-list' , []) :
878877 return AudiobookSubmission
879878 return MusicSubmission
880879
@@ -967,11 +966,7 @@ def _render_tags(self):
967966 # if type(tags) == mutagen.mp3.MP3:
968967 # tags = mutagen.mp3.MP3(self['mediainfo_path'], ID3=EasyID3)
969968
970- print ('tagsdir' , dir (tags .info ))
971- try :
972- print ('encoder' , tags .info .encoder_settings )
973- except AttributeError :
974- pass
969+ log .debug ('tagsdir' , dir (tags .info ))
975970 log .debug ('type tags' , type (tags ))
976971 log .debug ('tags' , tags .pprint ())
977972
0 commit comments