Skip to content

move plugin - 'PosixPath' object is not subscriptable #2496

@carda21

Description

@carda21

Expected behaviour:

File moved and renamed to output TV directory.

Actual behaviour:

Failure on renaming of TV file

Steps to reproduce:

  • Step 1: run sort config

Config:

move:
      to: >
        {? storage.videos ?}/TV Shows/{{ tvdb_series_name|default(series_name)|replace('/', '_')|replace(':', ' -')|replace(',', '') }}/{% if series_id_type == 'ep' %}Season {{ series_season }}/{% endif %}
      rename: >
        {{ tvdb_series_name|default(series_name)|replace('/', '_')|replace(':', ' -')|replace(',', '') }} - {{ series_id }}{% if tvdb_ep_name|default(False) %} - {{ tvdb_ep_name|replace('/', '_')|replace(':', ' -')|replace(',', '') }}{% endif %}.{{ location[-3:] }}

Log:

(click to expand)
2019-11-14 11:12 DEBUG    api_tvdb      Series-Sort-Decompressed Using episode info for Big Little Lies s2 e3 from cache.
2019-11-14 11:12 DEBUG    utils.template Series-Sort-Decompressed Error during rendering: (TypeError) 'PosixPath' object is not subscriptable
2019-11-14 11:12 CRITICAL plugin        Series-Sort-Decompressed Filename value replacement `{{ tvdb_series_name|default(series_name)|replace('/', '_')|replace(':', ' -')|replace(',', '') }} - {{ series_id }}{% if tvdb_ep_name|default(False) %} - {{ tvdb_ep_name|replace('/', '_')|replace(':', ' -')|replace(',', '') }}{% endif %}.{{ location[-3:] }}\n` failed: (TypeError) 'PosixPath' object is not subscriptable

Additional information:

  • FlexGet version: 3.0.1
  • Python version: 3.6.8
  • Installation method: git
  • Using daemon (yes/no): no
  • OS and version: Ubuntu 18.04.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions