User:AnomieBOT/source/tasks/ReplaceExternalLinks.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: ReplaceExternalLinks: * Completed.
AnomieBOT (talk | contribs)
Updating published sources: SourceUploader: * Sort directory pages by last modified date. * Use <nowiki><syntaxhighlight></nowiki> instead of <nowiki><source></nowiki>. d::NoWiki: * Add support for <nowiki><syntaxhighlight></nowiki>. General: * Vario
 
(5 intermediate revisions by the same user not shown)
Line 1:
{{ombox|type=content|style=border:1px solid #b22222|image=[[Image:Ambox warning pn.svg|40px]]|text= Due to breaking changes in AnomieBOT::API, this task will probably not run anymore. If you really must run it, try getting a version from before 2009-03-23.}}
{{ombox|type=notice|text= Approved 2008-11-11, completed 2008-11-12<br />[[Wikipedia:Bots/Requests for approval/AnomieBOT 9]]}}
<sourcesyntaxhighlight lang="perl">
package tasks::ReplaceExternalLinks;
 
=pod
 
=for warning
Due to breaking changes in AnomieBOT::API, this task will probably not run
anymore. If you really must run it, try getting a version from before
2009-03-23.
 
=begin metadata
 
Bot: AnomieBOT
Task: ReplaceExternalLinks
BRFA: Wikipedia:Bots/Requests for approval/AnomieBOT 9
Status: Completed 2008-11-12
Rate: Max 6 edits/minute
Created: 2008-11-08
 
Replace links to the domains w*.allmusic.com with just "allmusic.com", as those other domains no longer function.
Line 119 ⟶ 126:
 
# Ok, check the page
my $tok=$api->edittoken($title, EditRedir => 1);
if($tok->{'code'} eq 'shutoff'){
$self->warn("Task disabled: ".$tok->{'content'}."\n");
Line 180 ⟶ 187:
1;
 
</syntaxhighlight>
</source>