From cda6ea3c9475e2c68c173d412a5d74b18b3f2a69 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Wed, 21 Oct 2015 13:23:57 +0200 Subject: [PATCH] Cleanup Chordpro lang management --- patacrep/songs/chordpro/__init__.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/patacrep/songs/chordpro/__init__.py b/patacrep/songs/chordpro/__init__.py index ca597af0..4469e40f 100644 --- a/patacrep/songs/chordpro/__init__.py +++ b/patacrep/songs/chordpro/__init__.py @@ -36,17 +36,7 @@ class ChordproSong(Song): song = parse_song(song.read(), self.fullpath) self.authors = song.authors self.titles = song.titles - - # Lang inverted priority (last one is preferred): - # config['lang'] - # song.language - # song.lang - self.lang = self.config['lang'] - language = song.get_data_argument('language') - if language: - # self.lang is automatically updated - self.language = language - self.lang = song.get_data_argument('lang', self.lang) + self.lang = song.get_data_argument('lang', self.config['lang']) self.data = song.meta self.cached = {