Commit e35fa3e0 authored by Gerion Entrup's avatar Gerion Entrup
Browse files

translator: implement a few more directories

- /Releases/<releasegroup>
- /Releases/<releasegroup>/<release>
- /Releases/<releasegroup>/<release>/<track>
parent c0e340ef
......@@ -42,16 +42,24 @@ class Translator(threading.Thread):
QPath("/Artists/<artist>/<releasegroup>/<release>/<track>",
select([Track.name, Track.number, Recording.gid, Recording.path, Recording.ftype]).select_from(join(join(join(Track, Recording), Medium), Release)),
Functions(Track.number, ' ', Track.name, '.', Recording.ftype),
where=[Where(Release.gid.__eq__, '<release>', 'release_gid')])]
where=[Where(Release.gid.__eq__, '<release>', 'release_gid')]),
#("/Artists/<artist>/<releasegroup>/<release>/<and>", _and),
#("/Artists/<artist>/<releasegroup>/<release>/<or>", _or),
#("/Artists/<artist>/Works/<work>"
#QPath("/Artists/<artist>/Works/<work>"
#("/Artists/<artist>/Works/<work>/<recording>"
#("/Artists/<artist>/Works/<work>/<and>", _and),
#("/Artists/<artist>/Works/<work>/<or>", _or),
# QPath("/Releases/<releasegroup>", select([ReleaseGroup]), Functions(ReleaseGroup.name))]
#("/Releases/<releasegroup>/<release>", ".query(Release).filter(Release.release_group == self._releasegroup)", _result_to_string),
#("/Releases/<releasegroup>/<release>/<track>", ".query(Track).join(Medium).join(Release).filter(Release.gid == self._release.gid)", _result_to_string),
QPath("/Releases/<releasegroup>",
select([ReleaseGroup.name, ReleaseGroup.id]),
Functions(ReleaseGroup.name)),
QPath("/Releases/<releasegroup>/<release>",
select([Release.name, Release.gid, Release.release_group_id]),
Functions(Release.name, '.', Release.gid),
where=[Where(Release.release_group_id.__eq__, '<releasegroup>', 'release_group_id')]),
QPath("/Releases/<releasegroup>/<release>/<track>",
select([Track.name, Track.number, Recording.gid, Recording.path, Recording.ftype]).select_from(join(join(join(Track, Recording), Medium), Release)),
Functions(Track.number, ' ', Track.name, '.', Recording.ftype),
where=[Where(Release.gid.__eq__, '<release>', 'release_gid')])]
#("/Releases/<releasegroup>/<release>/<and>", _and),
#("/Releases/<releasegroup>/<release>/<or>", _or),
#("/Works"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment