Quantcast
Channel: configuration - Forum - FlexGet
Viewing all articles
Browse latest Browse all 716

Filesystem, Move with regexp to sort anime in 2nd Season, 3rd Season

$
0
0

@The_King_Killer wrote:

My problem is with animes that have second, third and fourth season and etc.

For example, where I download animes they follow this structure in the filenames:

First season:

If I am not mistaken in my tests the set option is enough for animes that are in the first season, with the configuration below.

    set:
      # content-disposition: no
      path: 'D:\SERIES\{{tvdb_series_name}}\Season {{tvdb_season|pad(2)}}'

[Erai-raws] Zombieland Saga - 01 [1080p][Multiple Subtitle].mkv

Second season:

[Erai-raws] Gintama. Shirogane no Tamashii-hen 2nd Season - 13 [1080p][Multiple Subtitle].mkv

Seasons are defined by 2nd Season, 3rd Season or Season 3 and etc.

I want to use a regexp like this below to set the download folder for second and third season:

\[(.+)?\] (.+?) (S\d* )?- (\d+) \[(.+)\]

In theory this expression would be enough to identify episodes of the second season:

\[(.+)?\] (.+?) (2nd Season) - (\d+)

[Erai-raws] Gintama. Shirogane no Tamashii-hen 2nd Season - 13 [1080p][Multiple Subtitle].mkv

For the third season:

\[(.+)?\] (.+?) (3rd Season) - (\d+)

[Erai-raws] Boku no Hero Academia 3rd Season - 25 END [1080p][Multiple Subtitle].mkv

I tested several settings and found no way to do this.

Do you have any idea how I can mount this configuration to separate the folders correctly?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 716

Trending Articles