Skip to content

Commit abe9c8f

Browse files
committed
Remove external source
1 parent 085f39e commit abe9c8f

File tree

11 files changed

+142
-287
lines changed

11 files changed

+142
-287
lines changed

lLyrics/Config.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -249,20 +249,9 @@ def do_create_configure_widget(self):
249249

250250
vbox.pack_start(hbox, False, False, 0)
251251

252-
warn = Gtk.Label("<i>" +
253-
_("Warning: 'External' calls the Rhythmbox built-in lyrics plugin. "
254-
"It can not be guaranteed that the provided engines work properly. "
255-
"If you experience any problems, deactivate this option.")
256-
+ "</i>")
257-
warn.set_alignment(0, 0)
258-
warn.set_margin_left(15)
259-
warn.set_line_wrap(True)
260-
warn.set_use_markup(True)
261-
262252
vbox2 = Gtk.VBox()
263253
vbox2.pack_start(label, False, False, 0)
264254
vbox2.pack_start(vbox, False, False, 0)
265-
vbox2.pack_start(warn, False, False, 0)
266255

267256
page2.pack_start(vbox2, False, False, 10)
268257

lLyrics/External.py

Lines changed: 0 additions & 77 deletions
This file was deleted.

lLyrics/lLyrics.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
import GeniusParser
4040
import LyricsNMusicParser
4141
import VagalumeParser
42-
import External
4342
import Util
4443

4544
from lLyrics_rb3compat import ActionGroup
@@ -96,7 +95,7 @@
9695
LYRICS_ARTIST_REPLACE = [("/", "-"), (" & ", " and ")]
9796

9897
LYRICS_SOURCES = ["Lyricwiki.org", "Letras.terra.com.br", "Metrolyrics.com", "AZLyrics.com", "Lyricsnmusic.com",
99-
"Lyricsmania.com", "Vagalume.com.br", "Genius.com", "Darklyrics.com", "Chartlyrics.com", "External"]
98+
"Lyricsmania.com", "Vagalume.com.br", "Genius.com", "Darklyrics.com", "Chartlyrics.com"]
10099

101100

102101
class lLyrics(GObject.Object, Peas.Activatable):
@@ -119,8 +118,7 @@ def do_activate(self):
119118
"Metrolyrics.com": MetrolyricsParser, "AZLyrics.com": AZLyricsParser,
120119
"Lyricsmania.com": LyricsmaniaParser, "Chartlyrics.com": ChartlyricsParser,
121120
"Darklyrics.com": DarklyricsParser, "Genius.com": GeniusParser,
122-
"Lyricsnmusic.com": LyricsNMusicParser, "Vagalume.com.br": VagalumeParser,
123-
"External": External})
121+
"Lyricsnmusic.com": LyricsNMusicParser, "Vagalume.com.br": VagalumeParser})
124122
self.add_builtin_lyrics_sources()
125123

126124
# Get the user preferences
@@ -365,9 +363,6 @@ def get_button_menu(self):
365363
last_item)
366364

367365
self.radio_sources.append(Gtk.SeparatorMenuItem())
368-
last_item = self.add_radio_menu_item(self.radio_sources, _("External"), self.scan_selected_source_callback,
369-
last_item)
370-
self.radio_sources.append(Gtk.SeparatorMenuItem())
371366
self.add_radio_menu_item(self.radio_sources, _("From cache file"), self.scan_selected_source_callback,
372367
last_item)
373368

@@ -406,8 +401,6 @@ def add_menu_item(self, menu, label, callback):
406401
def add_radio_menu_item(self, menu, label, callback, last):
407402
group = last.get_group()
408403
item = Gtk.RadioMenuItem.new_with_label(group, label)
409-
if label == _("External"):
410-
label = "External"
411404
if label == _("From cache file"):
412405
label = "From cache file"
413406
item.connect("toggled", callback, label)
@@ -832,8 +825,7 @@ def get_lyrics_from_source(self, source, artist, title):
832825

833826
if lyrics != "":
834827
print("got lyrics from source")
835-
if source != "External":
836-
lyrics = "%s\n\n(lyrics from %s)" % (lyrics, source)
828+
lyrics = "%s\n\n(lyrics from %s)" % (lyrics, source)
837829

838830
if self.cache:
839831
self.write_lyrics_to_cache(path, lyrics)

lLyrics/locale/de.po

Lines changed: 33 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: PACKAGE VERSION\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2014-03-31 18:45+0200\n"
10+
"POT-Creation-Date: 2016-02-04 16:47+0100\n"
1111
"PO-Revision-Date: 2012-08-05 12:01+0200\n"
1212
"Last-Translator: Timo Loewe <timoloewe91@gmail.com>\n"
1313
"Language-Team: German\n"
@@ -17,115 +17,111 @@ msgstr ""
1717
"Content-Transfer-Encoding: 8bit\n"
1818
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
1919

20-
#: ../lLyrics.py:276 ../lLyrics.py:295
20+
#: ../lLyrics.py:256 ../lLyrics.py:275
2121
msgid "Lyrics"
2222
msgstr "Liedtexte"
2323

24-
#: ../lLyrics.py:277
24+
#: ../lLyrics.py:259
2525
msgid "Display lyrics for the current playing song"
2626
msgstr "Zeige Liedtext für den gerade gespielten Titel"
2727

28-
#: ../lLyrics.py:281
28+
#: ../lLyrics.py:263
2929
msgid "Show lyrics"
3030
msgstr "Liedtext anzeigen"
3131

32-
#: ../lLyrics.py:282
32+
#: ../lLyrics.py:264
3333
msgid "Search and display lyrics for this song"
3434
msgstr "Suche und zeige Liedtext für diesen Titel"
3535

3636
#. create save and cancel buttons for edited lyrics
37-
#: ../lLyrics.py:343
37+
#: ../lLyrics.py:323
3838
msgid "Save"
3939
msgstr "Speichern"
4040

41-
#: ../lLyrics.py:345
41+
#: ../lLyrics.py:325
4242
msgid "Cancel"
4343
msgstr "Abbrechen"
4444

4545
#. button for closing on demand lyrics
46-
#: ../lLyrics.py:352
46+
#: ../lLyrics.py:332
4747
msgid "Back to playing song"
4848
msgstr "Zurück zum aktuellen Titel"
4949

50-
#: ../lLyrics.py:388 ../lLyrics.py:431
51-
msgid "External"
52-
msgstr "Extern"
53-
54-
#: ../lLyrics.py:390 ../lLyrics.py:433 ../lLyrics.py:882
50+
#: ../lLyrics.py:366 ../lLyrics.py:404 ../lLyrics.py:839
5551
msgid "From cache file"
5652
msgstr "Aus Cache Datei"
5753

58-
#: ../lLyrics.py:394 ../Config.py:314
54+
#: ../lLyrics.py:371 ../Config.py:302
5955
msgid "Sources"
6056
msgstr "Quellen"
6157

62-
#: ../lLyrics.py:398
58+
#: ../lLyrics.py:375
6359
msgid "Scan next source"
6460
msgstr "Durchsuche nächste Quelle"
6561

66-
#: ../lLyrics.py:399
62+
#: ../lLyrics.py:376
6763
msgid "Scan all sources"
6864
msgstr "Durchsuche alle Quellen"
6965

70-
#: ../lLyrics.py:401
66+
#: ../lLyrics.py:378
7167
msgid "Search online"
7268
msgstr "Online suchen"
7369

74-
#: ../lLyrics.py:403
70+
#: ../lLyrics.py:380
7571
msgid "Mark as instrumental"
7672
msgstr "Als instrumental markieren"
7773

78-
#: ../lLyrics.py:405
74+
#: ../lLyrics.py:382
7975
msgid "Clear lyrics"
8076
msgstr "Liedtext löschen"
8177

82-
#: ../lLyrics.py:406
78+
#: ../lLyrics.py:383
8379
msgid "Edit lyrics"
8480
msgstr "Liedtext bearbeiten"
8581

86-
#: ../lLyrics.py:410
82+
#: ../lLyrics.py:387
8783
msgid "Preferences"
8884
msgstr "Einstellungen"
8985

90-
#: ../lLyrics.py:671
86+
#: ../lLyrics.py:603
9187
msgid "lLyrics Preferences"
9288
msgstr "lLyrics Einstellungen"
9389

94-
#: ../lLyrics.py:731 ../lLyrics.py:756 ../lLyrics.py:788 ../lLyrics.py:818
90+
#: ../lLyrics.py:660 ../lLyrics.py:683 ../lLyrics.py:713 ../lLyrics.py:737
9591
msgid "searching lyrics..."
9692
msgstr "suche Liedtexte..."
9793

98-
#: ../lLyrics.py:932
94+
#: ../lLyrics.py:845
9995
msgid "No lyrics found"
10096
msgstr "Keine Liedtexte gefunden"
10197

102-
#: ../Config.py:148
98+
#: ../Config.py:146
10399
msgid "Show sidebar on first playback"
104100
msgstr "Seitenleiste bei Wiedergabestart einblenden"
105101

106-
#: ../Config.py:161
102+
#: ../Config.py:159
107103
msgid "Save lyrics "
108104
msgstr "Liedtexte speichern"
109105

110-
#: ../Config.py:164
106+
#: ../Config.py:163
111107
msgid ""
112108
"Whether to automatically save retrieved lyrics in the folder specified below"
113109
msgstr ""
114110
"Speichert gefundene Liedtexte automatisch im nachfolgend ausgewählten Ordner"
115111

116-
#: ../Config.py:184
112+
#: ../Config.py:183
117113
msgid "default"
118114
msgstr "Standardeinstellung"
119115

120-
#: ../Config.py:187
116+
#: ../Config.py:186
121117
msgid "Folder for lyrics"
122118
msgstr "Ordner für Liedtexte"
123119

124-
#: ../Config.py:201
120+
#: ../Config.py:200
125121
msgid "Always ignore parentheses in song title"
126122
msgstr "Klammern im Songtitel immer ignorieren"
127123

128-
#: ../Config.py:204
124+
#: ../Config.py:203
129125
msgid ""
130126
"When turned off, only parentheses containing specific strings (e.g. 'remix', "
131127
"'live', 'edit', etc) are filtered"
@@ -134,40 +130,30 @@ msgstr ""
134130
"'remix', 'live', 'edit', etc) gefiltert"
135131

136132
#. check buttons for lyric sources
137-
#: ../Config.py:223
133+
#: ../Config.py:222
138134
msgid "Sources:"
139135
msgstr "Quellen:"
140136

141-
#: ../Config.py:254
142-
msgid ""
143-
"Warning: 'External' calls the Rhythmbox built-in lyrics plugin. It can not "
144-
"be guaranteed that the provided engines work properly. If you experience any "
145-
"problems, deactivate this option."
146-
msgstr ""
147-
"Warnung: 'Extern' nutzt das Rhythmbox-interne Liedtexte Plugin. Es kann "
148-
"nicht garantiert werden, dass dieses korrekt funktioniert. Falls Probleme "
149-
"auftreten, deaktivieren Sie diese Option."
150-
151-
#: ../Config.py:279
137+
#: ../Config.py:267
152138
msgid "Hide sidebar label"
153139
msgstr "Verstecke die Überschrift der Seitenleiste"
154140

155-
#: ../Config.py:293
141+
#: ../Config.py:281
156142
msgid "Show lyrics in left sidebar instead of right one"
157143
msgstr "Zeige Liedtexte in der linken statt der rechten Seitenleiste"
158144

159-
#: ../Config.py:296
145+
#: ../Config.py:284
160146
msgid ""
161147
"You have to disable and re-enable this plugin or restart Rhythmbox to apply "
162148
"changes here"
163149
msgstr ""
164150
"Zum Anwenden der Änderung muss das Plugin de- und reaktiviert oder Rhythmbox "
165151
"neu gestartet werden"
166152

167-
#: ../Config.py:313
153+
#: ../Config.py:301
168154
msgid "General"
169155
msgstr "Allgemein"
170156

171-
#: ../Config.py:315
157+
#: ../Config.py:303
172158
msgid "Appearance"
173159
msgstr "Erscheinungsbild"
-422 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)