#Collection by File Size

1 messages ยท Page 1 of 1 (latest)

vagrant robin
#

Hi,
I want to create collections based on file size. Is this possible to do?
Something along the lines of a collection for each of the following:

  1. more than 10 but less than 20 gb
  2. more than 20 but less than 30 gb
  3. more than 30 but less than 40 gb
  4. more than 40 but less than 50 gb
  5. more than 50 but less than 60 gb
  6. more than 60 but less than 70 gb
  7. more than 70 gb.
    Thank you
edgy mirageBOT
#

Welcome @vagrant robin!

Someone from <@&938443185347244033> will assist when they're available.

Including meta.log from the beginning is a huge help. Type !logs for more information.

After attaching your log, do not forget to hit the green check boxes when prompted by our bot.

#

You can press the "Close Post" button above or type /close at any time to close this post.

patent basin
#

What have you tried so far?

vagrant robin
#

Could you remind me how to do the code line please?

``

#

I will paste what I have used

cyan laurelBOT
#
Using Code Blocks

Please use code blocks when sending any code-related text (such as error messages or configuration file extracts.)

The Grave Accent key (`) is used to define code blocks and is typically found to the left of the number 1 key on a standard keyboard.

If you are posting any yaml-formatted text (such as collections), you can add yaml to your Grave Accent keys for coloured formatting. See the below sample text and output

YOU TYPE THIS

`โ€‹`โ€‹`yaml
collections:
  Documentaries:
    smart_filter:
      all:
        genre: Documentary
`โ€‹`โ€‹`

DISCORD DISPLAYS

collections:
  Documentaries:
    smart_filter:
      all:
        genre: Documentary
vagrant robin
#
  file_size_collections:
    template: file_size_collection

templates:
  file_size_collection:
    smart_filter:
      type: movie
      any:
        file.size.gte: <<min_size>>
        file.size.lt: <<max_size>>
    collection_mode: hide_items
    sort_title: "!File Size_<<min_size>>GB_Collection"
    sync_mode: sync
    visible_library: true

collections:
  "10GB - 20GB":
    template: file_size_collection
    min_size: 10
    max_size: 20
  "20GB - 30GB":
    template: file_size_collection
    min_size: 20
    max_size: 30
  "30GB - 40GB":
    template: file_size_collection
    min_size: 30
    max_size: 40
  "40GB - 50GB":
    template: file_size_collection
    min_size: 40
    max_size: 50
  "50GB - 60GB":
    template: file_size_collection
    min_size: 50
    max_size: 60
  "60GB - 70GB":
    template: file_size_collection
    min_size: 60
    max_size: 70
  "70GB and Above":
    smart_filter:
      type: movie
      any:
        file.size.gte: 70
    collection_mode: hide_items
    sort_title: "!File Size_70GB_Collection"
    sync_mode: sync
    visible_library: true
#

let me try again!

patent basin
#

Where are you finding this?

file.size.gte
vagrant robin
#

All honesty, I used chatgpt ...

patent basin
#

Do not use ChatGPT for Kometa. I have honestly never seen it produce something that works, and it makes stuff like this up all the time.

vagrant robin
#

good to know ๐Ÿ™‚ noted

patent basin
#

Very little about that YAML is valid at all.

vagrant robin
#

๐Ÿ˜… ๐Ÿ˜ฆ

patent basin
#

Ultimately, the answer is no, this is not possible.

#

There is no search or filter criteria that exposes the file size.

vagrant robin
#

Thank you Mr. Carrot, that's what I suspected. I was thinking if I can't do it manually then it might not exist.

#

was worth a shot, much appreciated though