[10:20:08] hi zhuyifei [10:20:18] how are you doing? [10:20:20] hi [10:20:28] fine [10:20:39] I was super sleepy that day [10:20:50] oh ok np [10:21:02] good to hear that you are fine:) [10:22:24] last time we talked we were discussing something regarding v2c notification support [10:22:34] But I had to go midway for dinner. [10:22:38] yeah? [10:23:11] what do you mean by notification? [10:23:55] task status [10:24:28] I don't think uploading videos would be that slow to require notifications [10:24:42] if you mean something like sending emails [10:25:11] https://github.com/toollabs/video2commons/pull/86 [10:25:46] oh you mean v2c [10:25:48] k [10:26:08] yeah :) [10:26:28] I thought I will try it out. [10:26:35] feel free to [10:26:41] but I have one query. [10:26:54] Suppose I gave one youtube URL to v2c [10:27:03] and that video is not free [10:27:24] does v2c prevent me from uploading? [10:27:24] it won't refuse it [10:27:27] no [10:27:40] yeah that happened to me [10:27:45] https://commons.wikimedia.org/wiki/User_talk:Zhuyifei1999/Archive_27#video2commons [10:28:05] and that video got removed by some bot. [10:28:14] hmm which? [10:28:29] only my bot does automated deletions [10:28:37] and that sould not affect v2c uploads [10:29:12] https://commons.wikimedia.org/wiki/User_talk:Infobliss#File:Sonam_Wangchuk_at_IIT_Delhi_-_Human_Values_and_Technology.webm [10:29:28] (change visibility) 17:03, 23 May 2017 Daphne Lantier (talk | contribs | block) deleted page File:Sonam Wangchuk at IIT Delhi - Human Values and Technology.webm (Copyright violation, see Commons:Licensing) (view/restore) (global usage; delinker log) [10:29:46] he's not a bot [10:30:12] ok [10:31:01] then did he manually find this video? [10:31:18] he probably checked latest uploads [10:31:35] how to check that? [10:31:49] https://commons.wikimedia.org/wiki/Special:RecentChanges [10:32:38] ok [10:33:16] That's why I am scarry that my account might be blocked due to vandalism. [10:33:34] ping me and I'l unblock [10:33:39] or basvb [10:33:47] we are both admin [10:34:16] :) [10:35:56] I believe mediawiki does not allow uploading an image to Commons if it has the same name as an already existing image in Commons. So this is ensured that one won't be able to re-upload an image using our tool since our tool will generate the same filename every time a given UID is provided. But if someone had already uploaded the concerned image with a different name than what our tool assigns it, then how can we prevent our [10:36:34] mediawiki also checks sha1 duplicates [10:37:31] so image to sha1 is a one-to-one function? [10:37:47] no, many to one [10:38:13] but the collisions is extremely unlikely [10:38:20] *are [10:38:38] https://en.wikipedia.org/wiki/SHA-1 [10:39:08] ok great [10:41:36] suppose an image has finename "name1.jpg". So it will have URL https://commons.wikimedia.org/wiki/File:name1.jpg [10:41:52] yeah the filepage [10:42:03] and someone uses our tool to upload the same image [10:42:21] now our tool will say image exists [10:42:54] but how can I find the URL of the existing image to display to the end user? [10:43:31] it should be given in the upload warning [10:43:47] if not you can still generate with the-url-to-be-uploaded [10:45:31] can I find the URL where this image exists? [10:45:42] to warn the user [10:46:11] can you clarify? [10:46:20] yeah [10:46:48] so say a user wants to upload an image. [10:46:58] but the image is already in commons. [10:47:07] by sha1 or filename? [10:47:27] How can I get the commons URL, i.e., filepage of the image? [10:47:44] 'https://commons.wikimedia.org/wiki/File:' + filename [10:48:14] filename is not known to me [10:48:27] suppose user gives http://proxy.handle.net/10648/ac3bec6e-d0b4-102d-bcf8-003048976d84 [10:49:14] this image has some filename in commons. How to know that filename? [10:49:41] dup by sha1? [10:50:24] yes [10:50:30] a sec [10:50:48] there may be an api for this [10:54:07] https://commons.wikimedia.org/wiki/Special:ApiSandbox#action=query&format=json&generator=allimages&gaisha1=cbaea08dfe6936da5311a4b9c036989e02fb9fc2 [10:54:28] the api query you can work with [10:54:53] this is reverse-searching from sha1 to filename [10:55:58] ok thanks :) [10:56:52] np