rename ICap to Cap (closes #1424)
This commit is contained in:
parent
51958135cb
commit
e025fb0b20
244 changed files with 679 additions and 679 deletions
|
|
@ -23,10 +23,10 @@ from datetime import timedelta
|
|||
|
||||
from .image import BaseImage
|
||||
from .base import Field, StringField, IntField, BaseObject
|
||||
from .file import ICapFile, BaseFile
|
||||
from .file import CapFile, BaseFile
|
||||
|
||||
|
||||
__all__ = ['BaseAudio', 'ICapAudio']
|
||||
__all__ = ['BaseAudio', 'CapAudio']
|
||||
|
||||
|
||||
def decode_id(decode_id):
|
||||
|
|
@ -106,7 +106,7 @@ class BaseAudio(BaseFile):
|
|||
return _id
|
||||
|
||||
|
||||
class ICapAudio(ICapFile):
|
||||
class CapAudio(CapFile):
|
||||
"""
|
||||
Audio file provider
|
||||
"""
|
||||
|
|
@ -124,7 +124,7 @@ class ICapAudio(ICapFile):
|
|||
else:
|
||||
return 'get_audio'
|
||||
|
||||
def search_audio(self, pattern, sortby=ICapFile.SEARCH_RELEVANCE):
|
||||
def search_audio(self, pattern, sortby=CapFile.SEARCH_RELEVANCE):
|
||||
"""
|
||||
search for a audio file
|
||||
|
||||
|
|
@ -135,7 +135,7 @@ class ICapAudio(ICapFile):
|
|||
"""
|
||||
return self.search_file(pattern, sortby)
|
||||
|
||||
def search_album(self, pattern, sortby=ICapFile.SEARCH_RELEVANCE):
|
||||
def search_album(self, pattern, sortby=CapFile.SEARCH_RELEVANCE):
|
||||
"""
|
||||
search for an album
|
||||
:param pattern: pattern to search on
|
||||
|
|
@ -144,7 +144,7 @@ class ICapAudio(ICapFile):
|
|||
"""
|
||||
raise NotImplementedError()
|
||||
|
||||
def search_playlist(self, pattern, sortby=ICapFile.SEARCH_RELEVANCE):
|
||||
def search_playlist(self, pattern, sortby=CapFile.SEARCH_RELEVANCE):
|
||||
"""
|
||||
search for an album
|
||||
:param pattern: pattern to search on
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue