Commit | Line | Data |
---|---|---|
c3071480 RE |
1 | # GNU MediaGoblin -- federated, autonomous media hosting |
2 | # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. | |
3 | # | |
4 | # This program is free software: you can redistribute it and/or modify | |
5 | # it under the terms of the GNU Affero General Public License as published by | |
6 | # the Free Software Foundation, either version 3 of the License, or | |
7 | # (at your option) any later version. | |
8 | # | |
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | # GNU Affero General Public License for more details. | |
13 | # | |
14 | # You should have received a copy of the GNU Affero General Public License | |
15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | ||
17 | ||
18 | def reprocess_parser_setup(subparser): | |
19 | subparser.add_argument( | |
20 | '--available', '-a', | |
21 | action="store_true", | |
22 | help="List available actions for a given media entry") | |
23 | subparser.add_argument( | |
24 | '--all', '-A', | |
25 | action="store_true", | |
26 | help="Reprocess all media entries") | |
27 | subparser.add_argument( | |
28 | '--state', '-s', | |
29 | help="Reprocess media entries in this state" | |
30 | " such as 'failed' or 'processed'") | |
31 | subparser.add_argument( | |
32 | '--type', '-t', | |
33 | help="The type of media to be reprocessed such as 'video' or 'image'") | |
34 | subparser.add_argument( | |
35 | 'media_id', | |
36 | nargs='*', | |
37 | help="The media_entry id(s) you wish to reprocess.") | |
38 | ||
39 | ||
40 | def reprocess(args): | |
41 | pass |