Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can Flexget add or subtract a number from a series ID? #3888

Open
Aquaakuma opened this issue Nov 27, 2023 · 1 comment
Open

Can Flexget add or subtract a number from a series ID? #3888

Aquaakuma opened this issue Nov 27, 2023 · 1 comment

Comments

@Aquaakuma
Copy link

I want to download TV series through RSS. The TV series titles provided by RSS are similar to ‘XXXX - 25’. I can use the manipulate plugin to format it as ‘XXXX S02E25’. However, 25 is actually the first episode of the second season. I hope to subtract 24 from 25. I have tried everything I can think of, but nothing works. It’s driving me crazy. If Flexget has this feature, please give me some hints.

@ksurl
Copy link
Contributor

ksurl commented Jan 27, 2024

yes you can set a custom series id

in your series config, set a custom variable with the offset. then on the rename when moving, use the new id instead of the default accepted one if it exists.

series:
  - 'SERIES':
      alternate_name: SERIES_ALT
      set:
        custom_series_id: "{{(series_id)|int - 24)|string|pad(2)}}"
...
move:
  to: /blah/{{series_name}}/
  rename: "{{series_name}} {% if custom_series_id is defined %}S02E{{custom_series_id}}{% else %}{{series_id|pad(2)}}{% endif %}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants