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

Keep orignal folder name when movie is moved / indexer priority / sort results #212

Open
Obscurax opened this issue Feb 15, 2018 · 18 comments

Comments

@Obscurax
Copy link

Obscurax commented Feb 15, 2018

I have some thoughts to enhance Watcher to make it even better.
I love the simplicity and speed of watcher!

  1. I would to keep the original folder name when moving a movie with post processing.
    Is this possible? I disabled to rename the movie but there is no option to keep the folder name.

  2. It would be nice to give priority to certain indexers, like prefer usenet over torrents.

  3. I prefer to select the best release according to my needs. The search function works great but the sorting of the results could be better. Sorting on name, date posted, size, indexer would be a vast improvement. Also the window providing the search results is quite small making it hard to navigate when a lot of releases are found.

  4. An easier way to 'Hide Finished movies in library ', now we have to navigate to the settings to enable/disable this. It would be nice to be able to do this from the gui.

Thanks.

nosmokingbandit added a commit that referenced this issue Feb 24, 2018
Uses immediate parent directory of movie file for value.
nosmokingbandit added a commit that referenced this issue Feb 24, 2018
User can choose to prefer usenet or torrent releases

Releases are sorted by score, source preference (usenet/torrent), size (asc/desc)
@nosmokingbandit
Copy link
Owner

  1. cf22102

Uses the directory that is the immediate parent of the actual movie file. This way it doesn't use obscured folder names from nzbs.

  1. 960cc33

In settings/search you can prefer Torrent, Usenet, or neither.

  1. Probably not going to happen. Automation is the goal and adding more manual features isn't a good use of time.

  2. I thought about this a while ago then completely forgot about it. I'll put it on the list.

@Obscurax
Copy link
Author

  1. Am I doing this correctly?
    afbeelding

This isn't working, here is the relevant part of the log file:

INFO [2018-02-24 15:03:44,994] core.postprocessing.default.48: #################################
INFO [2018-02-24 15:03:44,994] core.postprocessing.default.49: Post-processing request received.
INFO [2018-02-24 15:03:44,994] core.postprocessing.default.50: #################################
INFO [2018-02-24 15:03:44,994] core.postprocessing.get_movie_file.134: Finding movie file.
INFO [2018-02-24 15:03:45,010] core.postprocessing.get_movie_file.159: Largest file in directory \\kratos\dump\Watcher\The.Square.2017.1080p.BluRay.x264-PSYCHD is \32fa1e699619462ebf990caf95bfa536.mkv, processing this file.
INFO [2018-02-24 15:03:45,010] core.postprocessing.default.82: Gathering release information.
INFO [2018-02-24 15:03:45,010] core.postprocessing.get_movie_info.181: Searching local database for guid.
INFO [2018-02-24 15:03:45,026] core.postprocessing.get_movie_info.184: Local release info found by guid.
INFO [2018-02-24 15:03:45,026] core.postprocessing.get_movie_info.214: Searching local database by imdbid.
INFO [2018-02-24 15:03:45,026] core.postprocessing.get_movie_info.217: Movie data found locally by imdbid.
INFO [2018-02-24 15:03:45,026] core.library.from_file.381: Gathering metadata for \\kratos\dump\Watcher\The.Square.2017.1080p.BluRay.x264-PSYCHD\32fa1e699619462ebf990caf95bfa536.mkv.
INFO [2018-02-24 15:03:45,026] core.library.parse_filename.503: Parsing directory name for movie information: The.Square.2017.1080p.BluRay.x264-PSYCHD.
INFO [2018-02-24 15:03:45,041] core.library.parse_filename.511: Found {'year': 2017, 'resolution': '1080p', 'quality': 'BluRay', 'codec': 'x264', 'group': 'PSYCHD', 'title': 'The Square', 'release_name': 'The.Square.2017.1080p.BluRay.x264-PSYCHD'} in filename.
INFO [2018-02-24 15:03:45,041] core.library.parse_media.450: Parsing codec data from file \\kratos\dump\Watcher\The.Square.2017.1080p.BluRay.x264-PSYCHD\32fa1e699619462ebf990caf95bfa536.mkv.
INFO [2018-02-24 15:03:45,072] core.postprocessing.default.91: Post-processing as Complete.
INFO [2018-02-24 15:03:45,072] core.postprocessing.complete.373: Marking guid as Finished.
INFO [2018-02-24 15:03:45,072] core.library.searchresults.821: Marking guid http://127.0.0.1:5076/nzbhydra2/getnzb/api/6173064352171190621?apikey=ab00y7qye6u84lx4eqhwd0yh1wp423 as Finished.
INFO [2018-02-24 15:03:45,072] core.library.searchresults.826: Marking http://127.0.0.1:5076/nzbhydra2/getnzb/api/6173064352171190621?apikey=ab00y7qye6u84lx4eqhwd0yh1wp423 as Finished in SEARCHRESULTS.
INFO [2018-02-24 15:03:45,135] core.library.searchresults.831: Successfully marked http://127.0.0.1:5076/nzbhydra2/getnzb/api/6173064352171190621?apikey=ab00y7qye6u84lx4eqhwd0yh1wp423 as Finished in SEARCHRESULTS.
INFO [2018-02-24 15:03:45,135] core.library.markedresults.873: Marking http://127.0.0.1:5076/nzbhydra2/getnzb/api/6173064352171190621?apikey=ab00y7qye6u84lx4eqhwd0yh1wp423 as Finished in MARKEDRESULTS.
INFO [2018-02-24 15:03:45,197] core.library.markedresults.878: Successfully marked http://127.0.0.1:5076/nzbhydra2/getnzb/api/6173064352171190621?apikey=ab00y7qye6u84lx4eqhwd0yh1wp423 as Finished in MARKEDRESULTS.
INFO [2018-02-24 15:03:45,213] core.postprocessing.complete.414: Setting MOVIE status.
INFO [2018-02-24 15:03:45,213] core.library.movie_status.907: Determining appropriate status for movie tt4995790.
INFO [2018-02-24 15:03:45,213] core.library.movie_status.944: Setting MOVIES tt4995790 status to Finished.
INFO [2018-02-24 15:03:45,354] core.library.convert_to_db.554: Converting movie metadata to database structure for The Square.
INFO [2018-02-24 15:03:45,354] core.postprocessing.mover.743: Moving \\kratos\dump\Watcher\The.Square.2017.1080p.BluRay.x264-PSYCHD\32fa1e699619462ebf990caf95bfa536.mkv to \\kratos\films\# recent\
INFO [2018-02-24 15:09:04,073] core.postprocessing.mover.763: Moving additional files with extensions srt, nfo.
INFO [2018-02-24 15:09:04,089] core.postprocessing.complete.451: Renamer disabled.
ERROR [2018-02-24 15:09:04,198] cherrypy.error.933511823432.error.219: [24/Feb/2018:15:09:04] HTTP 
Traceback (most recent call last):
  File "C:\Program Files (x86)\Watcher\lib\cherrypy\_cprequest.py", line 670, in respond
    response.body = self.handler()
  File "C:\Program Files (x86)\Watcher\lib\cherrypy\lib\encoding.py", line 220, in __call__
    self.body = self.oldhandler(*args, **kwargs)
  File "C:\Program Files (x86)\Watcher\lib\cherrypy\lib\jsontools.py", line 61, in json_handler
    value = cherrypy.serving.request._json_inner_handler(*args, **kwargs)
  File "C:\Program Files (x86)\Watcher\lib\cherrypy\_cpdispatch.py", line 60, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "C:\Program Files (x86)\Watcher\core\postprocessing.py", line 93, in default
    response = self.complete(data)
  File "C:\Program Files (x86)\Watcher\core\postprocessing.py", line 472, in complete
    if config['moverenabled'] is False or result['tasks']['mover']['response'] is False:
KeyError: 'response'
INFO [2018-02-24 15:09:04,261] cherrypy.error.933511823432.error.219: [24/Feb/2018:15:09:04] HTTP 
Request Headers:
  Remote-Addr: 127.0.0.1
  ACCEPT-ENCODING: identity
  HOST: 127.0.0.1:9090
  CONNECTION: close
  USER-AGENT: Mozilla/5.0
  Content-Type: application/x-www-form-urlencoded
  Content-Length: 273


  1. & 4) Great 👍

  2. I agree but think about people with limited internet connection. I can't afford to get a wrong/lesser quality release or I might go over my monthly limit.

@nosmokingbandit
Copy link
Owner

Just a bug that only affects that specific combination of options.

Fixed in 75aa0d1

@Obscurax
Copy link
Author

Updated but not yet working entirely:

The file is getting moved without a folder.

Log:

INFO [2018-02-25 11:00:49,537] core.postprocessing.default.48: #################################
INFO [2018-02-25 11:00:49,537] core.postprocessing.default.49: Post-processing request received.
INFO [2018-02-25 11:00:49,537] core.postprocessing.default.50: #################################
INFO [2018-02-25 11:00:49,537] core.postprocessing.get_movie_file.134: Finding movie file.
INFO [2018-02-25 11:00:49,553] core.postprocessing.get_movie_file.159: Largest file in directory \\kratos\dump\Watcher\Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG is \Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG.mkv, processing this file.
INFO [2018-02-25 11:00:49,553] core.postprocessing.default.82: Gathering release information.
INFO [2018-02-25 11:00:49,553] core.postprocessing.get_movie_info.181: Searching local database for guid.
INFO [2018-02-25 11:00:49,553] core.postprocessing.get_movie_info.184: Local release info found by guid.
INFO [2018-02-25 11:00:49,553] core.postprocessing.get_movie_info.214: Searching local database by imdbid.
INFO [2018-02-25 11:00:49,553] core.postprocessing.get_movie_info.217: Movie data found locally by imdbid.
INFO [2018-02-25 11:00:49,553] core.library.from_file.381: Gathering metadata for \\kratos\dump\Watcher\Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG\Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG.mkv.
INFO [2018-02-25 11:00:49,553] core.library.parse_filename.503: Parsing directory name for movie information: Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG.
INFO [2018-02-25 11:00:49,568] core.library.parse_filename.511: Found {'year': 2018, 'resolution': '1080p', 'quality': 'WEB-DL', 'codec': 'H264', 'audio': 'DD5.1', 'group': 'CMRG', 'title': 'Mom  Dad', 'release_name': 'Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG'} in filename.
INFO [2018-02-25 11:00:49,568] core.library.parse_media.450: Parsing codec data from file \\kratos\dump\Watcher\Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG\Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG.mkv.
ERROR [2018-02-25 11:00:49,584] core.library.parse_media.459: Unable to parse metadata from file header.
Traceback (most recent call last):
  File "C:\Program Files (x86)\Watcher\lib\hachoir\field\fake_array.py", line 63, in __getitem__
    value = self._cache[index]
KeyError: 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\Watcher\lib\hachoir\field\generic_field_set.py", line 332, in _feedUntil
    field = next(self._field_generator)
  File "C:\Program Files (x86)\Watcher\lib\hachoir\parser\container\mkv.py", line 632, in createFields
    yield EBML(self, {0x18538067: ('Segment[]', segment)})
  File "C:\Program Files (x86)\Watcher\lib\hachoir\parser\container\mkv.py", line 560, in __init__
    id = self['id'].value
  File "C:\Program Files (x86)\Watcher\lib\hachoir\field\field.py", line 230, in __getitem__
    return self.getField(key, False)
  File "C:\Program Files (x86)\Watcher\lib\hachoir\field\generic_field_set.py", line 233, in getField
    return Field.getField(self, key, const)
  File "C:\Program Files (x86)\Watcher\lib\hachoir\field\field.py", line 222, in getField
    field = current._getField(part, const)
  File "C:\Program Files (x86)\Watcher\lib\hachoir\field\generic_field_set.py", line 221, in _getField
    field = self._feedUntil(name)
  File "C:\Program Files (x86)\Watcher\lib\hachoir\field\generic_field_set.py", line 332, in _feedUntil
    field = next(self._field_generator)
  File "C:\Program Files (x86)\Watcher\lib\hachoir\parser\container\mkv.py", line 584, in createFields
    yield RawInt(self, 'id')
  File "C:\Program Files (x86)\Watcher\lib\hachoir\parser\container\mkv.py", line 32, in __init__
    raise ParserError('Invalid integer length!')
hachoir.field.basic_field_set.ParserError: Invalid integer length!

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\Watcher\lib\hachoir\metadata\metadata.py", line 328, in extractMetadata
    metadata.extract(parser)
  File "C:\Program Files (x86)\Watcher\lib\hachoir\metadata\video.py", line 29, in extract
    for segment in mkv.array("Segment"):
  File "C:\Program Files (x86)\Watcher\lib\hachoir\field\fake_array.py", line 80, in __iter__
    yield self[index]
  File "C:\Program Files (x86)\Watcher\lib\hachoir\field\fake_array.py", line 66, in __getitem__
    value = self.fieldset[self._format % index]
  File "C:\Program Files (x86)\Watcher\lib\hachoir\field\field.py", line 230, in __getitem__
    return self.getField(key, False)
  File "C:\Program Files (x86)\Watcher\lib\hachoir\field\generic_field_set.py", line 233, in getField
    return Field.getField(self, key, const)
  File "C:\Program Files (x86)\Watcher\lib\hachoir\field\field.py", line 222, in getField
    field = current._getField(part, const)
  File "C:\Program Files (x86)\Watcher\lib\hachoir\field\generic_field_set.py", line 221, in _getField
    field = self._feedUntil(name)
  File "C:\Program Files (x86)\Watcher\lib\hachoir\field\generic_field_set.py", line 339, in _feedUntil
    if self._fixFeedError(err) is False:
  File "C:\Program Files (x86)\Watcher\lib\hachoir\field\generic_field_set.py", line 318, in _fixFeedError
    self.warning(makeUnicode(exception))
  File "C:\Program Files (x86)\Watcher\lib\hachoir\core\log.py", line 148, in warning
    log.newMessage(Log.LOG_WARN, text, self)
  File "C:\Program Files (x86)\Watcher\lib\hachoir\core\log.py", line 102, in newMessage
    sys.stdout.flush()
AttributeError: 'NoneType' object has no attribute 'flush'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files (x86)\Watcher\core\library.py", line 454, in parse_media
    extractor = extractMetadata(parser)
  File "C:\Program Files (x86)\Watcher\lib\hachoir\metadata\metadata.py", line 330, in extractMetadata
    error("Error during metadata extraction: %s" % str(err))
  File "C:\Program Files (x86)\Watcher\lib\hachoir\core\log.py", line 133, in error
    self.newMessage(Log.LOG_ERROR, text)
  File "C:\Program Files (x86)\Watcher\lib\hachoir\core\log.py", line 102, in newMessage
    sys.stdout.flush()
AttributeError: 'NoneType' object has no attribute 'flush'
INFO [2018-02-25 11:00:49,600] core.postprocessing.default.91: Post-processing as Complete.
INFO [2018-02-25 11:00:49,600] core.postprocessing.complete.373: Marking guid as Finished.
INFO [2018-02-25 11:00:49,600] core.library.searchresults.821: Marking guid http://127.0.0.1:5076/nzbhydra2/getnzb/api/4154664349795576937?apikey=ab00y7qye6u84lx4eqhwd0yh1wp423 as Finished.
INFO [2018-02-25 11:00:49,600] core.library.searchresults.826: Marking http://127.0.0.1:5076/nzbhydra2/getnzb/api/4154664349795576937?apikey=ab00y7qye6u84lx4eqhwd0yh1wp423 as Finished in SEARCHRESULTS.
INFO [2018-02-25 11:00:49,662] core.library.searchresults.831: Successfully marked http://127.0.0.1:5076/nzbhydra2/getnzb/api/4154664349795576937?apikey=ab00y7qye6u84lx4eqhwd0yh1wp423 as Finished in SEARCHRESULTS.
INFO [2018-02-25 11:00:49,662] core.library.markedresults.873: Marking http://127.0.0.1:5076/nzbhydra2/getnzb/api/4154664349795576937?apikey=ab00y7qye6u84lx4eqhwd0yh1wp423 as Finished in MARKEDRESULTS.
INFO [2018-02-25 11:00:49,725] core.library.markedresults.878: Successfully marked http://127.0.0.1:5076/nzbhydra2/getnzb/api/4154664349795576937?apikey=ab00y7qye6u84lx4eqhwd0yh1wp423 as Finished in MARKEDRESULTS.
INFO [2018-02-25 11:00:49,725] core.postprocessing.complete.414: Setting MOVIE status.
INFO [2018-02-25 11:00:49,725] core.library.movie_status.907: Determining appropriate status for movie tt5462326.
INFO [2018-02-25 11:00:49,740] core.library.movie_status.944: Setting MOVIES tt5462326 status to Finished.
INFO [2018-02-25 11:00:49,865] core.library.convert_to_db.554: Converting movie metadata to database structure for Mom and Dad.
INFO [2018-02-25 11:00:49,865] core.postprocessing.mover.743: Moving \\kratos\dump\Watcher\Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG\Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG.mkv to \\kratos\films\# recent\
INFO [2018-02-25 11:02:26,949] core.postprocessing.mover.763: Moving additional files with extensions srt, nfo.
INFO [2018-02-25 11:02:26,980] core.postprocessing.complete.451: Renamer disabled.
INFO [2018-02-25 11:02:27,480] core.postprocessing.default.112: {'status': 'finished', 'data': {'guid': 'http://127.0.0.1:5076/nzbhydra2/getnzb/api/4154664349795576937?apikey=ab00y7qye6u84lx4eqhwd0yh1wp423', 'path': '\\\\kratos\\dump\\Watcher\\Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG', 'apikey': '5f5f4c6787e9183104ef5daec74a28f2', 'downloadid': '1063', 'mode': 'complete', 'original_file': '\\\\kratos\\dump\\Watcher\\Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG\\Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG.mkv', 'parent_dir': 'Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG', 'added_date': '2018-02-25', 'imdbid': 'tt5462326', 'title': 'Mom and Dad', 'year': '2018', 'poster': None, 'plot': 'A teenage girl and her little brother must survive a wild 24 hours during which a mass hysteria of unknown origin causes parents to turn violently on their own kids.', 'url': 'https://www.themoviedb.org/movie/401561', 'score': '5.6', 'release_date': '2018-01-19', 'rated': None, 'status': 'Snatched', 'predb_backlog': None, 'quality': 'Default', 'finished_date': '2018-02-25', 'finished_score': 660, 'finished_file': '\\\\kratos\\films\\# recent\\Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG.mkv', 'tmdbid': '401561', 'alternative_titles': '', 'media_release_date': '2018-02-20', 'origin': 'Search', 'sort_title': 'Mom and Dad', 'resolution': 'WebDL-1080P', 'videocodec': 'H264', 'audiocodec': 'DD5.1', 'releasegroup': 'CMRG', 'edition': '', 'release_name': 'Mom..Dad.2018.1080p.WEB-DL.DD5.1.H264-CMRG'}, 'tasks': {'http://127.0.0.1:5076/nzbhydra2/getnzb/api/4154664349795576937?apikey=ab00y7qye6u84lx4eqhwd0yh1wp423': {'update_SEARCHRESULTS': True, 'update_MARKEDRESULTS': True}, 'update_movie_status': 'Finished', 'mover': {'enabled': True, 'response': True}, 'renamer': {'enabled': False}, 'cleanup': {'enabled': True, 'response': True}}}
INFO [2018-02-25 11:02:27,480] core.postprocessing.default.117: #################################
INFO [2018-02-25 11:02:27,480] core.postprocessing.default.118: Post-processing complete. 

@nosmokingbandit
Copy link
Owner

If you haven't changed your settings since the first image you are getting correct results. \\kratos\films\# recent is probably supposed to be \\kratos\films\# recent\{parent_dir} as per the commit message.

As far as the error messages in your log... that just happens sometimes with hachoir (the library I use to parse data from the movie file itself), but doesn't break anything.

@Obscurax
Copy link
Author

Obscurax commented Feb 26, 2018

Oh yes my bad. Moving the movie file works now.

But something weird happens to other files, I selected to keep nfo and srt files.
A PP script to download English and Dutch subs runs before the watcher PP script runs.

INFO [2018-02-26 09:49:06,815] core.postprocessing.mover.743: Moving \\kratos\dump\Watcher\Loving.Vincent.2017.LIMITED.1080p.BluRay.x264-GECKOS\Loving.Vincent.2017.1080p.BluRay.x264-GECKOS.mkv to \\kratos\films\# recent\Loving.Vincent.2017.LIMITED.1080p.BluRay.x264-GECKOS\
INFO [2018-02-26 09:53:30,613] core.postprocessing.mover.763: Moving additional files with extensions srt, nfo.
INFO [2018-02-26 09:53:30,613] core.postprocessing.mover.781: Moving \\kratos\dump\Watcher\Loving.Vincent.2017.LIMITED.1080p.BluRay.x264-GECKOS\Loving.Vincent.2017.1080p.BluRay.x264-GECKOS.en.srt to \\kratos\films\# recent\Loving.Vincent.2017.LIMITED.1080p.BluRay.x264-GECKOS\.srt
INFO [2018-02-26 09:53:30,691] core.postprocessing.complete.451: Renamer disabled.

@nosmokingbandit
Copy link
Owner

nosmokingbandit commented Mar 3, 2018 via email

nosmokingbandit added a commit that referenced this issue Mar 3, 2018
Still compliles the name in case it is needed (prevents compiling for every file), but is ignored and original name is used if renamer is disabled.
@Obscurax
Copy link
Author

Obscurax commented Mar 3, 2018

EDIT: It was a user error. There was a space in front of nfo. Hence the file wasn't moved.

And great job on adding the toggle to hide the finished moving! Thanks.

@nosmokingbandit
Copy link
Owner

6f37f1f

I haven't pushed that yet, but it trims all whitespace when iterating over file extensions so you need not worry about extra spaces in the future.

@Obscurax
Copy link
Author

Obscurax commented Jun 19, 2018

Did you stop supporting the {parent_dir} tag? Folders and movies are being renamed to "{parent_dir}".

log:

INFO [2018-06-19 09:40:17,413] core.postprocessing.default.156: #################################
INFO [2018-06-19 09:40:17,413] core.postprocessing.default.157: Post-processing request received.
INFO [2018-06-19 09:40:17,413] core.postprocessing.default.158: #################################
INFO [2018-06-19 09:40:17,413] core.postprocessing.get_movie_file.235: Finding movie file.
INFO [2018-06-19 09:40:17,428] core.postprocessing.get_movie_file.261: Largest file in directory \\kratos\dump\Watcher\Ready.Player.One.2018.1080p.WEB-DL.X264.AC3-EVO is \Ready Player One.2018.1080p.WEB-DL.X264.AC3-EVO.mkv, processing this file.
INFO [2018-06-19 09:40:17,428] core.postprocessing.default.185: Gathering release information.
INFO [2018-06-19 09:40:17,428] core.postprocessing.get_movie_info.283: Searching local database for guid.
INFO [2018-06-19 09:40:17,428] core.postprocessing.get_movie_info.286: Local release info found by guid.
INFO [2018-06-19 09:40:17,428] core.postprocessing.get_movie_info.316: Searching local database by imdbid.
INFO [2018-06-19 09:40:17,428] core.postprocessing.get_movie_info.319: Movie data found locally by imdbid.
INFO [2018-06-19 09:40:17,428] core.library.from_file.380: Gathering metadata for \\kratos\dump\Watcher\Ready.Player.One.2018.1080p.WEB-DL.X264.AC3-EVO\Ready Player One.2018.1080p.WEB-DL.X264.AC3-EVO.mkv.
INFO [2018-06-19 09:40:17,428] core.library.parse_filename.504: Parsing directory name for movie information: Ready.Player.One.2018.1080p.WEB-DL.X264.AC3-EVO.
INFO [2018-06-19 09:40:17,428] core.library.parse_filename.512: Found {'year': 2018, 'resolution': '1080p', 'quality': 'WEB-DL', 'codec': 'X264', 'audio': 'AC3', 'group': 'EVO', 'title': 'Ready Player One', 'release_name': 'Ready.Player.One.2018.1080p.WEB-DL.X264.AC3-EVO'} in filename.
INFO [2018-06-19 09:40:17,428] core.library.parse_media.450: Parsing codec data from file \\kratos\dump\Watcher\Ready.Player.One.2018.1080p.WEB-DL.X264.AC3-EVO\Ready Player One.2018.1080p.WEB-DL.X264.AC3-EVO.mkv.
INFO [2018-06-19 09:40:17,444] core.postprocessing.default.193: Post-processing as Complete.
INFO [2018-06-19 09:40:17,444] core.postprocessing.complete.477: Marking guid as Finished.
INFO [2018-06-19 09:40:17,444] core.library.searchresults.884: Marking guid http://127.0.0.1:5076/nzbhydra2/getnzb/api/xxx as Finished.
INFO [2018-06-19 09:40:17,444] core.library.searchresults.889: Marking http://127.0.0.1:5076/nzbhydra2/getnzb/api/xxx as Finished in SEARCHRESULTS.
INFO [2018-06-19 09:40:17,460] core.library.searchresults.894: Successfully marked http://127.0.0.1:5076/nzbhydra2/getnzb/api/xxx as Finished in SEARCHRESULTS.
INFO [2018-06-19 09:40:17,460] core.library.markedresults.937: Marking http://127.0.0.1:5076/nzbhydra2/getnzb/api/xxx as Finished in MARKEDRESULTS.
INFO [2018-06-19 09:40:17,475] core.library.markedresults.942: Successfully marked http://127.0.0.1:5076/nzbhydra2/getnzb/api/xxx as Finished in MARKEDRESULTS.
INFO [2018-06-19 09:40:17,475] core.postprocessing.complete.518: Setting MOVIE status.
INFO [2018-06-19 09:40:17,475] core.library.movie_status.972: Determining appropriate status for movie tt1677720.
INFO [2018-06-19 09:40:17,475] core.library.movie_status.1009: Setting MOVIES tt1677720 status to Finished.
INFO [2018-06-19 09:40:17,491] core.library.convert_to_db.556: Converting movie metadata to database structure for Ready Player One.
INFO [2018-06-19 09:40:17,491] core.postprocessing.mover.777: ## Moving Downloaded Files
INFO [2018-06-19 09:40:17,616] core.postprocessing.mover.849: Moving \\kratos\dump\Watcher\Ready.Player.One.2018.1080p.WEB-DL.X264.AC3-EVO\Ready Player One.2018.1080p.WEB-DL.X264.AC3-EVO.mkv to \\kratos\films\# recent\{parent_dir}\
INFO [2018-06-19 09:42:14,100] core.postprocessing.mover.869: Moving additional files with extensions nfo.
INFO [2018-06-19 09:42:14,116] core.postprocessing.renamer.664: ## Renaming Downloaded Files
INFO [2018-06-19 09:42:14,116] core.postprocessing.renamer.693: Renaming Ready Player One.2018.1080p.WEB-DL.X264.AC3-EVO.mkv to {parent_dir}.mkv
INFO [2018-06-19 09:42:14,632] core.postprocessing.default.218: #################################
INFO [2018-06-19 09:42:14,632] core.postprocessing.default.219: Post-processing complete.
INFO [2018-06-19 09:42:14,632] core.postprocessing.default.220: {

nosmokingbandit added a commit that referenced this issue Jun 20, 2018
Turns out it has a use after all.
@nosmokingbandit
Copy link
Owner

A few updates ago I was cleaning up the postprocessing script and saw that 'parent_dir' wasn't referenced anywhere else in the project so I removed it. Turns out it has a purpose after all. I restored it in commit 90d8eb6.

@Obscurax
Copy link
Author

Thanks for restoring it. I see it's also not shown in the popup with examples in the PP menu.
The reason I like to keep the original names is for automatic subtitle grabbing.

@nosmokingbandit
Copy link
Owner

nosmokingbandit commented Jun 21, 2018

There are a ton of fields you can use so I just put the most common options in the popup.

The full list is everything under data in the response section in the wiki:
https://github.com/nosmokingbandit/Watcher3/wiki/Post-Processing#creating-a-post-processing-request

@Obscurax
Copy link
Author

Files are not being moved properly:

 [2018-06-27 12:24:50,376] core.postprocessing.default.156: #################################
INFO [2018-06-27 12:24:50,376] core.postprocessing.default.157: Post-processing request received.
INFO [2018-06-27 12:24:50,376] core.postprocessing.default.158: #################################
INFO [2018-06-27 12:24:50,376] core.postprocessing.get_movie_file.237: Finding movie file.
INFO [2018-06-27 12:24:50,408] core.postprocessing.get_movie_file.263: Largest file in directory \\kratos\dump\Watcher\Isle.of.Dogs.2018.1080p.AMZN.WEB-DL.DD5.1.H.264-SiGMA is \Isle.of.Dogs.2018.1080p.AMZN.WEB-DL.DD5.1.H.264-SiGMA.mkv, processing this file.
INFO [2018-06-27 12:24:50,408] core.postprocessing.default.187: Gathering release information.
INFO [2018-06-27 12:24:50,408] core.postprocessing.get_movie_info.285: Searching local database for guid.
INFO [2018-06-27 12:24:50,408] core.postprocessing.get_movie_info.288: Local release info found by guid.
INFO [2018-06-27 12:24:50,408] core.postprocessing.get_movie_info.318: Searching local database by imdbid.
INFO [2018-06-27 12:24:50,408] core.postprocessing.get_movie_info.321: Movie data found locally by imdbid.
INFO [2018-06-27 12:24:50,408] core.library.from_file.380: Gathering metadata for \\kratos\dump\Watcher\Isle.of.Dogs.2018.1080p.AMZN.WEB-DL.DD5.1.H.264-SiGMA\Isle.of.Dogs.2018.1080p.AMZN.WEB-DL.DD5.1.H.264-SiGMA.mkv.
INFO [2018-06-27 12:24:50,408] core.library.parse_filename.504: Parsing directory name for movie information: Isle.of.Dogs.2018.1080p.AMZN.WEB-DL.DD5.1.H.264-SiGMA.
INFO [2018-06-27 12:24:50,423] core.library.parse_filename.512: Found {'year': 2018, 'resolution': '1080p', 'quality': 'WEB-DL', 'codec': 'H.264', 'audio': 'DD5.1', 'group': 'SiGMA', 'title': 'Isle of Dogs', 'release_name': 'Isle.of.Dogs.2018.1080p.AMZN.WEB-DL.DD5.1.H.264-SiGMA'} in filename.
INFO [2018-06-27 12:24:50,423] core.library.parse_media.450: Parsing codec data from file \\kratos\dump\Watcher\Isle.of.Dogs.2018.1080p.AMZN.WEB-DL.DD5.1.H.264-SiGMA\Isle.of.Dogs.2018.1080p.AMZN.WEB-DL.DD5.1.H.264-SiGMA.mkv.
INFO [2018-06-27 12:24:50,439] core.postprocessing.default.195: Post-processing as Complete.
INFO [2018-06-27 12:24:50,439] core.postprocessing.complete.479: Marking guid as Finished.
INFO [2018-06-27 12:24:50,439] core.library.searchresults.884: Marking guid http://127.0.0.1:5076/nzbhydra2/getnzb/api/xxx as Finished.
INFO [2018-06-27 12:24:50,439] core.library.searchresults.889: Marking http://127.0.0.1:5076/nzbhydra2/getnzb/api/xxx as Finished in SEARCHRESULTS.
INFO [2018-06-27 12:24:50,439] core.library.searchresults.894: Successfully marked http://127.0.0.1:5076/nzbhydra2/getnzb/api/xxx as Finished in SEARCHRESULTS.
INFO [2018-06-27 12:24:50,439] core.library.markedresults.937: Marking http://127.0.0.1:5076/nzbhydra2/getnzb/api/xxx as Finished in MARKEDRESULTS.
INFO [2018-06-27 12:24:50,454] core.library.markedresults.942: Successfully marked http://127.0.0.1:5076/nzbhydra2/getnzb/api/xxx as Finished in MARKEDRESULTS.
INFO [2018-06-27 12:24:50,454] core.postprocessing.complete.520: Setting MOVIE status.
INFO [2018-06-27 12:24:50,454] core.library.movie_status.972: Determining appropriate status for movie tt5104604.
INFO [2018-06-27 12:24:50,454] core.library.movie_status.1009: Setting MOVIES tt5104604 status to Finished.
INFO [2018-06-27 12:24:50,470] core.library.convert_to_db.556: Converting movie metadata to database structure for Isle of Dogs.
INFO [2018-06-27 12:24:50,486] core.postprocessing.mover.779: ## Moving Downloaded Files
INFO [2018-06-27 12:24:50,517] core.postprocessing.mover.851: Moving \\kratos\dump\Watcher\Isle.of.Dogs.2018.1080p.AMZN.WEB-DL.DD5.1.H.264-SiGMA\Isle.of.Dogs.2018.1080p.AMZN.WEB-DL.DD5.1.H.264-SiGMA.mkv to \\kratos\films\# recent\
INFO [2018-06-27 12:26:38,080] core.postprocessing.mover.871: Moving additional files with extensions nfo.
INFO [2018-06-27 12:26:38,095] core.postprocessing.renamer.666: ## Renaming Downloaded Files
INFO [2018-06-27 12:26:38,095] core.postprocessing.renamer.687: New file name would be blank. Cancelling renamer.
INFO [2018-06-27 12:26:38,455] core.postprocessing.default.220: #################################
INFO [2018-06-27 12:26:38,455] core.postprocessing.default.221: Post-processing complete.
INFO [2018-06-27 12:26:38,455] core.postprocessing.default.222: {
  "data": {
    "added_date": "2018-06-27",
    "alternative_titles": "",
    "apikey": "5f5f4c6787e9183104ef5daec74a28f2",
    "audiocodec": "EAC3",
    "downloadid": "1268",
    "edition": "",
    "filters": "{\"preferredwords\": \"\", \"requiredwords\": \"\", \"ignoredwords\": \"\"}",
    "finished_date": "2018-06-27",
    "finished_file": "\\\\kratos\\films\\# recent\\Isle.of.Dogs.2018.1080p.AMZN.WEB-DL.DD5.1.H.264-SiGMA.mkv",
    "finished_score": 660,
    "guid": "http://127.0.0.1:5076/nzbhydra2/getnzb/api/xxx",
    "imdbid": "tt5104604",
    "media_release_date": null,
    "mode": "complete",
    "origin": "Search",
    "original_file": "\\\\kratos\\dump\\Watcher\\Isle.of.Dogs.2018.1080p.AMZN.WEB-DL.DD5.1.H.264-SiGMA\\Isle.of.Dogs.2018.1080p.AMZN.WEB-DL.DD5.1.H.264-SiGMA.mkv",
    "parent_dir": "",
    "path": "\\\\kratos\\dump\\Watcher\\Isle.of.Dogs.2018.1080p.AMZN.WEB-DL.DD5.1.H.264-SiGMA",
    "plot": "In the future, an outbreak of canine flu leads the mayor of a Japanese city to banish all dogs to an island that's a garbage dump. The outcasts must soon embark on an epic journey when a 12-year-old boy arrives on the island to find his beloved pet.",
    "poster": null,
    "predb_backlog": null,
    "quality": "Default",
    "rated": null,
    "release_date": "2018-03-23",
    "release_name": "Isle.of.Dogs.2018.1080p.AMZN.WEB-DL.DD5.1.H.264-SiGMA",
    "releasegroup": "SiGMA",
    "resolution": "WebDL-1080P",
    "score": "7.9",
    "sort_title": "Isle of Dogs",
    "status": "Snatched",
    "title": "Isle of Dogs",
    "tmdbid": "399174",
    "url": "https://www.themoviedb.org/movie/399174",
    "videocodec": "MPEG4",
    "year": "2018"
  },
  "status": "finished",
  "tasks": {
    "cleanup": {
      "enabled": true,
      "response": true
    },
    "http://127.0.0.1:5076/nzbhydra2/getnzb/api/xxx": {
      "update_MARKEDRESULTS": true,
      "update_SEARCHRESULTS": true
    },
    "mover": {
      "enabled": true,
      "response": true
    },
    "renamer": {
      "enabled": true,
      "response": false
    },
    "update_movie_status": "Finished"
  }
}
INFO [2018-06-27 12:26:38,455] core.postprocessing.default.223: #################################

@nosmokingbandit
Copy link
Owner

nosmokingbandit commented Jun 28, 2018 via email

@Obscurax
Copy link
Author

Settings:

afbeelding

nosmokingbandit added a commit that referenced this issue Jul 1, 2018
Splling is really hard.
@nosmokingbandit
Copy link
Owner

Stupid typo, should be back to normal in
6746cab

@Obscurax
Copy link
Author

Obscurax commented Jul 3, 2018

Everything back to normal, thanks!

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