Paul Webster wrote: > Something like this might work (untested - I don't use the YouTube > plugin) - in that same file (ProtocolHandler.pm) > > The line > > Code: -------------------- > > > my $value = "YES+cb." . gmtime->ymd('') . "-00-p0.en+FX" . ($id || int(rand(900)) + 100); > -------------------- > > > might work as > > Code: -------------------- > > > my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday) = gmtime(); > if ( $year < 1900){ > $year += 1900; # add offset to get this year as 4 digit ... some routines return as offset from 1900 > } > # Month starts from 0 > my $value = "YES+cb." . $year . '-' . sprintf("%02d",$mon+1) . '-' . sprintf("%02d",$mday) . "-00-p0.en+FX" . ($id || int(rand(900)) + 100); > -------------------- > > > > Edit: > couple of small changes since first posted
Wow, that worked a treat - thanks Paul. May be Philippe might consider the change for a future release - hopefully he'll read this in due course. Thanks once a again. ------------------------------------------------------------------------ CloudAtlas's Profile: http://forums.slimdevices.com/member.php?userid=65221 View this thread: http://forums.slimdevices.com/showthread.php?t=105840 _______________________________________________ plugins mailing list plugins@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/plugins