View Single Post
Old 07-23-2011, 07:31 PM   #1
penguinaka
Quack! Quack!
penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.penguinaka can eat soup with a fork.
 
penguinaka's Avatar
 
Posts: 92
Karma: 9176
Join Date: Apr 2011
Location: Florida
Device: kindle 3 & sony daily prs950sc
Exclamation Auto Increment Series Index Tweak *BUG FOUND

a BUG was found below see bottom of thread post #8

Quote:
The algorithm used to assign a new book in an existing series a series number.
New series numbers assigned using this tweak are always integer values, except
if a constant non-integer is specified.
Possible values are:
next - First available integer larger than the largest existing number
first_free - First available integer larger than 0
next_free - First available integer larger than the smallest existing number
last_free - First available integer smaller than the largest existing number
Return largest existing + 1 if no free number is found
const - Assign the number 1 always
a number - Assign that number always. The number is not in quotes. Note that
0.0 can be used here.
Examples:
series_index_auto_increment = 'next'
series_index_auto_increment = 'next_free'
series_index_auto_increment = 16.5
So I was playing with this and i'm not sure how it works... I'm trying to implement the last function... "a number"

what i'm trying to get it to do is... if a series has a name but no index number it assigns the value of 99.

example:

George RR Martin - Ice & Fire - Game of Thrones.epub

Author: George RR Martin
Series: Ice & Fire
Series_Index: 99
Title: Game of Thrones

Can this be done? Or am i misunderstanding how this works and if so how does it work i can't seem to get it to do anything.

Last edited by penguinaka; 07-24-2011 at 12:33 PM.
penguinaka is offline   Reply With Quote