1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
|
%global _empty_manifest_terminate_build 0
Name: python-mnamer
Version: 2.5.4
Release: 1
Summary: A media file organiser
License: MIT
URL: https://github.com/jkwill87/mnamer
Source0: https://mirrors.aliyun.com/pypi/web/packages/1b/10/b97a39e086234dbc3b7339c57d888b9420c6825dd38aceb8dd472f0dc20f/mnamer-2.5.4.tar.gz
BuildArch: noarch
Requires: python3-appdirs
Requires: python3-babelfish
Requires: python3-guessit
Requires: python3-requests-cache
Requires: python3-requests
Requires: python3-teletype
Requires: python3-wheel
Requires: python3-dataclasses
%description
[](https://pypi.python.org/pypi/mnamer)
[](https://github.com/jkwill87/mnamer/actions?query=workflow:push)
[](https://codecov.io/gh/jkwill87/mnamer)
[](https://en.wikipedia.org/wiki/MIT_License)
[](https://github.com/ambv/black)
<img src="https://github.com/jkwill87/mnamer/raw/master/assets/logo.png" width="450"/>
# mnamer
mnamer (**m**edia re**namer**) is an intelligent and highly configurable media organization utility. It parses media filenames for metadata, searches the web to fill in the blanks, and then renames and moves them.
Currently it has integration support with [TVDb](https://thetvdb.com) and [TvMaze](https://www.tvmaze.com) for television episodes and [TMDb](https://www.themoviedb.org/) and [OMDb](https://www.omdbapi.com) for movies.
<img src="https://github.com/jkwill87/mnamer/raw/master/assets/screenshot.png" width="750"/>
## Documentation
Check out the [wiki page](https://github.com/jkwill87/mnamer/wiki) for more details.
💾 [**Installation**](https://github.com/jkwill87/mnamer/wiki/Installation)
`$ pip3 install --user mnamer`
🤖 [**Automation**](https://github.com/jkwill87/mnamer/wiki/Automation)
`$ docker pull jkwill87/mnamer`
✍️ [**Formatting**](https://github.com/jkwill87/mnamer/wiki/Formatting)
Using the **episode-directory**, **episode-format**, **movie-directory**, or **movie-format** settings you customize how your files are renamed. Variables wrapped in braces `{}` get substituted with of parsed values of template field variables.
🌐 [**Internationalization**](https://github.com/jkwill87/mnamer/wiki/Internationalization)
Language is supported by the default TMDb and TVDb providers. You can use the `--language` setting to set the language used for templating.
mnamer also supports subtitle files (.srt, .idx, .sub). It will use the format pattern used for movie or episode media files with its extension prefixed by its 2-letter language code.
🧰 [**Settings**](https://github.com/jkwill87/mnamer/wiki/Settings)
```
USAGE: mnamer [preferences] [directives] target [targets ...]
POSITIONAL:
[TARGET,...]: media file file path(s) to process
PARAMETERS:
The following flags can be used to customize mnamer's behaviour. Their long
forms may also be set in a '.mnamer-v2.json' config file, in which case cli
arguments will take precedence.
-b, --batch: process automatically without interactive prompts
-l, --lower: rename files using lowercase characters
-r, --recurse: search for files within nested directories
-s, --scene: use dots in place of alphanumeric chars
-v, --verbose: increase output verbosity
--hits=<NUMBER>: limit the maximum number of hits for each query
--ignore=<PATTERN,...>: ignore files matching these regular expressions
--language=<LANG>: specify the search language
--mask=<EXTENSION,...>: only process given file types
--no-guess: disable best guess; e.g. when no matches or network down
--no-overwrite: prevent relocation if it would overwrite a file
--no-style: print to stdout without using colour or unicode chars
--movie-api={*tmdb,omdb}: set movie api provider
--movie-directory: set movie relocation directory
--movie-format: set movie renaming format specification
--episode-api={tvdb,*tvmaze}: set episode api provider
--episode-directory: set episode relocation directory
--episode-format: set episode renaming format specification
DIRECTIVES:
Directives are one-off arguments that are used to perform secondary tasks
like overriding media detection. They can't be used in '.mnamer-v2.json'.
-V, --version: display the running mnamer version number
--clear-cache: clear request cache
--config-dump: prints current config JSON to stdout then exits
--config-ignore: skips loading config file for session
--config-path=<PATH>: specifies configuration path to load
--id-imdb=<ID>: specify an IMDb movie id override
--id-tmdb=<ID>: specify a TMDb movie id override
--id-tvdb=<ID>: specify a TVDb series id override
--id-tvmaze=<ID>: specify a TvMaze series id override
--no-cache: disable request cache
--media={movie,episode}: override media detection
--test: mocks the renaming and moving of files
```
Parameters can either by entered as command line arguments or from a config file named `.mnamer-v2.json`.
## Contributions
Community contributions are a welcome addition to the project. In order to be merged upsteam any additions will need to be formatted with [black](https://black.readthedocs.io) for consistency with the rest of the project and pass the continuous integration tests run against each PR. Before introducing any major features or changes to the configuration api please consider opening [an issue](https://github.com/jkwill87/mnamer/issues) to outline your proposal.
Bug reports are also welcome on the [issue page](https://github.com/jkwill87/mnamer/issues). Please include any generated crash reports if applicable. Feature requests are welcome but consider checking out [if it is in the works](https://github.com/jkwill87/mnamer/issues?q=label%3Arequest) first to avoid duplication.
%package -n python3-mnamer
Summary: A media file organiser
Provides: python-mnamer
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
%description -n python3-mnamer
[](https://pypi.python.org/pypi/mnamer)
[](https://github.com/jkwill87/mnamer/actions?query=workflow:push)
[](https://codecov.io/gh/jkwill87/mnamer)
[](https://en.wikipedia.org/wiki/MIT_License)
[](https://github.com/ambv/black)
<img src="https://github.com/jkwill87/mnamer/raw/master/assets/logo.png" width="450"/>
# mnamer
mnamer (**m**edia re**namer**) is an intelligent and highly configurable media organization utility. It parses media filenames for metadata, searches the web to fill in the blanks, and then renames and moves them.
Currently it has integration support with [TVDb](https://thetvdb.com) and [TvMaze](https://www.tvmaze.com) for television episodes and [TMDb](https://www.themoviedb.org/) and [OMDb](https://www.omdbapi.com) for movies.
<img src="https://github.com/jkwill87/mnamer/raw/master/assets/screenshot.png" width="750"/>
## Documentation
Check out the [wiki page](https://github.com/jkwill87/mnamer/wiki) for more details.
💾 [**Installation**](https://github.com/jkwill87/mnamer/wiki/Installation)
`$ pip3 install --user mnamer`
🤖 [**Automation**](https://github.com/jkwill87/mnamer/wiki/Automation)
`$ docker pull jkwill87/mnamer`
✍️ [**Formatting**](https://github.com/jkwill87/mnamer/wiki/Formatting)
Using the **episode-directory**, **episode-format**, **movie-directory**, or **movie-format** settings you customize how your files are renamed. Variables wrapped in braces `{}` get substituted with of parsed values of template field variables.
🌐 [**Internationalization**](https://github.com/jkwill87/mnamer/wiki/Internationalization)
Language is supported by the default TMDb and TVDb providers. You can use the `--language` setting to set the language used for templating.
mnamer also supports subtitle files (.srt, .idx, .sub). It will use the format pattern used for movie or episode media files with its extension prefixed by its 2-letter language code.
🧰 [**Settings**](https://github.com/jkwill87/mnamer/wiki/Settings)
```
USAGE: mnamer [preferences] [directives] target [targets ...]
POSITIONAL:
[TARGET,...]: media file file path(s) to process
PARAMETERS:
The following flags can be used to customize mnamer's behaviour. Their long
forms may also be set in a '.mnamer-v2.json' config file, in which case cli
arguments will take precedence.
-b, --batch: process automatically without interactive prompts
-l, --lower: rename files using lowercase characters
-r, --recurse: search for files within nested directories
-s, --scene: use dots in place of alphanumeric chars
-v, --verbose: increase output verbosity
--hits=<NUMBER>: limit the maximum number of hits for each query
--ignore=<PATTERN,...>: ignore files matching these regular expressions
--language=<LANG>: specify the search language
--mask=<EXTENSION,...>: only process given file types
--no-guess: disable best guess; e.g. when no matches or network down
--no-overwrite: prevent relocation if it would overwrite a file
--no-style: print to stdout without using colour or unicode chars
--movie-api={*tmdb,omdb}: set movie api provider
--movie-directory: set movie relocation directory
--movie-format: set movie renaming format specification
--episode-api={tvdb,*tvmaze}: set episode api provider
--episode-directory: set episode relocation directory
--episode-format: set episode renaming format specification
DIRECTIVES:
Directives are one-off arguments that are used to perform secondary tasks
like overriding media detection. They can't be used in '.mnamer-v2.json'.
-V, --version: display the running mnamer version number
--clear-cache: clear request cache
--config-dump: prints current config JSON to stdout then exits
--config-ignore: skips loading config file for session
--config-path=<PATH>: specifies configuration path to load
--id-imdb=<ID>: specify an IMDb movie id override
--id-tmdb=<ID>: specify a TMDb movie id override
--id-tvdb=<ID>: specify a TVDb series id override
--id-tvmaze=<ID>: specify a TvMaze series id override
--no-cache: disable request cache
--media={movie,episode}: override media detection
--test: mocks the renaming and moving of files
```
Parameters can either by entered as command line arguments or from a config file named `.mnamer-v2.json`.
## Contributions
Community contributions are a welcome addition to the project. In order to be merged upsteam any additions will need to be formatted with [black](https://black.readthedocs.io) for consistency with the rest of the project and pass the continuous integration tests run against each PR. Before introducing any major features or changes to the configuration api please consider opening [an issue](https://github.com/jkwill87/mnamer/issues) to outline your proposal.
Bug reports are also welcome on the [issue page](https://github.com/jkwill87/mnamer/issues). Please include any generated crash reports if applicable. Feature requests are welcome but consider checking out [if it is in the works](https://github.com/jkwill87/mnamer/issues?q=label%3Arequest) first to avoid duplication.
%package help
Summary: Development documents and examples for mnamer
Provides: python3-mnamer-doc
%description help
[](https://pypi.python.org/pypi/mnamer)
[](https://github.com/jkwill87/mnamer/actions?query=workflow:push)
[](https://codecov.io/gh/jkwill87/mnamer)
[](https://en.wikipedia.org/wiki/MIT_License)
[](https://github.com/ambv/black)
<img src="https://github.com/jkwill87/mnamer/raw/master/assets/logo.png" width="450"/>
# mnamer
mnamer (**m**edia re**namer**) is an intelligent and highly configurable media organization utility. It parses media filenames for metadata, searches the web to fill in the blanks, and then renames and moves them.
Currently it has integration support with [TVDb](https://thetvdb.com) and [TvMaze](https://www.tvmaze.com) for television episodes and [TMDb](https://www.themoviedb.org/) and [OMDb](https://www.omdbapi.com) for movies.
<img src="https://github.com/jkwill87/mnamer/raw/master/assets/screenshot.png" width="750"/>
## Documentation
Check out the [wiki page](https://github.com/jkwill87/mnamer/wiki) for more details.
💾 [**Installation**](https://github.com/jkwill87/mnamer/wiki/Installation)
`$ pip3 install --user mnamer`
🤖 [**Automation**](https://github.com/jkwill87/mnamer/wiki/Automation)
`$ docker pull jkwill87/mnamer`
✍️ [**Formatting**](https://github.com/jkwill87/mnamer/wiki/Formatting)
Using the **episode-directory**, **episode-format**, **movie-directory**, or **movie-format** settings you customize how your files are renamed. Variables wrapped in braces `{}` get substituted with of parsed values of template field variables.
🌐 [**Internationalization**](https://github.com/jkwill87/mnamer/wiki/Internationalization)
Language is supported by the default TMDb and TVDb providers. You can use the `--language` setting to set the language used for templating.
mnamer also supports subtitle files (.srt, .idx, .sub). It will use the format pattern used for movie or episode media files with its extension prefixed by its 2-letter language code.
🧰 [**Settings**](https://github.com/jkwill87/mnamer/wiki/Settings)
```
USAGE: mnamer [preferences] [directives] target [targets ...]
POSITIONAL:
[TARGET,...]: media file file path(s) to process
PARAMETERS:
The following flags can be used to customize mnamer's behaviour. Their long
forms may also be set in a '.mnamer-v2.json' config file, in which case cli
arguments will take precedence.
-b, --batch: process automatically without interactive prompts
-l, --lower: rename files using lowercase characters
-r, --recurse: search for files within nested directories
-s, --scene: use dots in place of alphanumeric chars
-v, --verbose: increase output verbosity
--hits=<NUMBER>: limit the maximum number of hits for each query
--ignore=<PATTERN,...>: ignore files matching these regular expressions
--language=<LANG>: specify the search language
--mask=<EXTENSION,...>: only process given file types
--no-guess: disable best guess; e.g. when no matches or network down
--no-overwrite: prevent relocation if it would overwrite a file
--no-style: print to stdout without using colour or unicode chars
--movie-api={*tmdb,omdb}: set movie api provider
--movie-directory: set movie relocation directory
--movie-format: set movie renaming format specification
--episode-api={tvdb,*tvmaze}: set episode api provider
--episode-directory: set episode relocation directory
--episode-format: set episode renaming format specification
DIRECTIVES:
Directives are one-off arguments that are used to perform secondary tasks
like overriding media detection. They can't be used in '.mnamer-v2.json'.
-V, --version: display the running mnamer version number
--clear-cache: clear request cache
--config-dump: prints current config JSON to stdout then exits
--config-ignore: skips loading config file for session
--config-path=<PATH>: specifies configuration path to load
--id-imdb=<ID>: specify an IMDb movie id override
--id-tmdb=<ID>: specify a TMDb movie id override
--id-tvdb=<ID>: specify a TVDb series id override
--id-tvmaze=<ID>: specify a TvMaze series id override
--no-cache: disable request cache
--media={movie,episode}: override media detection
--test: mocks the renaming and moving of files
```
Parameters can either by entered as command line arguments or from a config file named `.mnamer-v2.json`.
## Contributions
Community contributions are a welcome addition to the project. In order to be merged upsteam any additions will need to be formatted with [black](https://black.readthedocs.io) for consistency with the rest of the project and pass the continuous integration tests run against each PR. Before introducing any major features or changes to the configuration api please consider opening [an issue](https://github.com/jkwill87/mnamer/issues) to outline your proposal.
Bug reports are also welcome on the [issue page](https://github.com/jkwill87/mnamer/issues). Please include any generated crash reports if applicable. Feature requests are welcome but consider checking out [if it is in the works](https://github.com/jkwill87/mnamer/issues?q=label%3Arequest) first to avoid duplication.
%prep
%autosetup -n mnamer-2.5.4
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
pushd %{buildroot}
if [ -d usr/lib ]; then
find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/lib64 ]; then
find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/bin ]; then
find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
if [ -d usr/sbin ]; then
find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
fi
touch doclist.lst
if [ -d usr/share/man ]; then
find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
fi
popd
mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst .
%files -n python3-mnamer -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 2.5.4-1
- Package Spec generated
|