2016-05-25 02:53:03 +00:00
|
|
|
# Copyright 2016 Hardcoded Software (http://www.hardcoded.net)
|
|
|
|
#
|
|
|
|
# This software is licensed under the "GPLv3" License as described in the "LICENSE" file,
|
|
|
|
# which should be included with this package. The terms are also available at
|
2015-01-03 21:33:16 +00:00
|
|
|
# http://www.gnu.org/licenses/gpl-3.0.html
|
2009-10-23 14:35:51 +00:00
|
|
|
|
2016-05-25 02:53:03 +00:00
|
|
|
from hscommon.trans import tr
|
|
|
|
|
|
|
|
from core.scanner import Scanner as ScannerBase, ScanOption, ScanType
|
2009-10-23 14:35:51 +00:00
|
|
|
|
|
|
|
class ScannerME(ScannerBase):
|
|
|
|
@staticmethod
|
|
|
|
def _key_func(dupe):
|
2011-09-23 17:14:57 +00:00
|
|
|
return (-dupe.bitrate, -dupe.size)
|
2016-05-25 02:53:03 +00:00
|
|
|
|
2016-05-29 20:52:07 +00:00
|
|
|
@staticmethod
|
|
|
|
def get_scan_options():
|
2016-05-25 02:53:03 +00:00
|
|
|
return [
|
|
|
|
ScanOption(ScanType.Filename, tr("Filename")),
|
|
|
|
ScanOption(ScanType.Fields, tr("Filename - Fields")),
|
|
|
|
ScanOption(ScanType.FieldsNoOrder, tr("Filename - Fields (No Order)")),
|
|
|
|
ScanOption(ScanType.Tag, tr("Tags")),
|
|
|
|
ScanOption(ScanType.Contents, tr("Contents")),
|
|
|
|
]
|
|
|
|
|
|
|
|
|