@@ -46,7 +46,29 @@ As a concept, M2em has different workers that run in a loop. All Chapter/user da
46
46
* Converter - Converting images into ebooks
47
47
* Sender - Compiling & Sending Emails to users and marking them as SENT
48
48
49
- With the sourceparser you can add support of a Webhost.
49
+
50
+ ### The Loop Run & Daemon Loop Run
51
+ If you start m2em in loop mode (with or without --daemon) it will only consider any action with elements that that are
52
+ younger than 24h hours.
53
+
54
+ The use of that is having it running on the server 24/7, waiting for updates from the feeds and ONLY handling said updates.
55
+
56
+ ### Direct action
57
+ You can start a part of the loop without the restriction of 24h. Use the -a (--action) command with either element you wish to start.
58
+
59
+ Example: if you wish to download all chapters you have saved in your database, you start the download action.
60
+ ```
61
+ ./m2em.py --action downloader
62
+ ```
63
+ ### Chapter action
64
+ You can directly apply an action to one chapter with the options --download, --convert or --send. You need to pass
65
+ the ID of said chapter, you can find that out with "-Lc" or "-lc".
66
+ You can pass multiple IDs.
67
+ Example:
68
+ ```
69
+ ./m2em.py --download 100 #Downloads chapter with ID 100
70
+ ```
71
+
50
72
51
73
## Supported Websites
52
74
* Mangastream
@@ -56,10 +78,11 @@ With the sourceparser you can add support of a Webhost.
56
78
57
79
### Help output:
58
80
```
59
- usage: m2em.py [-h] [-af ADD_FEED] [-au] [-lc] [-Lc] [-lf] [-lu] [-cd] [-a]
60
- [-s] [-ss SWITCH_SEND] [-sc SWITCH_CHAPTER]
61
- [-dc DELETE_CHAPTER] [-du DELETE_USER] [-df DELETE_FEED]
62
- [--daemon] [-d]
81
+ usage: m2em.py [-h] [-af ADD_FEED] [-au] [-lc] [-Lc] [-lf] [-lu] [-cd] [-s]
82
+ [--send [SEND [SEND ...]]] [--convert [CONVERT [CONVERT ...]]]
83
+ [--download [DOWNLOAD [DOWNLOAD ...]]] [-a ACTION]
84
+ [-ss SWITCH_SEND] [-sc SWITCH_CHAPTER] [-dc DELETE_CHAPTER]
85
+ [-du DELETE_USER] [-df DELETE_FEED] [--daemon] [-d] [-v]
63
86
64
87
Manga to eManga - m2em
65
88
@@ -75,10 +98,19 @@ optional arguments:
75
98
-lf, --list-feeds Lists all feeds
76
99
-lu, --list-users Lists all Users
77
100
-cd, --create-db Creates DB. Uses Configfile for Naming
78
- -a, --action Start action. Options are: rss (collecting feed data),
79
- downloader, converter or sender
80
- -s, --start Start a single loop. If no arguments are passed, a
81
- single loop will also start
101
+ -s, --start Starts one loop
102
+ --send [SEND [SEND ...]]
103
+ Sends Chapter directly by chapter ID. Multiple IDs can
104
+ be given
105
+ --convert [CONVERT [CONVERT ...]]
106
+ Converts Chapter directly by chapter ID. Multiple IDs
107
+ can be given
108
+ --download [DOWNLOAD [DOWNLOAD ...]]
109
+ Downloads Chapter directly by chapter ID. Multiple IDs
110
+ can be given
111
+ -a ACTION, --action ACTION
112
+ Start action. Options are: rssparser (collecting feed
113
+ data), downloader, converter or sender
82
114
-ss SWITCH_SEND, --switch-send SWITCH_SEND
83
115
Pass ID of User. Switches said user Send eBook status
84
116
-sc SWITCH_CHAPTER, --switch-chapter SWITCH_CHAPTER
@@ -91,6 +123,8 @@ optional arguments:
91
123
Pass ID of Feed. Deletes said Feed
92
124
--daemon Run as daemon
93
125
-d, --debug Debug Mode
126
+ -v, --version show program's version number and exit
127
+
94
128
```
95
129
96
130
## Initial Data
@@ -132,13 +166,20 @@ ServerStartSSL = True
132
166
133
167
To start a single run through the workers, you can simply execute the main program:
134
168
```
135
- ./m2em.py
169
+ ./m2em.py -s
136
170
```
137
171
138
- If you wish to run the program as a daemon, start it with the option "--daemon". It will re-run at the config "Sleep" in second.
172
+ If you wish to run the program as a daemon, start it with the option "--daemon" as well . It will re-run at the config "Sleep" in second.
139
173
```
140
- ./m2em.py --daemon
174
+ ./m2em.py -s --daemon
175
+ ```
176
+
177
+ If you wish to disable/enable sending status of a user, use the -ss command
141
178
```
179
+ ./m2em.py -ss <USERID>
180
+ ```
181
+
182
+
142
183
143
184
### A complete run with nothing happening:
144
185
```
@@ -159,7 +200,6 @@ Finished sending ebooks!
159
200
Everything else should be self-explanatory with the "-h" option.
160
201
161
202
## Known Issues
162
- * There is a huge data load in the beginning. It is recommended to only activate sending of Emails after one complete run
163
203
* MangaFox has issues with SSL Verification on some systems. For now, Simply add the http feed.
164
204
165
205
Please Open an issue if you find anything!
0 commit comments