-
Notifications
You must be signed in to change notification settings - Fork 481
move.along not working with "[" and "]" characters in folder name #1348
Copy link
Copy link
Closed
Labels
Description
Expected behaviour:
<name>.bar gets moved along with <name>.foo
Actual behaviour:
<name>.foo is moved, <name>.bar is not.
Steps to reproduce:
- Step 1: create directory/file structure as follows:
$ tree
.
├── config.yml
├── flexget.log
├── foo
│ ├── foo.bar
│ └── foo.foo
├── foo[bar]
│ ├── foo.bar
│ └── foo.foo
└── moved
- Step 2: execute the below config
- Step 3: notice how
.baris moved fromfoo/, but not forfoo[bar]/
Config:
tasks:
test:
filesystem:
path: ~/flexget-test
retrieve: files
regexp: '.*\.(foo)'
recursive: yes
accept_all: yes
move:
to: ~/flexget-test/moved/
along:
files:
- barLog:
2016-08-17 20:44 DEBUG manager Config file /home/jamie/flexget-test/config.yml selected
2016-08-17 20:44 DEBUG manager sys.defaultencoding: ascii
2016-08-17 20:44 DEBUG manager sys.getfilesystemencoding: UTF-8
2016-08-17 20:44 DEBUG manager os.path.supports_unicode_filenames: False
2016-08-17 20:44 INFO manager Test mode, creating a copy from database ...
2016-08-17 20:44 DEBUG plugin Trying to load plugins from: [u'/home/jamie/flexget-test/plugins', '/usr/lib/python2.7/site-packages/flexget/plugins']
2016-08-17 20:44 DEBUG safe Reading from cache file /tmp/safe-0.4.words.cache
2016-08-17 20:44 DEBUG plugin (u'Plugin `%s` requires `%s` to load.', u'memusage', u'ext lib `guppy`')
2016-08-17 20:44 DEBUG stevedore.extension found extension EntryPoint.parse('legendastv = subliminal.providers.legendastv:LegendasTVProvider')
2016-08-17 20:44 DEBUG stevedore.extension found extension EntryPoint.parse('shooter = subliminal.providers.shooter:ShooterProvider')
2016-08-17 20:44 DEBUG stevedore.extension found extension EntryPoint.parse('podnapisi = subliminal.providers.podnapisi:PodnapisiProvider')
2016-08-17 20:44 DEBUG stevedore.extension found extension EntryPoint.parse('tvsubtitles = subliminal.providers.tvsubtitles:TVsubtitlesProvider')
2016-08-17 20:44 DEBUG stevedore.extension found extension EntryPoint.parse('opensubtitles = subliminal.providers.opensubtitles:OpenSubtitlesProvider')
2016-08-17 20:44 DEBUG stevedore.extension found extension EntryPoint.parse('addic7ed = subliminal.providers.addic7ed:Addic7edProvider')
2016-08-17 20:44 DEBUG stevedore.extension found extension EntryPoint.parse('subscenter = subliminal.providers.subscenter:SubsCenterProvider')
2016-08-17 20:44 DEBUG stevedore.extension found extension EntryPoint.parse('thesubdb = subliminal.providers.thesubdb:TheSubDBProvider')
2016-08-17 20:44 DEBUG stevedore.extension found extension EntryPoint.parse('tvdb = subliminal.refiners.tvdb:refine')
2016-08-17 20:44 DEBUG stevedore.extension found extension EntryPoint.parse('omdb = subliminal.refiners.omdb:refine')
2016-08-17 20:44 DEBUG stevedore.extension found extension EntryPoint.parse('metadata = subliminal.refiners.metadata:refine')
2016-08-17 20:44 DEBUG plugin Plugins took 1.13 seconds to load. 260 plugins in registry.
2016-08-17 20:44 VERBOSE manager Creating new database /home/jamie/flexget-test/test-config.sqlite - DO NOT INTERUPT ...
2016-08-17 20:44 DEBUG manager Connecting to: sqlite:////home/jamie/flexget-test/test-config.sqlite
2016-08-17 20:44 DEBUG schema Initializing plugin feed schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin api_trakt schema version to 5
2016-08-17 20:44 DEBUG schema Initializing plugin make_rss schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin series schema version to 12
2016-08-17 20:44 DEBUG schema Initializing plugin discover schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin seen schema version to 4
2016-08-17 20:44 DEBUG schema Initializing plugin pogcal_acquired schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin archive schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin digest schema version to 1
2016-08-17 20:44 DEBUG schema Initializing plugin remember_rejected schema version to 3
2016-08-17 20:44 DEBUG schema Initializing plugin input_cache schema version to 1
2016-08-17 20:44 DEBUG schema Initializing plugin simple_persistence schema version to 4
2016-08-17 20:44 DEBUG schema Initializing plugin myepisodes schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin regexp_list schema version to 1
2016-08-17 20:44 DEBUG schema Initializing plugin delay schema version to 2
2016-08-17 20:44 DEBUG schema Initializing plugin failed schema version to 3
2016-08-17 20:44 DEBUG schema Initializing plugin tail schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin api_tvdb schema version to 7
2016-08-17 20:44 DEBUG schema Initializing plugin imdb_lookup schema version to 7
2016-08-17 20:44 DEBUG schema Initializing plugin movie_queue schema version to 4
2016-08-17 20:44 DEBUG schema Initializing plugin import_series schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin movie_list schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin torrent411 schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin api_tmdb schema version to 2
2016-08-17 20:44 DEBUG schema Initializing plugin log_once schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin entry_list schema version to 1
2016-08-17 20:44 DEBUG schema Initializing plugin subtitle_queue schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin subtitle_list schema version to 1
2016-08-17 20:44 DEBUG schema Initializing plugin api_rottentomatoes schema version to 2
2016-08-17 20:44 DEBUG schema Initializing plugin version_checker schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin secrets schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin morethantv schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin t411 schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin queue schema version to 2
2016-08-17 20:44 DEBUG schema Initializing plugin telegram_chat_ids schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin tvmaze schema version to 6
2016-08-17 20:44 DEBUG schema Initializing plugin imdb_list schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin rutracker_auth schema version to 0
2016-08-17 20:44 DEBUG schema Initializing plugin backlog schema version to 2
2016-08-17 20:44 DEBUG manager config_name: config
2016-08-17 20:44 DEBUG manager config_base: /home/jamie/flexget-test
2016-08-17 20:44 DEBUG manager New config data loaded.
2016-08-17 20:44 DEBUG schema entering flexget version 2.2.22 to db
2016-08-17 20:44 DEBUG parsing setting default movie parser to internal. (options: {u'internal': <flexget.plugins.parsers.parser_internal.ParserInternal object at 0x7f6f3a6ae610>, u'guessit': <flexget.plugins.parsers.parser_guessit.ParserGuessit object at 0x7f6f3a712e10>})
2016-08-17 20:44 DEBUG parsing setting default series parser to internal. (options: {u'internal': <flexget.plugins.parsers.parser_internal.ParserInternal object at 0x7f6f3a6ae610>, u'guessit': <flexget.plugins.parsers.parser_guessit.ParserGuessit object at 0x7f6f3a712e10>})
2016-08-17 20:44 DEBUG cron_env Encoding UTF-8 stored
2016-08-17 20:44 DEBUG util.simple_persistence setting key terminal_encoding value 'UTF-8'
2016-08-17 20:44 DEBUG task_queue task queue shutdown requested
2016-08-17 20:44 INFO ipc.rpyc server started on [127.0.0.1]:33489
2016-08-17 20:44 DEBUG task test executing test
2016-08-17 20:44 VERBOSE filesystem test Starting to scan folders.
2016-08-17 20:44 VERBOSE filesystem test Scanning folder ~/flexget-test. Recursion is set to True.
2016-08-17 20:44 DEBUG filesystem test Scanning /home/jamie/flexget-test
2016-08-17 20:44 DEBUG filesystem test Checking if /home/jamie/flexget-test/config.yml qualifies to be added as an entry.
2016-08-17 20:44 DEBUG filesystem test Checking if /home/jamie/flexget-test/foo qualifies to be added as an entry.
2016-08-17 20:44 DEBUG filesystem test Checking if /home/jamie/flexget-test/foo/foo.foo qualifies to be added as an entry.
2016-08-17 20:44 INFO filesystem test Test mode. Entry includes:
2016-08-17 20:44 INFO filesystem test Title: foo
2016-08-17 20:44 INFO filesystem test URL: file:///home/jamie/flexget-test/foo/foo.foo
2016-08-17 20:44 INFO filesystem test Filename: foo.foo
2016-08-17 20:44 INFO filesystem test Location: /home/jamie/flexget-test/foo/foo.foo
2016-08-17 20:44 INFO filesystem test Timestamp: 2016-08-17 20:40:55.348219
2016-08-17 20:44 DEBUG filesystem test Checking if /home/jamie/flexget-test/foo/foo.bar qualifies to be added as an entry.
2016-08-17 20:44 DEBUG filesystem test Checking if /home/jamie/flexget-test/moved qualifies to be added as an entry.
2016-08-17 20:44 DEBUG filesystem test Checking if /home/jamie/flexget-test/foo[bar] qualifies to be added as an entry.
2016-08-17 20:44 DEBUG filesystem test Checking if /home/jamie/flexget-test/foo[bar]/foo.foo qualifies to be added as an entry.
2016-08-17 20:44 INFO filesystem test Test mode. Entry includes:
2016-08-17 20:44 INFO filesystem test Title: foo
2016-08-17 20:44 INFO filesystem test URL: file:///home/jamie/flexget-test/foo%5Bbar%5D/foo.foo
2016-08-17 20:44 INFO filesystem test Filename: foo.foo
2016-08-17 20:44 INFO filesystem test Location: /home/jamie/flexget-test/foo[bar]/foo.foo
2016-08-17 20:44 INFO filesystem test Timestamp: 2016-08-17 20:37:41.250032
2016-08-17 20:44 DEBUG filesystem test Checking if /home/jamie/flexget-test/foo[bar]/foo.bar qualifies to be added as an entry.
2016-08-17 20:44 DEBUG filesystem test Checking if /home/jamie/flexget-test/.test-config-lock qualifies to be added as an entry.
2016-08-17 20:44 DEBUG filesystem test Checking if /home/jamie/flexget-test/flexget.log qualifies to be added as an entry.
2016-08-17 20:44 DEBUG filesystem test Checking if /home/jamie/flexget-test/test-config.sqlite qualifies to be added as an entry.
2016-08-17 20:44 DEBUG backlog test 0 entries purged from backlog
2016-08-17 20:44 VERBOSE details test Produced 2 entries.
2016-08-17 20:44 VERBOSE task test ACCEPTED: `foo` by accept_all plugin
2016-08-17 20:44 VERBOSE task test ACCEPTED: `foo` by accept_all plugin
2016-08-17 20:44 DEBUG urlrewriter test Checking 2 entries
2016-08-17 20:44 VERBOSE details test Summary - Accepted: 2 (Rejected: 0 Undecided: 0 Failed: 0)
2016-08-17 20:44 INFO move test Would move `/home/jamie/flexget-test/foo/foo.foo` to `/home/jamie/flexget-test/moved/foo.foo`
2016-08-17 20:44 INFO move test Would also move `/home/jamie/flexget-test/foo/foo.bar` to `/home/jamie/flexget-test/moved/foo.bar`
2016-08-17 20:44 INFO move test Would move `/home/jamie/flexget-test/foo[bar]/foo.foo` to `/home/jamie/flexget-test/moved/foo.foo`
2016-08-17 20:44 DEBUG seen test Learned 'foo' (field: title, local: 0)
2016-08-17 20:44 DEBUG seen test Learned 'file:///home/jamie/flexget-test/foo/foo.foo' (field: url, local: 0)
2016-08-17 20:44 DEBUG seen test Learned 'foo' (field: title, local: 0)
2016-08-17 20:44 DEBUG seen test Learned 'file:///home/jamie/flexget-test/foo%5Bbar%5D/foo.foo' (field: url, local: 0)
2016-08-17 20:44 DEBUG util.simple_persistence test Flushing simple persistence for task test to db.
2016-08-17 20:44 DEBUG task_queue task queue shut down
2016-08-17 20:44 INFO ipc.rpyc listener closed
2016-08-17 20:44 INFO ipc.rpyc server has terminated
2016-08-17 20:44 DEBUG util.simple_persistence Flushing simple persistence for task None to db.
2016-08-17 20:44 DEBUG manager Shutting down
2016-08-17 20:44 INFO manager Removed test database
2016-08-17 20:44 DEBUG manager Removed /home/jamie/flexget-test/.test-config-lock
Additional information:
- Flexget Version: 2.2.22
- Python Version: 2.7.12
- Installation method: pip
- OS and version: Archlinux 4.7.0-1
Reactions are currently unavailable