Giter Club home page Giter Club logo

Comments (15)

4c0d3r avatar 4c0d3r commented on September 21, 2024

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.

josst10 avatar josst10 commented on September 21, 2024

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.

4c0d3r avatar 4c0d3r commented on September 21, 2024

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.

josst10 avatar josst10 commented on September 21, 2024

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.

4c0d3r avatar 4c0d3r commented on September 21, 2024

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.

4c0d3r avatar 4c0d3r commented on September 21, 2024

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.

josst10 avatar josst10 commented on September 21, 2024

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:
drwxrwxrwx

For 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.

4c0d3r avatar 4c0d3r commented on September 21, 2024

This was a bug, fixed here: 44b2ee8

Release in progress 1.6.7

from namer.

4c0d3r avatar 4c0d3r commented on September 21, 2024

Please test and close.

from namer.

josst10 avatar josst10 commented on September 21, 2024

Lookin' great! Thanks.

from namer.

josst10 avatar josst10 commented on September 21, 2024

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.

4c0d3r avatar 4c0d3r commented on September 21, 2024

I see what I did wrong.... didn't test for these kinds of structures. but good catch.

from namer.

4c0d3r avatar 4c0d3r commented on September 21, 2024

fix is building now, will be 1.7.1

from namer.

4c0d3r avatar 4c0d3r commented on September 21, 2024

released, please check it out again, and this time I expect the issue will stay closed :D

from namer.

josst10 avatar josst10 commented on September 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.