def _query_release(self, torrent):
        res = self._query({'action': 'torrent', 'id': torrent})
        result = {'media': res['torrent']['media']}
        if res['torrent']['remastered']:
            year = str(res['torrent']['remasterYear'])
            edition = res['torrent']['remasterTitle']
            if year and year != str(res['group']['year']):
                edition += ' %s' % year
            result.update({
                'label': res['torrent']['remasterRecordLabel'],
                'catalog': res['torrent']['remasterCatalogueNumber'],
                'edition': edition})
        else:
            result.update({
                'label': res['group']['recordLabel'],
                'catalog': res['group']['catalogueNumber']})
        return {k: v.strip() for k, v in result.iteritems() if v}
Import translations from file in standard format
dataset/ETHPy150Open YetAnotherNerd/whatlastgenre/wlg/dataprovider.py/WhatCD._query_release--crossover with--dataset/ETHPy150Open frappe/frappe/frappe/translate.py/import_translations