Welcome, Guest
Python Scripts for ComicRack

TOPIC: Changing Format of Column: 'Published'

Changing Format of Column: 'Published' 1 year 3 weeks ago #46408

  • boshuda
  • boshuda's Avatar
  • Offline
  • Gold Boarder
  • Posts: 295
  • Thank you received: 64
  • Karma: 8
jkthemac wrote:
Xelloss wrote:
All the same I think I don't understand exactly what the original question was about. Or, more precisely, why to change the way date is shown...

If it is because of a filename thing (which would make sense as why to want it in the other order, and why to want 0 in months for correct sorting), then you could change how date is written in the filename by tweaking the filerenaming script... and not to change it in comicrack.

If it is about date sorting inside comicrack, just sort by date and it works perfectly

If it is just a cosmetic thing inside comicrack, I think creating custom values as you say is the only way

Perhaps I am misunderstanding the question...

Probably because lots of countries have date formats that are different and it can get confusing. 12/1/2001 is the twelfth of January to me on first glance but it may not be. Its very annoying sometimes when you are trying to work something out and you go date blind.
Agreed. It would be nice if the whole world would go to biggest->smallest format by default, and punish anyone who violates that rule with fines and prison time. But, we can't even start using the much more sane metric system in my ass-backwards country, so it's doubtful that will ever happen.
The administrator has disabled public write access.
The following user(s) said Thank You: Xelloss

Changing Format of Column: 'Published' 1 year 3 weeks ago #46409

  • Xelloss
  • Xelloss's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 455
  • Thank you received: 117
  • Karma: 24
hahahahaha, "American" date format always annoy me ... I am ok with D-M-Y and also Y-M-D... as order is completely arbitrary... but M-D-Y? WTF DUDE?!

At least in my country we use the MKS system... that is a BIG relief... (I really don't understand how people can live with the other non proportional one!)

My only complain in my country system is the 360 degres system... although I can understand it when I have a 1/3 circle angle and it returns a round number (?)
Last Edit: 1 year 3 weeks ago by Xelloss.
The administrator has disabled public write access.

Changing Format of Column: 'Published' 1 year 3 weeks ago #46412

  • Comickon
  • Comickon's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 2
  • Karma: 0
Lot of comic(series) out there wich have spinoffs or in itself have a long run with different volumes.
I have found it handy to be able to sort or arrange files or comics in this format.
So I can read the different comics in the right chronological order.
Now I have no way to know how to go about this in comicrack.
I have not the knowledge to construct scripts or otherwise.
The administrator has disabled public write access.

Changing Format of Column: 'Published' 1 year 3 weeks ago #46413

  • Xelloss
  • Xelloss's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 455
  • Thank you received: 117
  • Karma: 24
why don't you just order the comics in your reading list my "published"? :blink:
The administrator has disabled public write access.

Changing Format of Column: 'Published' 1 year 3 weeks ago #46414

  • boshuda
  • boshuda's Avatar
  • Offline
  • Gold Boarder
  • Posts: 295
  • Thank you received: 64
  • Karma: 8
When you sort on the published column it sorts them correctly. It just displays them in the mmYYYY format. But it still sorts by year, month, day in descending order.
The administrator has disabled public write access.

Changing Format of Column: 'Published' 1 year 3 weeks ago #46415

  • Xelloss
  • Xelloss's Avatar
  • Offline
  • Platinum Boarder
  • Posts: 455
  • Thank you received: 117
  • Karma: 24
As simple as:



It doesn't matter how it looks in the column
The administrator has disabled public write access.

Changing Format of Column: 'Published' 1 year 3 weeks ago #46419

  • boshuda
  • boshuda's Avatar
  • Offline
  • Gold Boarder
  • Posts: 295
  • Thank you received: 64
  • Karma: 8
I created a super simple script to create a custom field, imaginatively titled 'published_YYYY-mm' that will put dates into the requested format: so it will pad years out to four digits with leading zeroes, and months to two digits with leading zeroes.

I haven't tested it extensively as I have no use for it, but if you want it, there you go. It would be trivial to pad it out to YYYY-mm-dd format also, with dd being 00 when it was missing.
Attachments:
The administrator has disabled public write access.
The following user(s) said Thank You: Xelloss

Changing Format of Column: 'Published' 1 year 3 weeks ago #46470

  • Comickon
  • Comickon's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 2
  • Karma: 0
Thanks Boshuda but it gives an error. But ill do as Xellos suggest by sorting the regular column.
The administrator has disabled public write access.

Changing Format of Column: 'Published' 1 year 2 weeks ago #46481

  • boshuda
  • boshuda's Avatar
  • Offline
  • Gold Boarder
  • Posts: 295
  • Thank you received: 64
  • Karma: 8
Comickon wrote:
Thanks Boshuda but it gives an error. But ill do as Xellos suggest by sorting the regular column.
oops, sorry. It worked for me on stuff with years and months set, comics with only years, only months, or neither field. If you decide you want to try and use it, let me know what error it gives you and I'll try to see what's up.
The administrator has disabled public write access.

Changing Format of Column: 'Published' 1 year 2 weeks ago #46487

  • Comickon
  • Comickon's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 2
  • Karma: 0
ok cool.

So I rightclick on selection of comics ->'automation'-> 'custom published date'

I get error popupwindow with the header:
execution of script failed!
and content:
unexpected token 'del'
The administrator has disabled public write access.
Time to create page: 0.359 seconds

Who's Online

We have 164 guests and 3 members online