61 Commits (392abfd5fe53352417c1e6febe8f8bccbf6b634e)

Author SHA1 Message Date
Oliverpool 713241a3c1 Prevent ResourceWarning 9 years ago
Louis 38f87923d8 Song errors are cached only if there isn't any of them 9 years ago
Louis d40fd9bb15 [song.chordpro] Catch fatal syntax error when a block is not closed 9 years ago
Louis 362c6b87ce Song errors contain a reference to the song they occur in 9 years ago
Louis efc87a7c8c Remove `object` superclass (necessary in python2, useless in python3) 10 years ago
Oliverpool d945277793 Move the DEFAULT_CONFIG 10 years ago
Louis f8c84de29c Add an `errors` attribute to songs, compiling the song errors 10 years ago
Louis 46f3790a89 Append default datadir to each datadir list (or iterator) 10 years ago
Oliverpool 9db2a86c72 Be more pythonic 10 years ago
Oliverpool f537c9a16c Use dict comprehension to generate cached data 10 years ago
Oliverpool 8516f3bfa0 Update cache version 10 years ago
Oliverpool 28cc48541b Use cache only if True 10 years ago
Oliverpool 4ae7e13326 Move the filehash computation into its own (cached) method 10 years ago
Oliverpool 9a31a21c01 Minor refactorisation of cache_retrieved 10 years ago
Oliverpool 9640b13f70 Make cached_name a Song property 10 years ago
Oliverpool 30af0bba20 Fix and refactor caching functions 10 years ago
Oliverpool 4cf6049384 Refactor caching functions 10 years ago
Oliverpool 9f2b77dd66 Try to be more pythonic 10 years ago
Oliverpool f80b5a62bc Move the default_lang out of the config dict 10 years ago
Oliverpool 821c5a1d3a Song._parse doesn't use the config argument 10 years ago
Oliverpool 54084a56b4 Deprecate output argument of the Song.render method 10 years ago
Louis 08e5e000b7 Add a '--cache' option 10 years ago
Louis 4820293f90 Improve get_subdirs signature 10 years ago
Louis 1f6801b54b Sub-datadir (img and score) must be explicitely set 10 years ago
Louis 1876b5b5b4 Merge master 10 years ago
Louis 93b0fdde24 Files located in the same directory as the song have priority over other files 10 years ago
Oliverpool 5942fd8483 Lint conformity 10 years ago
Oliverpool 909d8120d0 Complete the transition to support only language code 10 years ago
Louis 51d4562901 Create one Song class per couple parser/renderer 10 years ago
Oliverpool f7c8b52e40 Properly log the error when the language code is unknown 10 years ago
Oliverpool 38a2d5eb1b Support spanish, italian and portuguese 10 years ago
Oliverpool 60a22d2235 Differentiate language code (lang) and babel language (language) 10 years ago
Oliverpool 133a13e0f6 Only one language per song (the latest defined) 10 years ago
Louis e753cca8f6 Change `songs.Song` signature 10 years ago
Oliverpool c11a59db7b Allow the search_image and search_partition to return None 10 years ago
Louis 3779567fea Deleted method `cover_filepath` 10 years ago
Louis becea663ea Silent changes to `seach_*()` methods; using `search_*()` filters in templates 10 years ago
Louis b73027c865 Clarified signature of `patacrep.songs.ChordproSong.render()` 10 years ago
Louis 3a9f5aadce Renamed `Song.parse()` to `Song._parse()` (as this method is private) 10 years ago
Oliverpool efdb79cac9 search_file returns absolute filepath 10 years ago
Oliverpool e49ba05514 Yield datadirs 10 years ago
Oliverpool 996652401e Cleanup methods for search image and cover 10 years ago
Oliverpool eab22ad862 Use the new methods to search for a file related to a song 10 years ago
Oliverpool 6353a9da38 Add a method to list valid datadirectories of a song 10 years ago
Oliverpool 722ff043ae Add a method to search for a file related to a song 10 years ago
Oliverpool 044d9570ae Use search_image to find cover file 10 years ago
Oliverpool 220d7c6001 Add a default return when search_image fails (breaks some tests) 10 years ago
Oliverpool ec389a4fba Add missing docstrings 10 years ago
Oliverpool 6e1b47ac86 Add method to retrieve the fullpath of the cover file 10 years ago
Louis 6e62c1abfd Got rid of `vcover`: cover (and image and lilypond partition) is looked for in the right place 10 years ago