X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_librarian%2Fglst.py;h=fedb27b2ed6647fe38b2d8569f7a0483fcad355e;hb=8f210fc84284ebd705b6c6a1bcf81b982dbdc21f;hp=9b16c14e69755ada314f0e848dd5f65b22b78b7e;hpb=285b270bf2c379be4be7d4dcb507bb7c99acee02;p=m_librarian.git diff --git a/m_librarian/glst.py b/m_librarian/glst.py index 9b16c14..fedb27b 100755 --- a/m_librarian/glst.py +++ b/m_librarian/glst.py @@ -65,7 +65,13 @@ def import_glst(): def test(): ml_dir = os.path.dirname(__file__) - print(parse_glst_file(os.path.join(ml_dir, 'glst', 'genres_fb2.glst'))) + for i, (name, title) in enumerate(parse_glst_file( + os.path.join(ml_dir, 'glst', 'genres_fb2_flibusta.glst') + )): + if i < 5: + print(name, title) + else: + break if __name__ == '__main__':