Commons:Bots/Requests/YouTubeBot

YouTubeBot (talk · contribs)


Operator: DaxServer (talk · contributions · Statistics · Recent activity · block log · User rights log · uploads · Global account information)

Bot's tasks for which permission is being sought: Adding SDC to YouTube sourced media Commons:Bots/Work requests/Archive 18#Add P1651 YouTube video ID structured data from "source" attribute of Filedesc template

Automatic or manually assisted: Automated

Edit type (e.g. Continuous, daily, one time run): Continuous

Maximum edit rate (e.g. edits per minute): 6

Bot flag requested: (Y/N): Y

Programming language(s): Python / pywikibot / https://github.com/DaxServer/wikibots

-- DaxServer (talk) 13:14, 6 April 2025 (UTC)

Discussion
  • I've also added the attribution to the Copyright license statement - the author name string and the title of the video. I'm using Lingua language detector model https://github.com/pemistahl/lingua-py and seems to give good results, but might need some supervised runs for the language detection and probably some tweaks. In case more testing is required for it, I can omit that qualifier and add the remaining. See test run for the changes. -- DaxServer (talk) 13:14, 6 April 2025 (UTC) (Update: Retracting the license attribution for now. 08:22, 11 April 2025 (UTC))
@DaxServer, would it be possible to add in license review finctionality to the bot? The old user:LicenseReviewerBot youtube code should still work, and automaded youtube review is desperately needed, the backlog is over 70k files. All the Best -- Chuck Talk 22:19, 6 April 2025 (UTC)
@Alachuckthebuck I tried to find the source code for that bot but wasn't able to. It could be that it needs to be recreated. Perhaps I'll reach out to @Don-vip for some pointers as he maintains Commons:Video2commons.
Either way, I'd put that into another task and not this one, as I'd need some time to get the info and get it working. -- DaxServer (talk) 10:42, 7 April 2025 (UTC)
Sorry, I know neither this bot nor its author. But I see on their talk page that @Mdaniels5757 asked 1 year ago to adopt it. vip (talk) 18:41, 7 April 2025 (UTC)
@DaxServer, If you were willing to run the new youtube LR bot, that would be amazing.
Courtesy ping of AntiCompositeNumber, who maintains FlickrReviewer2, and might have some insight into getting the source code for that bot. All the Best -- Chuck Talk 20:38, 7 April 2025 (UTC)
@Alachuckthebuck Thanks for the intro. I think I have the code for the Flickr reviewer bot, but it seems it works only on images.
One idea could be: Commons:Video2commons tool could send an API request to the YouTube LR bot, after the upload from its end is done, so that the bot can mark it license-passed as the Video2commons only accepts compatible licenses. It's probably a good idea to discuss this elsewhere before we brainstorm and get too far in this page ;) -- DaxServer (talk) 20:58, 7 April 2025 (UTC)
Looks to be in the eatchabot tool, in the lr directory, but there is no obvious license. It's likely unsalvageable and should be re-implemented without reference to the previous code, unless Mdaniels5757 has any more information. AntiCompositeNumber (talk) 21:02, 7 April 2025 (UTC)
@AntiCompositeNumber It may also be in the `vrb` tool, which I adopted but haven't done anything with. That code contains reference to YouTube. But unfortunately that tool also has no obvious license or documentation. As such, it's likely not worth reusing. :( —Mdaniels5757 (talk  contribs) 03:49, 8 April 2025 (UTC)
FYI: Further discussion about license review is on my talk page -- DaxServer (talk) 18:36, 9 April 2025 (UTC)
Please be careful with license review; YouTube allows users to change the license on videos although Creative Commons licenses are legally not revocable. If the bot can't check archive pages (there are multiple like https://web.archive.org, http://archive.today, https://megalodon.jp) it should not tag files for speedy deletion for not finding the license.  REAL 💬   23:31, 10 April 2025 (UTC)
@999real Thanks for the info. I'll work on the review later as part of a different task. This task would be limited to SDC -- DaxServer (talk) 08:20, 11 April 2025 (UTC)

Approved. --Krd 07:50, 21 April 2025 (UTC)