Watcher3 icon indicating copy to clipboard operation
Watcher3 copied to clipboard

Quality parsing - Unknown source incorrectly labelled

Open iskarian opened this issue 8 years ago • 2 comments

In core/searcher.py, in get_source, unknown sources are incorrectly labelled with the last source in the loop instead of the resolution. It looks like line 423,

src = 'Unknown-{}'.format(source, resolution)

should be

src = 'Unknown-{}'.format(resolution)

iskarian avatar Aug 15 '17 04:08 iskarian

Corrected in 99252dc.

It doesn't really affect anything since Unknown sources are completely ignored anyway, but its always good to have everything clean and neat.

nosmokingbandit avatar Aug 16 '17 02:08 nosmokingbandit

I found it while I was troubleshooting a separate issue where non-scene formatting on a tracker (and its files) made it so that Watcher was unable to identify the quality (e.g. BD 1080p instead of 1080p-BluRay). In library.py, starting line 558:

qual = titledata.pop('quality', None)
for source, aliases in core.CONFIG['Quality']['Aliases'].items():
    if any(a.lower() == qual.lower() for a in aliases):
        titledata['source'] = source
        break

throws an exception at qual.lower() when no quality was parsed.

iskarian avatar Aug 16 '17 03:08 iskarian