croot / my-imouto-booru

Automatically exported from code.google.com/p/my-imouto-booru
0 stars 0 forks source link

$use_pretty_image_urls - Character Length Variable (Tag::compact_tags() wasn't working properly) #211

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Would it be possible to implement a numeric variable in the config that's used 
for $use_pretty_image_urls that will limit the filenames to that number of 
characters? As it is, posts with many tags can have REALLY long filenames. 
Sometimes, windows refuses to download them because they're so long. XD Having 
a variable like this would solve that problem.

I.E.
$name_size_limit = 100
$use_pretty_image_urls = true

Image names would be cut off at 100 characters, despite having more tags.

Original issue reported on code.google.com by Grandmas...@gmail.com on 10 Sep 2013 at 3:46

GoogleCodeExporter commented 9 years ago
Done. The limit starts counting where the tags start, and they won't be 
cut-short.

For example, having a pretty name like this, with a limit of 8:
"myimouto 1234 tag_1 tag_2 tag_3"

will produce the following name:
"myimouto 1234 tag_1 tag_2"

instead of:
"myimouto 1234 tag_1 ta"

Thanks~

Original comment by asterixvader on 10 Sep 2013 at 5:12

GoogleCodeExporter commented 9 years ago
You know what... tags actually had a limit of 150, the thing is that the 
function to cut the tags wasn't working correctly and returned all tags.

Well then... this has been fixed~

Original comment by asterixvader on 21 Oct 2013 at 7:38