Browse Source

Let 'sorted' content be recursive

pull/179/head
Oliverpool 9 years ago
parent
commit
aee562c15c
  1. 6
      patacrep/content/sorted.py

6
patacrep/content/sorted.py

@ -9,8 +9,8 @@ import logging
import unidecode import unidecode
from patacrep import files from patacrep import files
from patacrep.content import ContentError from patacrep.content import ContentError, process_content
from patacrep.content.song import OnlySongsError, process_songs from patacrep.content.song import OnlySongsError
LOGGER = logging.getLogger(__name__) LOGGER = logging.getLogger(__name__)
@ -83,7 +83,7 @@ def parse(keyword, config, argument, contentlist):
else: else:
sort = DEFAULT_SORT sort = DEFAULT_SORT
try: try:
songlist = process_songs(contentlist, config) songlist = process_content(contentlist, config)
except OnlySongsError as error: except OnlySongsError as error:
raise ContentError(keyword, ( raise ContentError(keyword, (
"Content list of this keyword can be only songs (or content " "Content list of this keyword can be only songs (or content "

Loading…
Cancel
Save