Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing "File:" prefix for uploads to Commons #63

Open
Daniel-Mietchen opened this issue Feb 19, 2017 · 6 comments
Open

Fix missing "File:" prefix for uploads to Commons #63

Daniel-Mietchen opened this issue Feb 19, 2017 · 6 comments

Comments

@Daniel-Mietchen
Copy link
Member

This causes the files to be treated as pages, which show up above the media files in
https://commons.wikimedia.org/wiki/Category:Uploaded_with_reCitation_Bot .

Like the probably related #62, this needs immediate fixing, since such uploads are not acceptable on Commons, which prevents further testing of the bot on Wikisource.

@Daniel-Mietchen
Copy link
Member Author

Daniel-Mietchen commented Feb 19, 2017

@difranco
Copy link
Collaborator

difranco commented Feb 19, 2017 via email

@Daniel-Mietchen
Copy link
Member Author

That makes sense if one of the DOIs you ran today was a re-run of that July one.

The point is that with "File:" is correct, without is not, and we should only upload the version with the prefix.

@difranco
Copy link
Collaborator

I think I know what's going on now. Seems the mwclient API treats the page associated with an image file differently from pywikibot. Previously a page object needed to be created and associated with the file upload. I can move the metadata from there into the file upload itself and stop creating a separate page.

@Daniel-Mietchen
Copy link
Member Author

Blocks #66.

@Daniel-Mietchen
Copy link
Member Author

That commit looks good to me in terms of addressing at least #63 but also likely #62.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants