NAME

patternList


DESCRIPTION

a module to keep record of files having a numbering, e.g. episodes patternList a module to keep record of files having a numbering, e.g. episodes of some series


AUTHOR

  Bruno Böttcher <bboett at adlp dot org>


COPYRIGHT and LICENCE

 Copyright (c) 2002 Bruno Boettcher
 patternList.pm is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; version 2
 of the License.
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

global stuff

Some global stuff is defined here


Methods of this class

init
set up the main datastructures of this object, make it ready for the run

new
constructor for the new xchat handler object

match2pattern
compare the incoming filename to the pattern list, and return the pattern on success, the modus tells us if we are in dirscan modus or file transfer success modus, in the latter case we remove or update the pattern info

load
loading all the relevant stuff

loadWishes
loading the wishes database

loadSeries
load a file first col is the series pattern, rest are maxto fetch, min-fetched, and allready fetched numbers, if max is set to 0 fetching is unlimited, beware no spaces in the pattern!

save
Save the list of series and the whishlist!

needs the settings:

settings->{``seriesFile''}; default: $ENV{HOME}/.leve/leve.series settings->{``whishesFile''}; default: $ENV{HOME}/.leve/leve.wishes

delwish
delete pattern no

seriesAdvance
check series boundaries and adjust them if needed

patternrevision
switch patter active chars to perlish and non greedy patterns

series
list/add series

alias
list/add alias first argument the alias second the name of the series we want to alias

request
issue the actual request banner on the ad-channels

delseries
delete the series given as parameter, cut and paste from the series listing

addepisode
in case you fetched an episode by other means, adjust the filter of the script to drop fetching of that particular episode(s)``,

delepisode
in case a fetched episode reveals itself as somehow inappropriated, adjust the filter of the script to restart fetching of that particular episode(s)``,

seriesRescedule
check series boundaries and adjust them if needed

modseries
set the importance you give to a given series, mostly determinant for the request banner generation``,

listwishes
list the wishes

print
local print method that will seeing the availability launch a POE event or print out manually

rawnames
generate a list of all patterns from the series and the wishlist

getSerie
getter for the series hash, since we have plain entries and aliasies, lets have one place were we handle this difference

delSerie
deleting one series means deleting the real record and all associated aliases

set
list or modify settings


THANKS

I. Wronsky came up with this infernal concept and kludged the first 1.x of leverlada versions together. This gave B. Boettcher the incentive to begin this work, the famous itching paradigm!


SEE ALSO

http://www.geocities.com/iwronsky/ http://poe.perl.org/