Browse the code
Differences between 217 and 218 on /. | |
---|---|
Number of edited files: | 22 (0 added, 0 deleted and 22 modified) |
Revision 218 About 7 months and 9 days ago. |
* Updated copyright to 2019 |
Old | New | Code |
---|---|---|
1 |
Erwan Briand <erwan@codingteam.net> (JID: xbright@codingteam.net) | |
1 |
Erwan Briand <contact@erwanbriand.fr> (JID: xbright@codingteam.net)
| |
2 |
2 |
Old | New | Code |
---|---|---|
2 |
2 |
# -*- coding: utf-8 -*- |
3 |
3 |
|
4 |
4 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
5 |
# Copyright (C) 2007-2016 Erwan Briand | |
5 |
# Copyright (C) 2007-2019 Erwan Briand
| |
6 |
6 |
|
7 |
7 |
# This program is free software: you can redistribute it and/or modify |
8 |
8 |
# it under the terms of the GNU General Public License as published by |
9 |
9 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
8 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
8 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
22 |
22 |
config = ConfigLoader() |
23 |
23 |
|
24 |
24 |
class SQLite(object): |
25 |
def __init__(self): | |
25 |
def __init__(self):
| |
26 |
26 |
sqlfile = join(config.datadir, 'songs.db') |
27 |
27 |
if not exists(sqlfile): |
28 |
28 |
database_exist = False |
75 |
75 |
|
76 |
76 |
def close(self): |
77 |
77 |
self.cur.close() |
78 |
self.cx.close() | |
78 |
self.cx.close() | |
79 |
79 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
8 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
8 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
8 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
317 |
317 |
|
318 |
318 |
@property |
319 |
319 |
def CanSeek(self): |
320 |
return True | |
320 |
return True | |
321 |
321 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
31 |
31 |
cls.ref = object.__new__(cls) |
32 |
32 |
return cls.ref |
33 |
33 |
|
34 |
def __init__(self): | |
35 |
if GStreamer.ref2 is None: | |
36 |
GStreamer.ref2 = 42 | |
34 |
def __init__(self):
| |
35 |
if GStreamer.ref2 is None: | |
36 |
GStreamer.ref2 = 42 | |
37 |
37 |
self.nowplaying = None |
38 |
38 |
self.status = 'NULL' |
39 |
39 |
self.player = None |
156 |
156 |
self.nowplaying = None |
157 |
157 |
self.status = 'NULL' |
158 |
158 |
err, debug = message.parse_error() |
159 |
print ('Error: %s' % err, debug) | |
159 |
print ('Error: %s' % err, debug) | |
160 |
160 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
8 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
117 |
117 |
|
118 |
118 |
sql.close() |
119 |
119 |
else: |
120 |
raise Exception('[Song] object was not loaded.') | |
120 |
raise Exception('[Song] object was not loaded.') | |
121 |
121 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
8 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
8 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
8 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
8 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
8 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
8 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
8 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
92 |
92 |
txt = re_sub(clean_reg, '', txt) |
93 |
93 |
txt = txt.replace('\\\'', "'") |
94 |
94 |
txt = txt.replace('\\n', '\n') |
95 |
| |
95 |
||
96 |
96 |
lyrics = txt |
97 |
97 |
|
98 |
98 |
if lyrics != '': |
99 |
99 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
8 |
Old | New | Code |
---|---|---|
1 |
1 |
# -*- coding: utf-8 -*- |
2 |
2 |
|
3 |
3 |
# Bluemindo: Ergonomic and modern music player designed for audiophiles. |
4 |
# Copyright (C) 2007-2016 Erwan Briand | |
4 |
# Copyright (C) 2007-2019 Erwan Briand
| |
5 |
5 |
|
6 |
6 |
# This program is free software: you can redistribute it and/or modify |
7 |
7 |
# it under the terms of the GNU General Public License as published by |
8 |
8 |