Welcome, Guest
Python Scripts for ComicRack

TOPIC: Library Organizer (Version 2.1.11) (September 25, 2014)

Re: Library Organizer 6 years 8 months ago #12403

  • perezmu
  • perezmu's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 1114
  • Thank you received: 64
  • Karma: 51
pescuma wrote:
@stonepaw

One feature request could you please add an option to always add " (1)" to the files when moving and another file with the same name already exists?

Yes, please! Then we can have the Duplicates Manager handle dupes!
The administrator has disabled public write access.

Re: Library Organizer 6 years 8 months ago #12404

  • Stonepaw
  • Stonepaw's Avatar
  • Offline
  • Moderator
  • Posts: 921
  • Thank you received: 268
  • Karma: 173
This is already implemented.

When a duplicate is found a message box pops up asking what to do. Move and overwrite, cancel or move and rename to filename (1). There is also an option to always do that action.

The administrator has disabled public write access.

Re: Library Organizer 6 years 8 months ago #12405

  • perezmu
  • perezmu's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 1114
  • Thank you received: 64
  • Karma: 51
Stonepaw wrote:
This is already implemented.

oooops :blush:
The administrator has disabled public write access.

Re: Library Organizer 6 years 8 months ago #12408

  • pescuma
  • pescuma's Avatar
  • Offline
  • Expert Boarder
  • Posts: 115
  • Thank you received: 16
  • Karma: 21
I meant in the setup dialog, so that this screen doesn't show even in the first time.

EDIT: Also, if you want, I've made a small change to better handle multiple comics with same name. It goes in MoveBook method:
			elif self.Action == OverwriteAction.Rename:
				# Find an available name
				extension = Path.GetExtension(path)
				base = path[:-len(extension)]
				
				for i in range(100):
					newpath = base + " (" + str(i+1) + ")" + extension
					if not File.Exists(newpath) or newpath == book.FilePath:
						return self.MoveBook(book, newpath)
				
				self.report.Append("\n\nFailed to find an available name to rename book. Book %s was not moved." % (path, ex, book.FilePath))
				return MoveResult.Failed
Last Edit: 6 years 8 months ago by pescuma.
The administrator has disabled public write access.

Re: Library Organizer 6 years 8 months ago #12410

  • Stonepaw
  • Stonepaw's Avatar
  • Offline
  • Moderator
  • Posts: 921
  • Thank you received: 268
  • Karma: 173
That would work quite a bit better. Thanks! I've uploaded 1.3. (Trying out the google code thing now)

About the setting in the gui to always rename. I'm not sure this would be the best option but I will look into adding.
The administrator has disabled public write access.
The following user(s) said Thank You: 600WPMPO

Re: Library Organizer 6 years 8 months ago #12412

  • Snout Spout
  • Snout Spout's Avatar
  • Offline
  • Junior Boarder
  • Posts: 27
  • Karma: 1
Stonepaw wrote:
That would work quite a bit better. Thanks! I've uploaded 1.3. (Trying out the google code thing now)

About the setting in the gui to always rename. I'm not sure this would be the best option but I will look into adding.

This link works, but the link in the first post doesn't
The administrator has disabled public write access.

Re: Library Organizer 6 years 8 months ago #12413

  • Stonepaw
  • Stonepaw's Avatar
  • Offline
  • Moderator
  • Posts: 921
  • Thank you received: 268
  • Karma: 173
Whoops! :blush: Fixed now.
The administrator has disabled public write access.

Re: Library Organizer 6 years 8 months ago #12419

  • Alan Scott
  • Alan Scott's Avatar
  • Offline
  • Gold Boarder
  • Posts: 264
  • Thank you received: 20
  • Karma: 10
@ Stonepaw - I've been setting up the latest version, and I think it might be just what I need! One problem: how do I set a rule for "blank"? For example, I have a profile with the following rules:

Publisher Is Not DC Comics
Imprint Is Not Blank

In smartlists, I simply need to leave the field empty, and ComicRack understands this means to have a list of DC Comics with no imprints. How can I accomplish this here? If I cannot, could you please add this? Thanks in advance!
... The failure to appreciate... is perfectly understandable, because the readership never evaluates old material in the context of the cultural climate in which it was created, or the state of the art at the time it was created.
Marty Pasko
The administrator has disabled public write access.

Re: Library Organizer 6 years 8 months ago #12421

  • Stonepaw
  • Stonepaw's Avatar
  • Offline
  • Moderator
  • Posts: 921
  • Thank you received: 268
  • Karma: 173
You would want to use "Imprint is Blank" since that would mean "exclude any where the imprint is blank".

If you use Is Not then it would mean "exclude any where the imprint is not blank" ie where the imprint is actually filled in and it would only move comics with blank imprints.
The administrator has disabled public write access.

Re: Library Organizer 6 years 8 months ago #12423

  • Alan Scott
  • Alan Scott's Avatar
  • Offline
  • Gold Boarder
  • Posts: 264
  • Thank you received: 20
  • Karma: 10
Thanks for the reply. At the moment, it doesn't seem to matter whether I set the rule as is or is not, nor whether I write the word "blank" in the box or leave it empty as I would in a ComicRack smartlist, when I test it against a DC Comic with an imprint to see if Library Organizer will prevent the move, it moves the file anyway.
... The failure to appreciate... is perfectly understandable, because the readership never evaluates old material in the context of the cultural climate in which it was created, or the state of the art at the time it was created.
Marty Pasko
The administrator has disabled public write access.
Time to create page: 0.246 seconds

Who's Online

We have 267 guests and 5 members online