use get_sort_name/get_sort_title
This commit is contained in:
parent
bb17fef613
commit
0b8b04234a
3 changed files with 3 additions and 4 deletions
|
|
@ -14,7 +14,6 @@ from django.db.models.signals import pre_delete
|
|||
|
||||
from ox.django import fields
|
||||
import ox
|
||||
from ox.normalize import canonicalTitle
|
||||
import chardet
|
||||
|
||||
from item import utils
|
||||
|
|
@ -79,7 +78,7 @@ class File(models.Model):
|
|||
def set_state(self):
|
||||
self.name = self.get_name()
|
||||
self.folder = self.get_folder()
|
||||
self.sort_name = utils.sort_string(canonicalTitle(self.name))
|
||||
self.sort_name = utils.sort_string(ox.get_sort_title(self.name))
|
||||
|
||||
if not os.path.splitext(self.name)[-1] in (
|
||||
'.srt', '.rar', '.sub', '.idx', '.txt', '.jpg', '.png', '.nfo') \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue