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

Image not fetched #26

Open
v0lk3r opened this issue Jan 17, 2013 · 1 comment
Open

Image not fetched #26

v0lk3r opened this issue Jan 17, 2013 · 1 comment
Assignees

Comments

@v0lk3r
Copy link
Contributor

v0lk3r commented Jan 17, 2013

The imageinfo for the image does not contain the title attribute, therefore it is not fetched. (check line 535 in fetch.py)

See snippet: http://en.wikivoyage.org/w/index.php?title=User:Volker.haas&oldid=2097385

In the article http://en.wikivoyage.org/wiki/Cape_Town (where the example was pulled from) another image fails to be fetched

@ghost ghost assigned schmir Jan 17, 2013
@v0lk3r
Copy link
Contributor Author

v0lk3r commented Feb 27, 2013

some more info:

Markup in article:

* [[Image:Flag of Belgium.svg|20px]] <listing name="Belgium" address="4F, Vogue House, Thibault Sq" phone="+27 (0)21 419 4690"></listing>

* [[Image:Flag of China.svg|20px]] <listing name="China" address="972 Pretorius St, Arcadia, Pretoria" phone="+27 12-4316500" email="reception@chinese-embassy.org.za" fax="+27 12-3424244" url="http://www.chinese-embassy.org.za/eng/"></listing>

The last URL is displayed as http://en.wikivoyage.org/wiki/File:Flag_of_the_People%27s_Republic_of_China.svg in the browser.

The API request for the image info fails:

compare:

http://en.wikivoyage.org/w/api.php?action=query&titles=File:Flag_of_Belgium.svg&prop=imageinfo&iiprop=url|user|comment|url|sha1|size (works as expected)

http://en.wikivoyage.org/w/api.php?action=query&titles=File:Flag_of_China.svg&prop=imageinfo&iiprop=url|user|comment|url|sha1|size (fails: imageinfo is missing)

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

No branches or pull requests

2 participants