ezn #3

Merged
E.zn merged 9 commits from ezn into master 4 years ago

@ -1,14 +1,15 @@
#!/bin/sh
python3 upload_imgs_dir.py \
acastro commented 4 years ago
Review

Add meaninful example metada values here.
Otherwise the rest of you will get confused with this 'No', 'e', 'd'

Add meaninful example metada values here. Otherwise the rest of you will get confused with this 'No', 'e', 'd'
--title 'Ang Bayan December 1984' \
--creator 'Central Committee of the Communist Party of the Philippines' \
--date '1984/12/01' \
--org 'Communist Party of the Philippines' \
--format 'Bulletin' \
--topic 'Communism, Armed Struggle' \
--dir '/full/path/to/2020_bantayog/Folder name' \
# --dry
--title 'Nassa News: Vol. 21 No. 7' \
--creator 'The National Secretariat of Social Action Justice and Peace' \
--date '1984/07/01' \
--org 'Nationalist Alliance for Justice, Freedom and Democracy (NAJFD)' \
--format 'Statement' \
--event 'The ARTEX Strike' \
--topic 'Workers rights' \
--language 'English' \
--dir '/full/path/to/2020_bantayog/Folder name' # --dry
# Note:
# * Add this values to you upload specific upload.
@ -19,3 +20,6 @@ python3 upload_imgs_dir.py \
# Get help: python3 upload_imgs_dir.py --help

@ -8,5 +8,6 @@
|Format={{ format }}
|Event={{ event }}
|Topic={{ topic }}
|Language={{ language }}
{{ '}}' }}
[[Template:ImageMetadata]]
[[Template:ImageMetadata]]

@ -36,6 +36,8 @@ p.add_argument('--event', required=False, action='append', default=[''],
help='Multiple values should be SEPARATED BY COMMA')
p.add_argument('--topic', required=False, action='append', default=[''],
help='Multiple values should be SEPARATED BY COMMA')
p.add_argument('--language', required=False, action='append', default=[''],
help='Multiple values should be SEPARATED BY COMMA')
# TODO ADD NEW PROPS
args = p.parse_args()
@ -89,7 +91,8 @@ for n, _file in enumerate(lsimgs):
organization=(', ').join(args.org[1:]),
format=(', ').join(args.format[1:]),
event=(', ').join(args.event[1:]),
topic=(', ').join(args.topic[1:])
topic=(', ').join(args.topic[1:]),
language=(', ').join(args.language[1:])
)
_file_path = os.path.join(args.dir, _file)

Loading…
Cancel
Save