Merge branch 'ezn' of XPUB/special-issue-11-wiki2html into master

pull/5/head
E.zn 5 years ago committed by Gitea
commit 084fb640ac

@ -1,14 +1,15 @@
#!/bin/sh #!/bin/sh
python3 upload_imgs_dir.py \ python3 upload_imgs_dir.py \
--title 'Ang Bayan December 1984' \ --title 'Nassa News: Vol. 21 No. 7' \
--creator 'Central Committee of the Communist Party of the Philippines' \ --creator 'The National Secretariat of Social Action Justice and Peace' \
--date '1984/12/01' \ --date '1984/07/01' \
--org 'Communist Party of the Philippines' \ --org 'Nationalist Alliance for Justice, Freedom and Democracy (NAJFD)' \
--format 'Bulletin' \ --format 'Statement' \
--topic 'Communism, Armed Struggle' \ --event 'The ARTEX Strike' \
--dir '/full/path/to/2020_bantayog/Folder name' \ --topic 'Workers rights' \
# --dry --language 'English' \
--dir '/full/path/to/2020_bantayog/Folder name' # --dry
# Note: # Note:
# * Add this values to you upload specific upload. # * 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 # Get help: python3 upload_imgs_dir.py --help

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

Loading…
Cancel
Save