public getFileInfo(config settings, int dayOffset)
 {
     string currentURL = (settings.getUrl()).Replace("$DATE", returnDate(dayOffset, settings.getDateFormat()));
     pageSource = getPageSource(currentURL);
     fileUrl = "http://" + findElement(pageSource, settings.getFileExtension(), "http://") + settings.getFileExtension();
     title = (findElement(pageSource, settings.getTitleEnd(), settings.getTitleStart())).Trim();
     episodeNumber = findElement(fileUrl, settings.getFileExtension(), "_");
     fullTitle = "Episode " + episodeNumber + ": " + title;
     newFileName = episodeNumber + "#-" + title.Replace(" ", "_")+settings.getFileExtension();
 }
        public fileIndex(config settings)
        {
            fullPath = settings.getFullPathToFiles();
            indexFileName = settings.getIndexFileName();
            fileExtension = settings.getFileExtension();

            checkForIndexFile();
        }