It's not a huge problem and only occurs occasionally but it's an annoying piece of work always having to fix this manually. Just wanted to elaborate what the problem for me is with this issue. A constant max title length would fix this problem. When the lenght of the filename has now changed, I am downloading the same file again althought it's already there with a slightly different name. This can be a problem when updating streams, you just parse all items again and just let those skip where the filename does already exist. For the the custom filename that I use.Ĭode: *username_url*_*content_id*_*title**extension*.it does work, however there is no guarantee that the title is always cut off at the same position, when for example I want to change username_internal to the new pathalias a user now has, then the length of the prefix before the title can change so the title will be cut off differently. However this is not very intelligent solution either imo as it simply cuts off the end of the filename when the limit is reached. ![]() And I have tried your packagizer-rule with limiting the filename length and it worked very well. I fully understand your objections and it's not my intention to clutter or slow down the plugin with too many options. Always preserve file-type when shorting filenames: This implies that this is always correctly found and may fail for files without extension or with "unknown" extension Shorten paths before- or after Packagizer actions? ![]() ![]() Which path to use if not only the filename but also the path needs to be shortened We do have tickets regarding this topic but it is more complex that you might think because: Please understand that a plugin specific solution/setting just for flickr wouldn't be target-oriented as the "too long path" issue can happen with any source/file/path. If you need it to act more intelligent you may need an **External links are only visible to Support Staff**. Please keep in mind that this example works only on the filename without checking the full path.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |