@ZileXa wrote:
This issue has haunted me in the past for TV shows, but I was able to solve it back then with some help here.
Unfortunately this time I need assistance again.error:
2017-10-08 13:00 CRITICAL plugin move-movies Filename value replacement `{{tmdb_name|pathscrub}} ({{tmdb_year}}){% if quality|default(False) %} - [{{quality}}]{% endif %}{% if release_group|default(False) %} - [{{release_group}}]{% endif %}` failed: (TypeError) object of type 'NoneType' has no len() 2017-10-08 13:00 WARNING task move-movies Aborting task (plugin: move)
task:
##### Move movies from downloads folder to the movies folder, along with possible subtitles and adding the files to the subtitle queue# move-movies: priority: 23 template: - disable-seen-retry - movies-metainfo filesystem: path: "/{? folder.root ?}{? folder.downmovies ?}" recursive: yes retrieve: files regexp: '.*\.(avi|mkv|mp4)$' accept_all: yes regexp: reject: - \btrailer\b - \bsample\b move: to: "/{? folder.root ?}{? folder.movies ?}" rename: "{{tmdb_name|pathscrub}} ({{tmdb_year}}){% if quality|default(False) %} - [{{quality}}]{% endif %}{% if release_group|default(False) %} - [{{release_group}}]{% endif %}" along: extensions: - srt - sub subdirs: - Subs clean_source: 100 kodi_library: action: scan category: video url: http://localhost port: 8080 list_add: - subtitle_list: list: subtitles path: "{{location}}" remove_after: 7 days exec: on_exit: phase: find "/{? folder.root ?}{? folder.downmovies ?}"* -type d -empty -delete
The weird thing is, previous tasks have added files to Transmission, with correct names already, renaming nicely to "tmdb title (tmdb year) [quality]" (and also with an IF statement for release group) so this task should easily be able to process the files.
I can probably remove the release group because it never adds the name of the release group (like Sparks, Rarbg, JIFY) but that should not cause the plugin to abort because it's an IF statement.
Posts: 2
Participants: 1