Fix progress bar line feed and remove pbar option

This commit is contained in:
taizan-hokuto
2020-09-09 22:19:10 +09:00
parent a338f2b782
commit f16c0ee73a
4 changed files with 18 additions and 76 deletions

View File

@@ -19,7 +19,7 @@ class Arguments(metaclass=Singleton):
OUTPUT: str = 'output_dir'
VIDEO_IDS: str = 'video_id'
SAVE_ERROR_DATA: bool = 'save_error_data'
PBAR: bool ='pbar'
PBAR: bool = 'pbar'
def __init__(self,
arguments: Optional[Dict[str, Union[str, bool, int]]] = None):
@@ -37,7 +37,7 @@ class Arguments(metaclass=Singleton):
self.output: str = arguments[Arguments.Name.OUTPUT]
self.video_ids: List[int] = []
self.save_error_data: bool = arguments[Arguments.Name.SAVE_ERROR_DATA]
self.pbar: bool = arguments[Arguments.Name.PBAR]
# Videos
if arguments[Arguments.Name.VIDEO_IDS]:
self.video_ids = [video_id