[00:21:03] I think the solution is to package your video and audio inside PDFs [12:32:59] hello! Is there a way to bypass the cache of a generated PDF so I can download the last version of the article? [12:37:48] Clear cache inside your browser? (re @Galder: hello! Is there a way to bypass the cache of a generated PDF so I can download the last version of the article?) [12:39:28] no, the PDF cache is not in my browser, it seems to reside somewhere in Wikimedia side. [12:41:32] Is it about Wikisource (re @Galder: hello! Is there a way to bypass the cache of a generated PDF so I can download the last version of the article?) [12:41:55] no, Wikipedia articles. [12:45:27] `action=purge`? (re @Galder: no, Wikipedia articles.) [12:52:01] no, the PDF still is stored, as it is rendered elsewhere. I think it will take some time [13:08:36] Purge deletes the thumbnails too but there is a bug that sometimes it doesn't purge the cdn [13:39:11] Can you link or screenshot where you get this PDF? [13:39:12] I think we're confusing this with something else. You're talking about Wikipedia article text saved as a PDF, right? Not PDF files on Commons. (re @Galder: hello! Is there a way to bypass the cache of a generated PDF so I can download the last version of the article?) [13:43:33] yes, Wikipedia articles printed as PDFs with the Special:DownloadAsPdf page. [14:35:40] SPAM!!! [14:36:09] (Someone else who speaks Chinese can underpin this statement) (re @cvictorovich: SPAM!!!) [14:38:34] @Bennylin look here. You might know what it is (re @Y9iBprtVJ: ) [15:14:47] Technically it is because videos dont return thumb images. They return html blobs (with a separately generated poster embedded in them). [15:14:47] Audio does (its legacy, but you might remember they used to show a file logo with a speaker image) (re @lucaswerkmeister: answer: nope, don’t do that, for video files the thumbattribs are an empty array. 🤷 https://commons.wikimedia.org/w/api.php?acti...) [15:16:17] Our support for anything but an image is sort badly defined at the mediahandler level. Its all kinda stuck in 2010 [15:16:29] but… there is a `thumburl` with a `thumbwidth and `thumbheight` (I guess that’s the poster you mentioned) [15:22:15] I mean i can add it, never realized it was not there. [15:25:10] Still wont get you the video output of course. [15:25:11] Thats not really available other than directly from the parser [15:43:07] yeah, of course, I just want something to display in a list of files [15:43:13] I was gonna file a phab task later for it [15:52:11] ``` [15:52:12] "thumbattribs": { [15:52:14] "src": "/wiki/images/thumb/d/d0/Big_Buck_Bunny_with_VTT_acid_test_local.webm/250px--Big_Buck_Bunny_with_VTT_acid_test_local.webm.jpg", [15:52:15] "decoding": "async", [15:52:17] "loading": "lazy", [15:52:18] "width": 250, [15:52:20] "height": 141, [15:52:21] "srcset": "/wiki/images/thumb/d/d0/Big_Buck_Bunny_with_VTT_acid_test_local.webm/330px--Big_Buck_Bunny_with_VTT_acid_test_local.webm.jpg 2x" [15:52:23] }``` [15:52:24] Like that ? [18:24:22] Do we have a way in wikitext to display only an image from a video file? I thought it's either a page link or a video embed. Is there syntax for embedding just the image? [18:37:51] There is not, but i imagine Lucas is simply generating a list of File’s with an image in an external tool ? (re @Krinkle25: Do we have a way in wikitext to display only an image from a video file? I thought it's either a page link or a video embed. Is ...) [18:38:50] here's the tool (re @lucaswerkmeister: anyway, the use case is https://pagepile-visual-filter.toolforge.org/) [18:41:34] Understood. I'm explaining why the API might not handle that well, as the purpose is ambiguous and it's mainly just plumbing/offering what a wiki page can do. [18:41:35] Consider looking at what Special:Search, MediaSearch, and Special:ListFiles do, which are similar I suppose. (re @djhartman: There is not, but i imagine Lucas is simply generating a list of File’s with an image in an external tool ?) [20:33:24] T439175 (FYI @djhartman) (re @lucaswerkmeister: I was gonna file a phab task later for it)