thdaemon / pixiv-novel-saver

Pixiv Novel Saver. A tool for batch downloading your loved novels from bookmarks, series id or author id with lazy mode supported.
GNU General Public License v3.0
11 stars 0 forks source link

Initial support for author/series renaming checking #1

Closed thdaemon closed 4 years ago

thdaemon commented 4 years ago

Authors may change their nickname or their novel series name. These will cause pixiv-novel-saver:

To fix it. pixiv-novel-saver must detect name changing.

Now, pixiv-novel-saver is doing these things:

thdaemon commented 4 years ago

Testing for 1,3,4. Id and name desensitized

$ ./novel.sh -c -m 
[info] user specific configuration loaded
[info] saving my bookmarked novels...
[info] total: 332, processing page: 0, in this page: 24
=> NI    {ID}  'xxxx' a
=> NSI   {ID}  'yyyy' b
[notice] directory '/path/to/pvnovels/bookmarks/{MY_ID}/{ID}-OLDNAME' renamed to '/path/to/pvnovels/bookmarks/{MY_ID}/{ID}-NEWNAME'. The author has changed nickname or series name.
=> NI    {ID}  'zzzz' NEWNAME
thdaemon commented 4 years ago

Testing for 2. Id and name desensitized

$ ./novel.sh -c -m 
[info] user specific configuration loaded
[info] saving my bookmarked novels...
[info] total: 332, processing page: 0, in this page: 24
=> NI    {ID}  'xxxx' a
=> NSI   {ID}  'yyyy' b
=> NI    {ID}  '....' ....
=> NI    {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NI    {ID}  '....' ....
=> NI    {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NI    {ID}  '....' ....
=> NI    {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NI    {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NI    {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NSI   {ID}  '....' ....
[info] total: 332, processing page: 1, in this page: 24
=> NI    {ID}  '....' ....
=> NI    {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> N     {ID}  '....' ....
=> NS    {ID}  '....' ....
=> NI    {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NI    {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NSI   {ID}  '....' ....
=> NI    {ID}  '....' ....
=> NSI   {ID}  '....' ....
[error] rename check, multiple {A_AUTHOR_ID}-* existed, please fix it manually.
BTW, the current author/series name is '{A_AUTHOR_ID}-NEWNAME'

/path/to/pvnovels/bookmarks/{MY_ID}/{A_AUTHOR_ID}-NEWNAME
/path/to/pvnovels/bookmarks/{MY_ID}/{A_AUTHOR_ID}-OLDNAME1
/path/to/pvnovels/bookmarks/{MY_ID}/{A_AUTHOR_ID}-OLDNAME2