Description: Fix failures when yahoo has switched to the "new site"
Author: Don Armstrong <don@donarmstrong.com>
Forwarded: yes
Index: fetchyahoo/fetchyahoo
===================================================================
--- fetchyahoo.orig/fetchyahoo	2012-01-14 08:50:02.000000000 -0800
+++ fetchyahoo/fetchyahoo	2012-01-14 08:52:50.000000000 -0800
@@ -1116,6 +1116,13 @@
               exit;
             }
     }
+    elsif ($mainPage =~ /href="(optOut\?rs=1&ncrumb=[^&]+&once=true)"/) {
+	my $newsuf = $1;
+	$baseurl =~ s/([^\/])\/[^\/]*$/$1\/$newsuf/;
+	$foldernum--;
+	$yahooVersion = 1;
+	goto getDiffFolder;
+    }
 
     if (!$noerrors && !$retryCount) { # only show error on last try
       print $mainPage . "\n\n",
