|
From: Chilts <and...@us...> - 2005-05-13 12:59:56
|
Update of /cvsroot/pollpod/pollpod/conf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4322/conf Modified Files: pollpod.ini Added Files: sample.ini Log Message: - added ability for program to first read /etc/pollpod.ini, then ~/.pollpod.ini, then an ability to override with new command line options - added sample.ini file for help and slight changes in pollpod.ini - a lot of re-arrangment to be nicer --- NEW FILE: sample.ini --- # ----------------------------------------------------------------------------- # This first section defines the default values for this installation of # pollpod.pl. These values are read first, then your own configuration file, # then any configuration file you choose to mention on the command line, then # finally, any command line option you require. # See /etc/pollpod.ini for a more compact version. # Note on yes/no options. Usually, the default value is a no, but can be set to # 'yes' if required. The option is turned on only if the value is 'yes' and it # is all lowercase. Anything else (including 'YES', 'y', 'ON', 'True' or # 'DoIt'), will be seen as 'no'. [Options] # This is the main directory where your feeds will be saved. Each feed will be # saved into it's own directory, the name of which is the name before the comma # in each of [Feeds]Feed lines. PodCastSaveDir=~/podcasts # If this option is set to 'yes', then pollpod.pl will attempt to only download # the latest podcast in each feed. In this circumstance, the latest podcast is # the one nearest the top of the file. SaveLatestOnly=no # If this option is set to 'yes', pollpod.pl will run pretty much as it should, # except that just before trying to download each podcast, it will internally # mark each one as done, hence when downloading is attempted, each podcast will # be skipped. TestOnly=no # If this option is set to 'yes', then each podcast that is encountered will be # marked as 'done'. This is achieved by 'touching' a file in the feed's # directory which is the name of the file appended with a '.done'. E.g. for a # file of the name '20050509_AShow.mp3', the file '20050509_AShow.mp3.done' # will be created so that show won't try and be downloaded again. If you # require to download that show in the future, just delete the '*.done' files # you don't equire and re-run pollpod.pl with this option not set to 'yes'. CatchUpAll=no # This option means that pollpod.pl will try and create any directories it # requires, including the PodCastSaveDir, any feed's directory and the DateDir. MakeDirs=no # This option allows you to save the podcasts with a filename taken from the # feed. This will either be the name of the file taken from the last part of # the URL (from the last /), or the title of the podcast taken from the title # element in the enclosure. # Valid values are 'url' or 'title'. # If you are unsure of this, leave it as 'url'. FieldForFilename=url # This option tries to replace both spaces and /'s in any filename with an # underscore. It is usually only useful if you have set the FieldForFilename # option to 'title'. If you don't know anything about this, leave the # FieldForFilename set to 'url' and NormaliseFilenames to 'no' and you should # be fine. NormaliseFilenames=no # Again, this option is usually only useful when you wish to use the # FieldForFilename set to 'title'. You can safely leave this as 'no' if you # have the above set to 'url'. PrecedeFilenamesWithDate=no # If you require create a dated directory containing links to all of the most # recently downloaded podcasts, set this option to 'yes' and be sure to set # DateDir too. MakeDateLinks=no # This directory is the one in which dated directories will be created which # will contain symbolic links to each of the latest podcasts that have been # downloaded. DateDir=~/podcasts/dates # If you require an M3U playlist file of all the latest downloaded podcasts, # set this option to 'yes'. CreateM3UPlayList=no # This specifies the file to save the playlist too if the above option is # 'yes'. M3UPlayListFile=~/podcasts/podcasts.m3u # These final two options are for the curious rather than the normal user. # This says whether to save the RSS XML feed. It is saved into each feed's # directory. It is saved as 'feed.xml'. SaveRssXmlFeeds=no # This says whether to save the RSS XML feed as a dump of the Perl data # structure. The files is saved into each feed's directory. Note: this is # really only for people interested in developing something, learning a bit # about Perl, or just the generally inquisitive person. The file is saved as # 'feed.dmp'. DumpParsedXml=no # ----------------------------------------------------------------------------- # This final section is only an example which you may copy. Obviously, you need # to uncomment the [Feeds] line, then uncomment any feed you like, or add your # own. # [Feeds] # Feed=NASA,http://science.nasa.gov/podcast.xml # Feed=Brainwagon,http://brainwagon.org/feed/ # Feed=InOurTime,http://www.bbc.co.uk/radio4/history/inourtime/mp3/podcast.xml # ----------------------------------------------------------------------------- Index: pollpod.ini =================================================================== RCS file: /cvsroot/pollpod/pollpod/conf/pollpod.ini,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- pollpod.ini 8 May 2005 03:29:56 -0000 1.2 +++ pollpod.ini 13 May 2005 12:59:43 -0000 1.3 @@ -1,18 +1,18 @@ [Options] PodCastSaveDir=~/podcasts -SaveRssXmlFeeds=yes -DumpParsedXml=yes SaveLatestOnly=no TestOnly=no CatchUpAll=no MakeDirs=yes -NormaliseFilenames=yes -PrecedeFilenamesWithDate=no FieldForFilename=url -DateBaseDir=~/podcasts/dates -MakeDateLinks=yes -CreateM3UPlayList=yes +NormaliseFilenames=no +PrecedeFilenamesWithDate=no +MakeDateLinks=no +DateDir=~/podcasts/dates +CreateM3UPlayList=no M3UPlayListFile=~/podcasts/podcasts.m3u +SaveRssXmlFeeds=no +DumpParsedXml=no [Feeds] Feed=FightingTalk,http://www.bbc.co.uk/fivelive/programmes/fightingtalk_podcast.xml |