Commits

Vladimir Kolev committed a73cc4a

Fixed Issue #10 (and it's duplicate #12) Now on the start gSharkDown checks if
the new config value 'scrobbling' exists, if not it adds the new config keys as
needed.

  • Participants
  • Parent commits bd11c49

Comments (0)

Files changed (6)

 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-08-04 12:20+0200\n"
+"POT-Creation-Date: 2011-08-05 08:37+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 "Content-Type: text/plain; charset=CHARSET\n"
 "Content-Transfer-Encoding: 8bit\n"
 
-#: gsharkdown.py:164
+#: gsharkdown.py:171
 msgid "gSharkDown : Download from Grooveshark"
 msgstr ""
 
-#: gsharkdown.py:210
+#: gsharkdown.py:217
 msgid "Error saving the playlist"
 msgstr ""
 
-#: gsharkdown.py:214 data/main_window.ui.h:22
+#: gsharkdown.py:221 data/main_window.ui.h:22
 msgid "Save playlist to file"
 msgstr ""
 
-#: gsharkdown.py:229
+#: gsharkdown.py:236
 msgid "Select Playlist to open"
 msgstr ""
 
-#: gsharkdown.py:235
+#: gsharkdown.py:242
 msgid "Playlist files"
 msgstr ""
 
-#: gsharkdown.py:280 data/about_dialog.ui.h:4
+#: gsharkdown.py:287 data/about_dialog.ui.h:4
 msgid "Check for update"
 msgstr ""
 
-#: gsharkdown.py:312
+#: gsharkdown.py:319
 msgid "New update"
 msgstr ""
 
-#: gsharkdown.py:313
+#: gsharkdown.py:320
 msgid "To update to the latest version click on the button "
 msgstr ""
 
-#: gsharkdown.py:314
+#: gsharkdown.py:321
 msgid ""
 "'Update'\n"
 "and download it. After that you can "
 msgstr ""
 
-#: gsharkdown.py:315
+#: gsharkdown.py:322
 msgid "remove the old one and install the new gSharkDown"
 msgstr ""
 
-#: gsharkdown.py:316
+#: gsharkdown.py:323
 #, python-format
 msgid "<b>New version <i>%s</i> is available</b>"
 msgstr ""
 
-#: gsharkdown.py:332
+#: gsharkdown.py:339
 msgid "No updates"
 msgstr ""
 
-#: gsharkdown.py:333
+#: gsharkdown.py:340
 msgid "Congratulations!\n"
 msgstr ""
 
-#: gsharkdown.py:334
+#: gsharkdown.py:341
 msgid "<b>You are using the latest version!</b>"
 msgstr ""
 
-#: gsharkdown.py:362 gsharkdown.py:387
+#: gsharkdown.py:369 gsharkdown.py:394
 msgid "Title"
 msgstr ""
 
-#: gsharkdown.py:367 gsharkdown.py:392
+#: gsharkdown.py:374 gsharkdown.py:399
 msgid "Artist"
 msgstr ""
 
-#: gsharkdown.py:372
+#: gsharkdown.py:379
 msgid "Album"
 msgstr ""
 
-#: gsharkdown.py:377 gsharkdown.py:397
+#: gsharkdown.py:384 gsharkdown.py:404
 msgid "SongID"
 msgstr ""
 
-#: gsharkdown.py:408
+#: gsharkdown.py:415
 msgid "Are you sure to quit?"
 msgstr ""
 
-#: gsharkdown.py:409
+#: gsharkdown.py:416
 msgid "Quit?"
 msgstr ""
 
-#: gsharkdown.py:579
+#: gsharkdown.py:586
 msgid "Song Information - {songid}"
 msgstr ""
 
-#: gsharkdown.py:580
+#: gsharkdown.py:587
 msgid "<b>Filename:</b> {artist} - {title}.mp3\n"
 msgstr ""
 
-#: gsharkdown.py:582
+#: gsharkdown.py:589
 msgid "<b>Artist:</b> {artist}\n"
 msgstr ""
 
-#: gsharkdown.py:583
+#: gsharkdown.py:590
 msgid "<b>Title:</b> {title}\n"
 msgstr ""
 
-#: gsharkdown.py:585
+#: gsharkdown.py:592
 msgid "<b>Duration:</b> {mins}:{secs} min\n"
 msgstr ""
 
-#: gsharkdown.py:587
+#: gsharkdown.py:594
 msgid "<b>Album:</b> {album}\n"
 msgstr ""
 
-#: gsharkdown.py:588
+#: gsharkdown.py:595
 msgid "<b>Year:</b> {year}\n"
 msgstr ""
 
-#: gsharkdown.py:686
+#: gsharkdown.py:693
 msgid "Select destination directory"
 msgstr ""
 
-#: gsharkdown.py:787
+#: gsharkdown.py:794
 msgid "Playing: {artist} - {title}"
 msgstr ""
 
-#: gsharkdown.py:791
+#: gsharkdown.py:798
 msgid "<b>Playing:</b> {artist} - {title}"
 msgstr ""
 
-#: gsharkdown.py:795
+#: gsharkdown.py:802
 msgid "Now playing"
 msgstr ""
 
-#: gsharkdown.py:802
+#: gsharkdown.py:809
 msgid "gSharkDown: GrooveShark Downloader"
 msgstr ""
 
 
 if os.path.exists("%s/.gsharkdown/gsharkdown.ini" % os.environ.get("HOME")):
     CONFIG = ConfigObj("%s/.gsharkdown/gsharkdown.ini" % os.environ.get("HOME"))
+    try:
+        test = CONFIG['scrobbling']
+    except KeyError:
+        CONFIG['scrobbling'] = 0
+        CONFIG['lastuser'] = ""
+        CONFIG['lastpass'] = ""
+        CONFIG.write()
 else:
     try:
         os.mkdir("%s/.gsharkdown/" % os.environ.get("HOME"))

locale/bg_BG/LC_MESSAGES/gsharkdown.mo

Binary file modified.

locale/bg_BG/LC_MESSAGES/gsharkdown.po

 msgstr ""
 "Project-Id-Version: gsharkdown\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-08-04 12:20+0200\n"
-"PO-Revision-Date: 2011-08-04 12:22+0100\n"
+"POT-Creation-Date: 2011-08-05 08:37+0200\n"
+"PO-Revision-Date: 2011-08-05 08:37+0100\n"
 "Last-Translator: Vladimir Kolev <vladi@vladimirkolev.com>\n"
 "Language-Team: Bulgarian\n"
 "MIME-Version: 1.0\n"
 "X-Poedit-Country: BULGARIA\n"
 "X-Poedit-SourceCharset: utf-8\n"
 
-#: gsharkdown.py:164
+#: gsharkdown.py:171
 msgid "gSharkDown : Download from Grooveshark"
 msgstr "gSharkDown : Изтегляй от Grooveshark"
 
-#: gsharkdown.py:210
+#: gsharkdown.py:217
 msgid "Error saving the playlist"
 msgstr "Грешка при записването на списъка с песни"
 
-#: gsharkdown.py:214
+#: gsharkdown.py:221
 #: data/main_window.ui.h:22
 msgid "Save playlist to file"
 msgstr "Запиши списъка с песни във файл"
 
-#: gsharkdown.py:229
+#: gsharkdown.py:236
 msgid "Select Playlist to open"
 msgstr "Изберете списък с песни"
 
-#: gsharkdown.py:235
+#: gsharkdown.py:242
 msgid "Playlist files"
 msgstr "Списъци с песни"
 
-#: gsharkdown.py:280
+#: gsharkdown.py:287
 #: data/about_dialog.ui.h:4
 msgid "Check for update"
 msgstr "Провери за нова версия"
 
-#: gsharkdown.py:312
+#: gsharkdown.py:319
 msgid "New update"
 msgstr "Нова версия"
 
-#: gsharkdown.py:313
+#: gsharkdown.py:320
 msgid "To update to the latest version click on the button "
 msgstr "За да обновите до последната версия изберете бутона"
 
-#: gsharkdown.py:314
+#: gsharkdown.py:321
 msgid ""
 "'Update'\n"
 "and download it. After that you can "
 "'Изпълни'\n"
 "и я изтеглете. След това можете да"
 
-#: gsharkdown.py:315
+#: gsharkdown.py:322
 msgid "remove the old one and install the new gSharkDown"
 msgstr "премахнете старата версия и да инсталирате новия gSharkDown"
 
-#: gsharkdown.py:316
+#: gsharkdown.py:323
 #, python-format
 msgid "<b>New version <i>%s</i> is available</b>"
 msgstr "<b>Достъпна е нова версия <i>%s</i></b>"
 
-#: gsharkdown.py:332
+#: gsharkdown.py:339
 msgid "No updates"
 msgstr "Няма нови версии"
 
-#: gsharkdown.py:333
+#: gsharkdown.py:340
 msgid "Congratulations!\n"
 msgstr "Поздравления!\n"
 
-#: gsharkdown.py:334
+#: gsharkdown.py:341
 msgid "<b>You are using the latest version!</b>"
 msgstr "<b>Вие използвате последната версия!</b>"
 
-#: gsharkdown.py:362
-#: gsharkdown.py:387
+#: gsharkdown.py:369
+#: gsharkdown.py:394
 msgid "Title"
 msgstr "Заглавие"
 
-#: gsharkdown.py:367
-#: gsharkdown.py:392
+#: gsharkdown.py:374
+#: gsharkdown.py:399
 msgid "Artist"
 msgstr "Изпълнител"
 
-#: gsharkdown.py:372
+#: gsharkdown.py:379
 msgid "Album"
 msgstr "Албум"
 
-#: gsharkdown.py:377
-#: gsharkdown.py:397
+#: gsharkdown.py:384
+#: gsharkdown.py:404
 msgid "SongID"
 msgstr "SongID"
 
-#: gsharkdown.py:408
+#: gsharkdown.py:415
 msgid "Are you sure to quit?"
 msgstr "Наистина изключване на програмата?"
 
-#: gsharkdown.py:409
+#: gsharkdown.py:416
 msgid "Quit?"
 msgstr "Изход?"
 
-#: gsharkdown.py:579
+#: gsharkdown.py:586
 msgid "Song Information - {songid}"
 msgstr "Информация за песента - {songid}"
 
-#: gsharkdown.py:580
+#: gsharkdown.py:587
 msgid "<b>Filename:</b> {artist} - {title}.mp3\n"
 msgstr "<b>Име на файла:</b> {artist} - {title}.mp3\n"
 
-#: gsharkdown.py:582
+#: gsharkdown.py:589
 msgid "<b>Artist:</b> {artist}\n"
 msgstr "<b>Изпълнител:</b> {artist}\n"
 
-#: gsharkdown.py:583
+#: gsharkdown.py:590
 msgid "<b>Title:</b> {title}\n"
 msgstr "<b>Заглавие:</b> {title}\n"
 
-#: gsharkdown.py:585
+#: gsharkdown.py:592
 msgid "<b>Duration:</b> {mins}:{secs} min\n"
 msgstr "<b>Времетраене:</b> {mins}:{secs} min\n"
 
-#: gsharkdown.py:587
+#: gsharkdown.py:594
 msgid "<b>Album:</b> {album}\n"
 msgstr "<b>Албум:</b> {album}\n"
 
-#: gsharkdown.py:588
+#: gsharkdown.py:595
 msgid "<b>Year:</b> {year}\n"
 msgstr "<b>Година:</b> {year}\n"
 
-#: gsharkdown.py:686
+#: gsharkdown.py:693
 msgid "Select destination directory"
 msgstr "Изберете дестинация за записване"
 
-#: gsharkdown.py:787
+#: gsharkdown.py:794
 msgid "Playing: {artist} - {title}"
 msgstr "Свири: {artist} - {title}"
 
-#: gsharkdown.py:791
+#: gsharkdown.py:798
 msgid "<b>Playing:</b> {artist} - {title}"
 msgstr "<b>Свири:</b> {artist} - {title}"
 
-#: gsharkdown.py:795
+#: gsharkdown.py:802
 msgid "Now playing"
 msgstr "В момента свири"
 
-#: gsharkdown.py:802
+#: gsharkdown.py:809
 msgid "gSharkDown: GrooveShark Downloader"
 msgstr "gSharkDown: GrooveShark Downloader"
 

locale/de_DE/LC_MESSAGES/gsharkdown.mo

Binary file modified.

locale/de_DE/LC_MESSAGES/gsharkdown.po

 msgid ""
 msgstr ""
 "Project-Id-Version: gsharkdown\n"
-"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
-"POT-Creation-Date: 2011-08-04 12:20+0200\n"
-"PO-Revision-Date: 2011-08-05 00:19+0100\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2011-08-05 08:37+0200\n"
+"PO-Revision-Date: 2011-08-05 08:38+0100\n"
 "Last-Translator: Vladimir Kolev <vladi@vladimirkolev.com>\n"
 "Language-Team: German <de@li.org>\n"
 "MIME-Version: 1.0\n"
 "X-Launchpad-Export-Date: 2011-08-04 21:20+0000\n"
 "X-Generator: Launchpad (build 13604)\n"
 
-#: gsharkdown.py:164
+#: gsharkdown.py:171
 msgid "gSharkDown : Download from Grooveshark"
 msgstr "gSharkDown : von Grooveshark herunterladen"
 
-#: gsharkdown.py:210
+#: gsharkdown.py:217
 msgid "Error saving the playlist"
 msgstr "Fehler beim Speicher der Wiedergabeliste"
 
-#: gsharkdown.py:214
+#: gsharkdown.py:221
 #: data/main_window.ui.h:22
 msgid "Save playlist to file"
 msgstr "Wiedergabeliste in Datei speichern"
 
-#: gsharkdown.py:229
+#: gsharkdown.py:236
 msgid "Select Playlist to open"
 msgstr "Wiedergabeliste auswählen"
 
-#: gsharkdown.py:235
+#: gsharkdown.py:242
 msgid "Playlist files"
 msgstr "Wiedergabeliste-Dateien"
 
-#: gsharkdown.py:280
+#: gsharkdown.py:287
 #: data/about_dialog.ui.h:4
 msgid "Check for update"
 msgstr "Nach Updates suchen"
 
-#: gsharkdown.py:312
+#: gsharkdown.py:319
 msgid "New update"
 msgstr "Neues Update"
 
-#: gsharkdown.py:313
+#: gsharkdown.py:320
 msgid "To update to the latest version click on the button "
 msgstr "Um auf die neueste Version zu upgraden klicken sie Bitte auf "
 
-#: gsharkdown.py:314
+#: gsharkdown.py:321
 msgid ""
 "'Update'\n"
 "and download it. After that you can "
 msgstr "'Ausführen' button und laden Sie die runter. Danach können Sie "
 
-#: gsharkdown.py:315
+#: gsharkdown.py:322
 msgid "remove the old one and install the new gSharkDown"
 msgstr "die alte Version löschen und den neuen gSharkDown installieren."
 
-#: gsharkdown.py:316
+#: gsharkdown.py:323
 #, python-format
 msgid "<b>New version <i>%s</i> is available</b>"
 msgstr "<b>Version <i>%s</i> ist verfügbar</b>"
 
-#: gsharkdown.py:332
+#: gsharkdown.py:339
 msgid "No updates"
 msgstr "Keine Aktualisierungen"
 
-#: gsharkdown.py:333
+#: gsharkdown.py:340
 msgid "Congratulations!\n"
 msgstr "Glückwunsch!\n"
 
-#: gsharkdown.py:334
+#: gsharkdown.py:341
 msgid "<b>You are using the latest version!</b>"
 msgstr "<b>Sie benutzen die neueste Version!</b>"
 
-#: gsharkdown.py:362
-#: gsharkdown.py:387
+#: gsharkdown.py:369
+#: gsharkdown.py:394
 msgid "Title"
 msgstr "Titel"
 
-#: gsharkdown.py:367
-#: gsharkdown.py:392
+#: gsharkdown.py:374
+#: gsharkdown.py:399
 msgid "Artist"
 msgstr "Künstler"
 
-#: gsharkdown.py:372
+#: gsharkdown.py:379
 msgid "Album"
 msgstr "Album"
 
-#: gsharkdown.py:377
-#: gsharkdown.py:397
+#: gsharkdown.py:384
+#: gsharkdown.py:404
 msgid "SongID"
 msgstr "SongID"
 
-#: gsharkdown.py:408
+#: gsharkdown.py:415
 msgid "Are you sure to quit?"
 msgstr "Sind Sie Sicher zu beenden?"
 
-#: gsharkdown.py:409
+#: gsharkdown.py:416
 msgid "Quit?"
 msgstr "Beenden?"
 
-#: gsharkdown.py:579
+#: gsharkdown.py:586
 msgid "Song Information - {songid}"
 msgstr "Lied Information - {songid}"
 
-#: gsharkdown.py:580
+#: gsharkdown.py:587
 msgid "<b>Filename:</b> {artist} - {title}.mp3\n"
 msgstr "<b>Dateiname:</b> {artist} - {title}.mp3\n"
 
-#: gsharkdown.py:582
+#: gsharkdown.py:589
 msgid "<b>Artist:</b> {artist}\n"
 msgstr "<b>Künstler:</b> {artist}\n"
 
-#: gsharkdown.py:583
+#: gsharkdown.py:590
 msgid "<b>Title:</b> {title}\n"
 msgstr "<b>Titel:</b> {title}\n"
 
-#: gsharkdown.py:585
+#: gsharkdown.py:592
 msgid "<b>Duration:</b> {mins}:{secs} min\n"
 msgstr "<b>Länge:</b> {mins}:{secs} min\n"
 
-#: gsharkdown.py:587
+#: gsharkdown.py:594
 msgid "<b>Album:</b> {album}\n"
 msgstr "<b>Album:</b> {album}\n"
 
-#: gsharkdown.py:588
+#: gsharkdown.py:595
 msgid "<b>Year:</b> {year}\n"
 msgstr "<b>Jahr:</b> {year}\n"
 
-#: gsharkdown.py:686
+#: gsharkdown.py:693
 msgid "Select destination directory"
 msgstr "Zielverzeichnis auswählen"
 
-#: gsharkdown.py:787
+#: gsharkdown.py:794
 msgid "Playing: {artist} - {title}"
 msgstr "Abspielen: {artist} - {title}"
 
-#: gsharkdown.py:791
+#: gsharkdown.py:798
 msgid "<b>Playing:</b> {artist} - {title}"
 msgstr "<b>Abspielen:</b> {artist} - {title}"
 
-#: gsharkdown.py:795
+#: gsharkdown.py:802
 msgid "Now playing"
 msgstr "Wiedergabe von"
 
-#: gsharkdown.py:802
+#: gsharkdown.py:809
 msgid "gSharkDown: GrooveShark Downloader"
 msgstr "gSharkDown: GrooveShark Downloader"