When the first instance is created, the item's identifier (without date suffix) doesn't exist yet, so --append_date doesn't work. Once the first file is uploaded and the item exists, --append_date causes the remaining files to be added to the identifier with date suffix.
Therefore, if wikidump is being uploaded to IA for the first time and --append_date is used, it will cause the files to be accidentally uploaded to two different items.
Every time a file start to upload (
for dump in dumps
), a newitem
instance is created.https://github.com/mediawiki-client-tools/mediawiki-scraper/blob/934161b6f9f987250ef656f66abeb35c97c203e2/wikiteam3/uploader.py#L110-L113
When the first instance is created, the item's identifier (without date suffix) doesn't exist yet, so
--append_date
doesn't work. Once the first file is uploaded and the item exists,--append_date
causes the remaining files to be added to the identifier with date suffix.Therefore, if wikidump is being uploaded to IA for the first time and
--append_date
is used, it will cause the files to be accidentally uploaded to two different items.Example:
history.xml.7z
--> https://archive.org/details/wiki-ff6hackingcom_ff5wiki-20230417wikidump.7z
--> https://archive.org/details/wiki-ff6hackingcom_ff5wiki134
https://github.com/WikiTeam/wikiteam/pull/424
@simonliu99