Hi all,
I am Manimaran(https://manimaran96.WordPress.com), Free Software Activist and Android Developer. I developing the app called Spell4Wiki.
*Spell4Wiki - Spell For Wiki*
Spell4Wiki is an mobile application to record and upload audio to wiki commons for Wiktionary words.Spell4Wiki also act as dictionary. Words meanings are come from Wiktionary.
*Useful Links*
Source code : https://github.com/manimaran96/Spell4Wiki
APK : https://github.com/manimaran96/Spell4Wiki/releases/download/devapp_v5/spell4...
Workflow : https://manimaran96.files.wordpress.com/2020/02/spell4wiki_workflow-1.png
Blog :
https://manimaran96.wordpress.com/2019/01/06/spell4wiki-mobile-app-to-record... https://manimaran96.wordpress.com/2020/02/21/spell4wiki-mobile-app-to-record-upload-audio-to-wiki-commons-for-wiktionary-words-part-2/
https://manimaran96.wordpress.com/2020/02/21/spell4wiki-mobile-app-to-record...
While developing I struggled in some places(listed below). If anyone have idea about this please help me...
*Problems*
1. While uploading audio some times I got a message “Invalid CSRF”. 2. Once successfully uploaded audio not reflected to UN-Audio words API https://ta.wiktionary.org/w/api.php?action=query&format=json&list=categorymembers&utf8=1&cmtitle=%E0%AE%AA%E0%AE%95%E0%AF%81%E0%AE%AA%E0%AF%8D%E0%AE%AA%E0%AF%81:%E0%AE%A4%E0%AE%AE%E0%AE%BF%E0%AE%B4%E0%AF%8D-%E0%AE%92%E0%AE%B2%E0%AE%BF%E0%AE%95%E0%AF%8D%E0%AE%95%E0%AF%8B%E0%AE%AA%E0%AF%8D%E0%AE%AA%E0%AF%81%E0%AE%95%E0%AE%B3%E0%AE%BF%E0%AE%B2%E0%AF%8D%E0%AE%B2%E0%AF%88&cmlimit=50&cmsort=timestamp&cmdir=desc and Word’s Wiktionary page.
Problem : 1Reason I found
1. I think this comes may be session time out or expire or wrong CSRF token. 2. Once app close session expired
What I tried
1. I am saving first CSRF token after login. Then after every edit request use same CSRF token -> Not worked. 2. Every time getting new CSRF token for every edit request -> Not worked. 3. I managed the cookies using android-lib https://github.com/franmontiel/PersistentCookieJar -> Not worked.
Questions
1. How to solve this? 2. Possible to extend login expire time? 3. Which header/cookie is important for every edit request?
Problem : 2
Reason I found
1. I think Wikipedia refresh the UN-Audio word list and Wiktionary word page after specific period of time.
What I tried
1. Once user uploaded audio of particular word. Then that word stored in local DB and not showing next time to user -> Not suit for global use. 2. After audio upload edit(Just append text “” empty) the particular word’s page in Wiktionary 1. This time updated in Wiktionary page suddenly but Un-Audio API some times only reflected. 2. Sometime IP blocked due to this type of empty edit.
Questions
1. How to solve this? 2. Empty append text in edit action is good or bad? 3. While uploading audio to commons How to manage conflict works or duplicate works? Because lot of user may contribute same word.
Some General Doubts
1. Client login or OAuth login - Which one is better? 2. In Which license to release uploaded audio file? Public domain or CC by zero or any ? and reason?
I hope i explained my needs clearly. If you have any doubts/questions ask me.
I expect collective answers from who are able to help me, at least convey whatever you know. Which is help to further develop.
Thanks in advance.