Comments (15)
There should be a flag for that, "remove other files" if this is set to false, and if your files are in a directory, none of those files should be removed.
from namer.
Do you mean these flags?
- new_relative_path_name = {site}/{site} - {date} - {name}/{site} - {date} - {performers} - {name}.{ext}
- del_other_files = False
I have tried a bunch of times and had no success. I am able to write the .nfo and it makes it to the new destination.
I straight up copied the 'namer.cfg.sample' code and changed a few things and still nothing.
Thanks!
from namer.
sound like you are using namer to write the .nfos which download the jpgs then replacing the ones you provide?
This sounds like an order of operations problem.
I would suggest using namer as part of whatever script you have writing the image files. Namer can be installed as a pip and easily called to rename a single file and write the .nfos as output.
Namer can run command line and leave files in the directory after renaming them, or move them to the root of a directory if using directory names.
Have namer rename the movie in place, write the infos, the have your code copy files in and then finally move the whole thing to the final location.
Or you can put the files next to existing .jpgs and update them after namer has processed them and moved them to the dest dir.
There are too many cases like this that have already led to far to many configurations in namer. And if others can't benefit from me adding this,I'm going to have to recommend you use one of the work arounds above.
from namer.
I'm cool with a workaround, however, I cannot get them to move at all. There is no other script I am trying to use with it. I have a directory named '21 naturals' and in it, I have 10 files named like the following:
21Naturals - 2020-01-27 - Charlie Dean, Sybil
They have one jpg each for posters (poster.jpg) and background (background.jpg) in the folder. I am using docker on unraid. I copied the 'namer.cfg.sample' and changed minimal things to just get it up and running.
This folder (21Naturals - 2020-01-27 - Charlie Dean, Sybil) will stay in the 'watch' directory with poster.jpg and background.jpg while in the 'dest' folder, it also has the same folder (21Naturals - 2020-01-27 - Charlie Dean, Sybil) except with the .mp4 file.
I can use the CLI as well; I just wanted to let you know that at least for me, the 'other files' are not moving with the video as I was expecting.
Thanks again!
from namer.
Alright that might be a bug. Worth adding a test for. might get to it this weekend. slammed right now. As long as you have not configured namer to write nfo files.
from namer.
also did you check file permissions. if they were written by jellyfin, they usually have a restrictive permission for groups, so those files might not be editable
from namer.
Through unraid I use a script that does the following:
The utility starts a background process that goes to each of your data disks and cache disks and selected user shares and changes file and directory ownership to nobody/users (i.e., uid/gid to 99/100), and sets permissions as follows:
For directories:
drwxrwxrwxFor read/write files:
-rw-rw-rw-For readonly files:
-r--r--r--
I run it after I run a few files through the Namer docker container and don't get the output I want. It gets me back to baseline and makes sure everything has the same ownership/permissions for when I try again.
I'll play around with the permissions and see if I can't figure anything out.
from namer.
This was a bug, fixed here: 44b2ee8
Release in progress 1.6.7
from namer.
Please test and close.
from namer.
Lookin' great! Thanks.
from namer.
I changed the new_relative_path_name={site}/{site} - {date} - {name}/{site} - {date} - {name}.{ext} and this was the result for the poster.
(dir) 21FootArt
/21FootArt - 2015-09-19 - Glorious Footjob
/poster.jpg
The poster file is now in the main 21FootArt directory and not the glorious footjob directory. (BTW, I am fine with current functionality so don't prioritize this for me. I'm just following up so you know and offering to help.)
from namer.
I see what I did wrong.... didn't test for these kinds of structures. but good catch.
from namer.
fix is building now, will be 1.7.1
from namer.
released, please check it out again, and this time I expect the issue will stay closed :D
from namer.
Beautiful! Looks great. I'll close out and if you need any testing again just send up the bat signal and I'll help out.
from namer.
Related Issues (20)
- 'types.SimpleNamespace' object has no attribute 'site' HOT 2
- Throws FileNotFoundError after calculating phash begins HOT 3
- Suggestion specific site
- program adding more \ on a network attached drive
- Renameing Keeps failing
- Docker container amd64 only HOT 2
- Python 3.12 compability HOT 1
- Web UI CSS for Failed tab fixed width too large for small screens. HOT 2
- option to generate scene nfo as episode metadata instead of movies
- Server a
- watchdog cant find directories HOT 6
- I DON'T WANT TO GENERATE A JSON .GZ FILE AFTER RENAMING, HOW DO I SET IT? HOT 1
- PlexPorn
- Feature Request - Batch Mode Matching
- Namer can be run under macOS? HOT 1
- Where should the .namer.cfg file be stored on macOS? HOT 1
- I keep getting this error: requests.exceptions.ConnectionError HOT 2
- metadataapi.net dead HOT 2
- Feature Request - Inlcude Codec Type as naming option
- Rename files not in theporndb HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from namer.