All Classes Files Functions Variables Enumerations Enumerator Macros
writeBlack.cpp
Go to the documentation of this file.
1 #include "options.hpp"
7 
11 // Recreate the blacklist file
12 void ConfigOpts::writeBlackList( string dirOut )
13 {
14  // Create a output file stream object
15  ofstream fout;
16  // Create a char array that can used by the output file stream object
17  const char *dirLoc;
18  // Create a string for the file name and location
19  string fileOut, tmpOut;
20 
21  // Add a slash to filename
22  fileOut = SLASH"blacklist";
23  // Concatenate the directory location and file name
24  tmpOut = dirOut + fileOut;
25  // Convert to char array
26  dirLoc = tmpOut.c_str();
27 
28  cout << "Writing " + tmpOut + "... ";
29 
30  // Open file for writting
31  fout.open( dirLoc );
32  fout << "#" << endl
33  << "# " << tmpOut << endl
34  << "#" << endl
35  << "# Black list file for the clerk" << endl
36  << "#" << endl
37  << "# The following release tags and file data tags will be" << endl
38  << "# removed from the filename." << endl
39  << "#" << endl
40  << "#########################################################" << endl
41  << endl
42  << "(dark_stalker)" << endl
43  << ") xvid-me" << endl
44  << ") xivd-me" << endl
45  << "-asap" << endl
46  << "-xnusense" << endl
47  << "-notyou" << endl
48  << "-kickfoot" << endl
49  << "-immerse" << endl
50  << "-topaz" << endl
51  << "-sorny" << endl
52  << "-reward" << endl
53  << "-etach" << endl
54  << "-ffndvd" << endl
55  << "-fever" << endl
56  << "-carat" << endl
57  << "-caph" << endl
58  << "-p0w4" << endl
59  << "-aaf" << endl
60  << "-ind" << endl
61  << "-dot" << endl
62  << "-dna" << endl
63  << "-sfm" << endl
64  << "-sys" << endl
65  << "-river" << endl
66  << "-lol" << endl
67  << "-fqm" << endl
68  << "-fov" << endl
69  << "-notv" << endl
70  << "-0tv" << endl
71  << "-xor" << endl
72  << "-htv" << endl
73  << "-tcm" << endl
74  << "-2hd" << endl
75  << "2hd" << endl
76  << "fqm" << endl
77  << "fov" << endl
78  << "ws" << endl
79  << "proper" << endl
80  << "repack" << endl
81  << "immerse" << endl
82  << "see guide" << endl
83  << "notv" << endl
84  << "[tvt]" << endl
85  << "[vpc]" << endl
86  << "[vtv]" << endl
87  << "[lol]" << endl
88  << "[c-w]" << endl
89  << "[bt]" << endl
90  << "[dd]" << endl
91  << "[p7]" << endl
92  << "[tc]" << endl
93  << "lol" << endl
94  << "[austin316gb]" << endl
95  << "[shadowkaos]" << endl
96  << "[demon]" << endl
97  << "[moonsong]" << endl
98  << "hoffa" << endl
99  << "(tv-dvdrip hå®t)" << endl
100  << "(hart)" << endl
101  << "(dvd)" << endl
102  << "- -" << endl
103  << "- " << endl
104  << endl
105  << "#########################################################" << endl
106  << "#" << endl
107  << "# The following items are file data tags to be removed." << endl
108  << "#" << endl
109  << "#########################################################" << endl
110  << endl
111  << "-pdtv" << endl
112  << "pdtv" << endl
113  << "-hdtv" << endl
114  << "hdtv" << endl
115  << "-xvid" << endl
116  << "xvid" << endl
117  << "-x264" << endl
118  << "x264" << endl
119  << "-720p" << endl
120  << "720p" << endl
121  << "mp3" << endl
122  << "divx" << endl
123  << "dvdscr" << endl
124  << "dvdrip" << endl;
125  // Close file
126  fout.close();
127 
128  cout << "complete" << endl;
129 };
#define SLASH
Definition: options.hpp:32
static void writeBlackList(string)
Generates a default blacklist file in the given directory.
Definition: writeBlack.cpp:12
The ConfigOpts class stores all config options, settings, and flags for clerk.