From 0bc5775baa3b0c0e70f66507e64d08e16b5e94e3 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 27 Feb 2012 10:22:43 +0000 Subject: added stream browser plugin git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2638 90c681e8-e032-0410-971d-27865f9a5e38 --- .../General/streambrowser/streambrowser.cpp | 49 +++++ src/plugins/General/streambrowser/streambrowser.h | 50 +++++ .../General/streambrowser/streambrowser.pro | 51 +++++ .../General/streambrowser/streambrowserfactory.cpp | 63 ++++++ .../General/streambrowser/streambrowserfactory.h | 45 +++++ src/plugins/General/streambrowser/streamwindow.cpp | 224 +++++++++++++++++++++ src/plugins/General/streambrowser/streamwindow.h | 56 ++++++ src/plugins/General/streambrowser/streamwindow.ui | 134 ++++++++++++ .../translations/streambrowser_plugin_cs.ts | 104 ++++++++++ .../translations/streambrowser_plugin_de.ts | 104 ++++++++++ .../translations/streambrowser_plugin_es.ts | 104 ++++++++++ .../translations/streambrowser_plugin_it.ts | 104 ++++++++++ .../translations/streambrowser_plugin_ja.ts | 104 ++++++++++ .../translations/streambrowser_plugin_lt.ts | 104 ++++++++++ .../translations/streambrowser_plugin_nl.ts | 104 ++++++++++ .../translations/streambrowser_plugin_pl.ts | 104 ++++++++++ .../translations/streambrowser_plugin_ru.ts | 104 ++++++++++ .../translations/streambrowser_plugin_tr.ts | 104 ++++++++++ .../translations/streambrowser_plugin_uk_UA.ts | 104 ++++++++++ .../translations/streambrowser_plugin_zh_CN.ts | 104 ++++++++++ .../translations/streambrowser_plugin_zh_TW.ts | 104 ++++++++++ .../streambrowser/translations/translations.qrc | 18 ++ 22 files changed, 2042 insertions(+) create mode 100644 src/plugins/General/streambrowser/streambrowser.cpp create mode 100644 src/plugins/General/streambrowser/streambrowser.h create mode 100644 src/plugins/General/streambrowser/streambrowser.pro create mode 100644 src/plugins/General/streambrowser/streambrowserfactory.cpp create mode 100644 src/plugins/General/streambrowser/streambrowserfactory.h create mode 100644 src/plugins/General/streambrowser/streamwindow.cpp create mode 100644 src/plugins/General/streambrowser/streamwindow.h create mode 100644 src/plugins/General/streambrowser/streamwindow.ui create mode 100644 src/plugins/General/streambrowser/translations/streambrowser_plugin_cs.ts create mode 100644 src/plugins/General/streambrowser/translations/streambrowser_plugin_de.ts create mode 100644 src/plugins/General/streambrowser/translations/streambrowser_plugin_es.ts create mode 100644 src/plugins/General/streambrowser/translations/streambrowser_plugin_it.ts create mode 100644 src/plugins/General/streambrowser/translations/streambrowser_plugin_ja.ts create mode 100644 src/plugins/General/streambrowser/translations/streambrowser_plugin_lt.ts create mode 100644 src/plugins/General/streambrowser/translations/streambrowser_plugin_nl.ts create mode 100644 src/plugins/General/streambrowser/translations/streambrowser_plugin_pl.ts create mode 100644 src/plugins/General/streambrowser/translations/streambrowser_plugin_ru.ts create mode 100644 src/plugins/General/streambrowser/translations/streambrowser_plugin_tr.ts create mode 100644 src/plugins/General/streambrowser/translations/streambrowser_plugin_uk_UA.ts create mode 100644 src/plugins/General/streambrowser/translations/streambrowser_plugin_zh_CN.ts create mode 100644 src/plugins/General/streambrowser/translations/streambrowser_plugin_zh_TW.ts create mode 100644 src/plugins/General/streambrowser/translations/translations.qrc (limited to 'src/plugins/General/streambrowser') diff --git a/src/plugins/General/streambrowser/streambrowser.cpp b/src/plugins/General/streambrowser/streambrowser.cpp new file mode 100644 index 000000000..4eb81e353 --- /dev/null +++ b/src/plugins/General/streambrowser/streambrowser.cpp @@ -0,0 +1,49 @@ +/*************************************************************************** + * Copyright (C) 2012 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#include +#include +#include +#include +#include +#include +#include +#include "streamwindow.h" +#include "streambrowser.h" + +StreamBrowser::StreamBrowser(QObject *parent) : QObject(parent) +{ + m_action = new QAction(tr("Stream Browser"), this); + m_action->setIcon(QIcon::fromTheme("applications-internet")); + //m_action->setShortcut(tr("Ctrl+L")); + UiHelper::instance()->addAction(m_action, UiHelper::TOOLS_MENU); + connect (m_action, SIGNAL(triggered ()), SLOT(showStreamWindow())); +} + +StreamBrowser::~StreamBrowser() +{} + +void StreamBrowser::showStreamWindow() +{ + if(!m_streamWindow) + m_streamWindow = new StreamWindow(qApp->activeWindow ()); + m_streamWindow->show(); + m_streamWindow->activateWindow(); +} diff --git a/src/plugins/General/streambrowser/streambrowser.h b/src/plugins/General/streambrowser/streambrowser.h new file mode 100644 index 000000000..f6cd3f633 --- /dev/null +++ b/src/plugins/General/streambrowser/streambrowser.h @@ -0,0 +1,50 @@ +/*************************************************************************** + * Copyright (C) 2012 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#ifndef STREAMBROWSER_H +#define STREAMBROWSER_H + +#include +#include +#include + +class QAction; +class StreamWindow; + +/** + @author Ilya Kotov +*/ + +class StreamBrowser : public QObject +{ +Q_OBJECT +public: + StreamBrowser(QObject *parent = 0); + + ~StreamBrowser(); + +private slots: + void showStreamWindow(); + +private: + QAction *m_action; + QPointer m_streamWindow; +}; + +#endif diff --git a/src/plugins/General/streambrowser/streambrowser.pro b/src/plugins/General/streambrowser/streambrowser.pro new file mode 100644 index 000000000..ba2cea795 --- /dev/null +++ b/src/plugins/General/streambrowser/streambrowser.pro @@ -0,0 +1,51 @@ +include(../../plugins.pri) + +INCLUDEPATH += ../../../../src +CONFIG += release \ +warn_on \ +plugin + +TARGET =$$PLUGINS_PREFIX/General/streambrowser +unix:QMAKE_CLEAN = $$PLUGINS_PREFIX/General/libstreambrowser.so + + +TEMPLATE = lib +unix:QMAKE_LIBDIR += ../../../../lib +unix:LIBS += -lqmmpui -lqmmp + +win32:QMAKE_LIBDIR += ../../../../bin +win32:LIBS += -lqmmpui0 -lqmmp0 + +TRANSLATIONS = translations/streambrowser_plugin_cs.ts \ + translations/streambrowser_plugin_de.ts \ + translations/streambrowser_plugin_zh_CN.ts \ + translations/streambrowser_plugin_zh_TW.ts \ + translations/streambrowser_plugin_ru.ts \ + translations/streambrowser_plugin_pl.ts \ + translations/streambrowser_plugin_uk_UA.ts \ + translations/streambrowser_plugin_it.ts \ + translations/streambrowser_plugin_tr.ts \ + translations/streambrowser_plugin_lt.ts \ + translations/streambrowser_plugin_nl.ts \ + translations/streambrowser_plugin_ja.ts \ + translations/streambrowser_plugin_es.ts +RESOURCES = translations/translations.qrc +unix{ +isEmpty(LIB_DIR){ + LIB_DIR = /lib +} +target.path = $$LIB_DIR/qmmp/General +INSTALLS += target +} +HEADERS += streambrowserfactory.h \ + streambrowser.h \ + streamwindow.h +win32:HEADERS += ../../../../src/qmmpui/general.h +SOURCES += streambrowserfactory.cpp \ + streambrowser.cpp \ + streamwindow.cpp + +FORMS += streamwindow.ui + +QT += network + diff --git a/src/plugins/General/streambrowser/streambrowserfactory.cpp b/src/plugins/General/streambrowser/streambrowserfactory.cpp new file mode 100644 index 000000000..a4bb0f4ba --- /dev/null +++ b/src/plugins/General/streambrowser/streambrowserfactory.cpp @@ -0,0 +1,63 @@ +/*************************************************************************** + * Copyright (C) 2012 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#include +#include "streambrowser.h" +#include "streambrowserfactory.h" + +const GeneralProperties StreamBrowserFactory::properties() const +{ + GeneralProperties properties; + properties.name = tr("Stream Browser Plugin"); + properties.shortName = "streambrowser"; + properties.hasAbout = true; + properties.hasSettings = false; + properties.visibilityControl = false; + return properties; +} + +QObject *StreamBrowserFactory::create(QObject *parent) +{ + return new StreamBrowser(parent); +} + +QDialog *StreamBrowserFactory::createConfigDialog(QWidget *parent) +{ + Q_UNUSED(parent); + return 0; +} + +void StreamBrowserFactory::showAbout(QWidget *parent) +{ + QMessageBox::about (parent, tr("About Stream Browser Plugin"), + tr("Qmmp Stream Browser Plugin")+"\n"+ + tr("This plugin allows to add stream from IceCast stream directory")+"\n"+ + tr("Written by: Ilya Kotov ")); +} + +QTranslator *StreamBrowserFactory::createTranslator(QObject *parent) +{ + QTranslator *translator = new QTranslator(parent); + QString locale = Qmmp::systemLanguageID(); + translator->load(QString(":/streambrowser_plugin_") + locale); + return translator; +} + +Q_EXPORT_PLUGIN2(streambrowser, StreamBrowserFactory) diff --git a/src/plugins/General/streambrowser/streambrowserfactory.h b/src/plugins/General/streambrowser/streambrowserfactory.h new file mode 100644 index 000000000..8d081cd29 --- /dev/null +++ b/src/plugins/General/streambrowser/streambrowserfactory.h @@ -0,0 +1,45 @@ +/*************************************************************************** + * Copyright (C) 2012 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#ifndef STREAMBROWSERFACTORY_H +#define STREAMBROWSERFACTORY_H + +/** + @author Ilya Kotov +*/ +#include +#include +#include + +#include +#include + +class StreamBrowserFactory : public QObject, public GeneralFactory +{ +Q_OBJECT +Q_INTERFACES(GeneralFactory) +public: + const GeneralProperties properties() const; + QObject *create(QObject *parent); + QDialog *createConfigDialog(QWidget *parent); + void showAbout(QWidget *parent); + QTranslator *createTranslator(QObject *parent); +}; + +#endif diff --git a/src/plugins/General/streambrowser/streamwindow.cpp b/src/plugins/General/streambrowser/streamwindow.cpp new file mode 100644 index 000000000..4dbf86579 --- /dev/null +++ b/src/plugins/General/streambrowser/streamwindow.cpp @@ -0,0 +1,224 @@ +/*************************************************************************** + * Copyright (C) 2012 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "streamwindow.h" + +StreamWindow::StreamWindow(QWidget *parent) : QWidget(parent) +{ + ui.setupUi(this); + setWindowFlags(Qt::Window); + setAttribute(Qt::WA_DeleteOnClose); + setAttribute(Qt::WA_QuitOnClose, false); + m_requestReply = 0; + + ui.addPushButton->setIcon(QIcon::fromTheme("list-add")); + ui.updatePushButton->setIcon(QIcon::fromTheme("view-refresh")); + + + m_icecastModel = new QStandardItemModel(this); + m_icecastModel->setHorizontalHeaderLabels(QStringList() << tr("Name") + << tr("Genre") + << tr("Bitrate") + << tr("Format")); + ui.icecastTableView->setModel(m_icecastModel); + ui.icecastTableView->verticalHeader()->setDefaultSectionSize(fontMetrics().height()); + ui.icecastTableView->verticalHeader()->setResizeMode(QHeaderView::Fixed); + ui.icecastTableView->setEditTriggers(QAbstractItemView::NoEditTriggers); + + ui.statusLabel->hide(); + + + m_http = new QNetworkAccessManager(this); + //load global proxy settings + QmmpSettings *gs = QmmpSettings::instance(); + if (gs->isProxyEnabled()) + { + QNetworkProxy proxy(QNetworkProxy::HttpProxy, gs->proxy().host(), gs->proxy().port()); + if(gs->useProxyAuth()) + { + proxy.setUser(gs->proxy().userName()); + proxy.setPassword(gs->proxy().password()); + } + m_http->setProxy(proxy); + } + connect(m_http, SIGNAL(finished (QNetworkReply *)), SLOT(showText(QNetworkReply *))); + //read settings + QSettings settings(Qmmp::configFile(), QSettings::IniFormat); + settings.beginGroup("StreamBrowser"); + restoreGeometry(settings.value("geometry").toByteArray()); + ui.icecastTableView->horizontalHeader()->restoreState(settings.value("icecast_headers").toByteArray()); + settings.endGroup(); + //create cache dir + QString path = QFileInfo(Qmmp::configFile()).absoluteDir().path(); + QDir dir(path); + if(!dir.exists("streambrowser")) + dir.mkdir("streambrowser"); + //read cache + QFile file(path + "/streambrowser/icecast.xml"); + if(file.open(QIODevice::ReadOnly)) + readIceCast(&file); + else + on_updatePushButton_clicked(); +} + + +StreamWindow::~StreamWindow() +{ +} + +void StreamWindow::showText(QNetworkReply *reply) +{ + ui.statusLabel->setText(tr("Done")); + if (reply->error() != QNetworkReply::NoError) + { + ui.statusLabel->setText(tr("Error")); + QMessageBox::warning (this, tr("Error"), reply->errorString()); + m_requestReply = 0; + reply->deleteLater(); + return; + } + if(m_requestReply == reply) + { + m_requestReply = 0; + readIceCast(reply); + } + reply->deleteLater(); +} + +void StreamWindow::on_updatePushButton_clicked() +{ + QNetworkRequest request; + request.setUrl(QUrl("http://dir.xiph.org/yp.xml")); + request.setRawHeader("User-Agent", QString("qmmp/%1").arg(Qmmp::strVersion()).toAscii()); + m_requestReply = m_http->get(request); + ui.statusLabel->setText(tr("Receiving")); + ui.statusLabel->show(); +} + +void StreamWindow::on_addPushButton_clicked() +{ + QModelIndexList indexes = ui.icecastTableView->selectionModel()->selectedRows(0); + QStringList urls; + foreach(QModelIndex index, indexes) + { + urls.append(m_icecastModel->item(index.row(),0)->data().toString()); + } + urls.removeDuplicates(); + PlayListManager::instance()->add(urls); +} + +void StreamWindow::closeEvent(QCloseEvent *) +{ + QSettings settings(Qmmp::configFile(), QSettings::IniFormat); + settings.beginGroup("StreamBrowser"); + settings.setValue("geometry", saveGeometry()); + settings.setValue("icecast_headers", ui.icecastTableView->horizontalHeader()->saveState()); + settings.endGroup(); + + QString path = QFileInfo(Qmmp::configFile()).absoluteDir().path(); + QFile file(path + "/streambrowser/icecast.xml"); + file.open(QIODevice::WriteOnly); + + QXmlStreamWriter writer(&file); + writer.setCodec("UTF-8"); + writer.setAutoFormatting(true); + writer.writeStartDocument(); + writer.writeStartElement("directory"); + for(int i = 0; i < m_icecastModel->rowCount(); ++i) + { + writer.writeStartElement("entry"); + writer.writeTextElement("server_name", m_icecastModel->item(i,0)->text()); + writer.writeTextElement("listen_url", m_icecastModel->item(i,0)->data().toString()); + writer.writeTextElement("genre", m_icecastModel->item(i,1)->text()); + writer.writeTextElement("bitrate", m_icecastModel->item(i,2)->text()); + writer.writeTextElement("server_type", m_icecastModel->item(i,3)->text()); + writer.writeEndElement(); + } + writer.writeEndElement(); + writer.writeEndDocument(); +} + +void StreamWindow::readIceCast(QIODevice *input) +{ + m_icecastModel->removeRows(0, m_icecastModel->rowCount()); + QXmlStreamReader xml(input); + QString currentTag, server_name, listen_url, genre, bitrate, server_type; + while (!xml.atEnd()) + { + xml.readNext(); + if (xml.isStartElement()) + { + currentTag = xml.name().toString(); + } + else if (xml.isEndElement()) + { + if (xml.name() == "entry") + { + m_icecastModel->appendRow(QList () + << new QStandardItem(server_name) + << new QStandardItem(genre) + << new QStandardItem(bitrate) + << new QStandardItem(server_type)); + + QStandardItem *item = m_icecastModel->item(m_icecastModel->rowCount()-1, 0); + item->setToolTip(server_name + "\n" + listen_url); + item->setData(listen_url); + + server_name.clear(); + listen_url.clear(); + genre.clear(); + bitrate.clear(); + server_type.clear(); + } + + } + else if (xml.isCharacters() && !xml.isWhitespace()) + { + if (currentTag == "server_name") + server_name += xml.text().toString(); + else if (currentTag == "listen_url") + listen_url += xml.text().toString(); + else if (currentTag == "genre") + genre += xml.text().toString(); + else if (currentTag == "bitrate") + bitrate += xml.text().toString(); + else if(currentTag == "server_type") + server_type += xml.text().toString(); + } + } + if (xml.error() && xml.error() != QXmlStreamReader::PrematureEndOfDocumentError) + { + qWarning("StreamWindow: xml error: %lld: %s", xml.lineNumber(), qPrintable(xml.errorString())); + } +} diff --git a/src/plugins/General/streambrowser/streamwindow.h b/src/plugins/General/streambrowser/streamwindow.h new file mode 100644 index 000000000..3bd0e69e7 --- /dev/null +++ b/src/plugins/General/streambrowser/streamwindow.h @@ -0,0 +1,56 @@ +/*************************************************************************** + * Copyright (C) 2012 by Ilya Kotov * + * forkotov02@hotmail.ru * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ +#ifndef STREAMWINDOW_H +#define STREAMWINDOW_H + +#include +#include "ui_streamwindow.h" + +class QNetworkAccessManager; +class QNetworkReply; +class QStandardItemModel; + +/** + @author Ilya Kotov +*/ +class StreamWindow : public QWidget +{ +Q_OBJECT +public: + StreamWindow(QWidget *parent = 0); + + ~StreamWindow(); + +private slots: + void showText(QNetworkReply *reply); + void on_updatePushButton_clicked(); + void on_addPushButton_clicked(); + +private: + void closeEvent(QCloseEvent *); + void readIceCast(QIODevice *input); + Ui::StreamWindow ui; + QNetworkAccessManager *m_http; + QNetworkReply *m_requestReply; + QString m_artist, m_title; + QStandardItemModel *m_icecastModel; +}; + +#endif diff --git a/src/plugins/General/streambrowser/streamwindow.ui b/src/plugins/General/streambrowser/streamwindow.ui new file mode 100644 index 000000000..fc8c8dad7 --- /dev/null +++ b/src/plugins/General/streambrowser/streamwindow.ui @@ -0,0 +1,134 @@ + + + StreamWindow + + + + 0 + 0 + 551 + 427 + + + + Stream Browser + + + + 6 + + + 6 + + + 6 + + + + + 1 + + + + Favorites + + + + + + true + + + QAbstractItemView::SingleSelection + + + QAbstractItemView::SelectRows + + + true + + + false + + + + + + + + IceCast + + + + + + true + + + QAbstractItemView::ExtendedSelection + + + QAbstractItemView::SelectRows + + + true + + + false + + + + + + + + + + + Add + + + + + + + Update + + + + + + + QDialogButtonBox::Close + + + + + + + ? + + + + + + + + + buttonBox + rejected() + StreamWindow + close() + + + 524 + 407 + + + 504 + 421 + + + + + diff --git a/src/plugins/General/streambrowser/translations/streambrowser_plugin_cs.ts b/src/plugins/General/streambrowser/translations/streambrowser_plugin_cs.ts new file mode 100644 index 000000000..c82c66426 --- /dev/null +++ b/src/plugins/General/streambrowser/translations/streambrowser_plugin_cs.ts @@ -0,0 +1,104 @@ + + + + + StreamBrowser + + + Stream Browser + + + + + StreamBrowserFactory + + + Stream Browser Plugin + + + + + About Stream Browser Plugin + + + + + Qmmp Stream Browser Plugin + + + + + This plugin allows to add stream from IceCast stream directory + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Autor: Ilja Kotov <forkotov02@hotmail.ru> + + + + StreamWindow + + + Stream Browser + + + + + Favorites + + + + + IceCast + + + + + Add + + + + + Update + + + + + Name + + + + + Genre + + + + + Bitrate + + + + + Format + + + + + Done + Hotovo + + + + + Error + Chyba + + + + Receiving + Příjímám + + + diff --git a/src/plugins/General/streambrowser/translations/streambrowser_plugin_de.ts b/src/plugins/General/streambrowser/translations/streambrowser_plugin_de.ts new file mode 100644 index 000000000..a655c2adb --- /dev/null +++ b/src/plugins/General/streambrowser/translations/streambrowser_plugin_de.ts @@ -0,0 +1,104 @@ + + + + + StreamBrowser + + + Stream Browser + + + + + StreamBrowserFactory + + + Stream Browser Plugin + + + + + About Stream Browser Plugin + + + + + Qmmp Stream Browser Plugin + + + + + This plugin allows to add stream from IceCast stream directory + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Autor: Ilya Kotov <forkotov02@hotmail.ru> + + + + StreamWindow + + + Stream Browser + + + + + Favorites + + + + + IceCast + + + + + Add + + + + + Update + + + + + Name + + + + + Genre + + + + + Bitrate + + + + + Format + + + + + Done + Fertig + + + + + Error + Fehler + + + + Receiving + Daten werden empfangen + + + diff --git a/src/plugins/General/streambrowser/translations/streambrowser_plugin_es.ts b/src/plugins/General/streambrowser/translations/streambrowser_plugin_es.ts new file mode 100644 index 000000000..374de4cf7 --- /dev/null +++ b/src/plugins/General/streambrowser/translations/streambrowser_plugin_es.ts @@ -0,0 +1,104 @@ + + + + + StreamBrowser + + + Stream Browser + + + + + StreamBrowserFactory + + + Stream Browser Plugin + + + + + About Stream Browser Plugin + + + + + Qmmp Stream Browser Plugin + + + + + This plugin allows to add stream from IceCast stream directory + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Escrito por: Ilya Kotov <forkotov02@hotmail.ru> + + + + StreamWindow + + + Stream Browser + + + + + Favorites + + + + + IceCast + + + + + Add + + + + + Update + + + + + Name + + + + + Genre + + + + + Bitrate + + + + + Format + + + + + Done + Hecho + + + + + Error + Error + + + + Receiving + Recibiendo + + + diff --git a/src/plugins/General/streambrowser/translations/streambrowser_plugin_it.ts b/src/plugins/General/streambrowser/translations/streambrowser_plugin_it.ts new file mode 100644 index 000000000..4ba29ba44 --- /dev/null +++ b/src/plugins/General/streambrowser/translations/streambrowser_plugin_it.ts @@ -0,0 +1,104 @@ + + + + + StreamBrowser + + + Stream Browser + + + + + StreamBrowserFactory + + + Stream Browser Plugin + + + + + About Stream Browser Plugin + + + + + Qmmp Stream Browser Plugin + + + + + This plugin allows to add stream from IceCast stream directory + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Autore: Ilya Kotov <forkotov02@hotmail.ru> + + + + StreamWindow + + + Stream Browser + + + + + Favorites + + + + + IceCast + + + + + Add + + + + + Update + + + + + Name + + + + + Genre + + + + + Bitrate + + + + + Format + + + + + Done + + + + + + Error + + + + + Receiving + Ricezione + + + diff --git a/src/plugins/General/streambrowser/translations/streambrowser_plugin_ja.ts b/src/plugins/General/streambrowser/translations/streambrowser_plugin_ja.ts new file mode 100644 index 000000000..a53bc9090 --- /dev/null +++ b/src/plugins/General/streambrowser/translations/streambrowser_plugin_ja.ts @@ -0,0 +1,104 @@ + + + + + StreamBrowser + + + Stream Browser + + + + + StreamBrowserFactory + + + Stream Browser Plugin + + + + + About Stream Browser Plugin + + + + + Qmmp Stream Browser Plugin + + + + + This plugin allows to add stream from IceCast stream directory + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + 制作: Илья Котов (Ilya Kotov) <forkotov02@hotmail.ru> + + + + StreamWindow + + + Stream Browser + + + + + Favorites + + + + + IceCast + + + + + Add + + + + + Update + + + + + Name + + + + + Genre + + + + + Bitrate + + + + + Format + + + + + Done + 完了 + + + + + Error + 事故 + + + + Receiving + 取得中 + + + diff --git a/src/plugins/General/streambrowser/translations/streambrowser_plugin_lt.ts b/src/plugins/General/streambrowser/translations/streambrowser_plugin_lt.ts new file mode 100644 index 000000000..68cd7d34a --- /dev/null +++ b/src/plugins/General/streambrowser/translations/streambrowser_plugin_lt.ts @@ -0,0 +1,104 @@ + + + + + StreamBrowser + + + Stream Browser + + + + + StreamBrowserFactory + + + Stream Browser Plugin + + + + + About Stream Browser Plugin + + + + + Qmmp Stream Browser Plugin + + + + + This plugin allows to add stream from IceCast stream directory + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Sukūrė: Ilya Kotov <forkotov02@hotmail.ru> + + + + StreamWindow + + + Stream Browser + + + + + Favorites + + + + + IceCast + + + + + Add + + + + + Update + + + + + Name + + + + + Genre + + + + + Bitrate + + + + + Format + + + + + Done + Atlikta + + + + + Error + Klaida + + + + Receiving + Gaunu + + + diff --git a/src/plugins/General/streambrowser/translations/streambrowser_plugin_nl.ts b/src/plugins/General/streambrowser/translations/streambrowser_plugin_nl.ts new file mode 100644 index 000000000..15d8de383 --- /dev/null +++ b/src/plugins/General/streambrowser/translations/streambrowser_plugin_nl.ts @@ -0,0 +1,104 @@ + + + + + StreamBrowser + + + Stream Browser + + + + + StreamBrowserFactory + + + Stream Browser Plugin + + + + + About Stream Browser Plugin + + + + + Qmmp Stream Browser Plugin + + + + + This plugin allows to add stream from IceCast stream directory + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Auteur: Ilya Kotov <forkotov02@hotmail.ru> + + + + StreamWindow + + + Stream Browser + + + + + Favorites + + + + + IceCast + + + + + Add + + + + + Update + + + + + Name + + + + + Genre + + + + + Bitrate + + + + + Format + + + + + Done + Klaar + + + + + Error + Fout + + + + Receiving + Bezig met ontvangen + + + diff --git a/src/plugins/General/streambrowser/translations/streambrowser_plugin_pl.ts b/src/plugins/General/streambrowser/translations/streambrowser_plugin_pl.ts new file mode 100644 index 000000000..5579bf0af --- /dev/null +++ b/src/plugins/General/streambrowser/translations/streambrowser_plugin_pl.ts @@ -0,0 +1,104 @@ + + + + + StreamBrowser + + + Stream Browser + + + + + StreamBrowserFactory + + + Stream Browser Plugin + + + + + About Stream Browser Plugin + + + + + Qmmp Stream Browser Plugin + + + + + This plugin allows to add stream from IceCast stream directory + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Autor: Ilya Kotov <forkotov02@hotmail.ru> + + + + StreamWindow + + + Stream Browser + + + + + Favorites + + + + + IceCast + + + + + Add + + + + + Update + + + + + Name + + + + + Genre + + + + + Bitrate + + + + + Format + + + + + Done + Gotowe + + + + + Error + Błąd + + + + Receiving + Pobieranie + + + diff --git a/src/plugins/General/streambrowser/translations/streambrowser_plugin_ru.ts b/src/plugins/General/streambrowser/translations/streambrowser_plugin_ru.ts new file mode 100644 index 000000000..d229fc3fb --- /dev/null +++ b/src/plugins/General/streambrowser/translations/streambrowser_plugin_ru.ts @@ -0,0 +1,104 @@ + + + + + StreamBrowser + + + Stream Browser + Обзор потоков + + + + StreamBrowserFactory + + + Stream Browser Plugin + Модуль обзора потоков + + + + About Stream Browser Plugin + О модуле обзора потоков + + + + Qmmp Stream Browser Plugin + Модуль обзора потоков для Qmmp + + + + This plugin allows to add stream from IceCast stream directory + Этот модуль предназначен для добавления потоков из директории IceCast + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Разработчик: Илья Котов <forkotov02@hotmail.ru> + + + + StreamWindow + + + Stream Browser + Обзор потоков + + + + Favorites + Избранное + + + + IceCast + IceCast + + + + Add + Добавить + + + + Update + Обновить + + + + Name + Имя + + + + Genre + Жанр + + + + Bitrate + Битовая частота + + + + Format + Формат + + + + Done + Готово + + + + + Error + Ошибка + + + + Receiving + Получение + + + diff --git a/src/plugins/General/streambrowser/translations/streambrowser_plugin_tr.ts b/src/plugins/General/streambrowser/translations/streambrowser_plugin_tr.ts new file mode 100644 index 000000000..30b96f8a5 --- /dev/null +++ b/src/plugins/General/streambrowser/translations/streambrowser_plugin_tr.ts @@ -0,0 +1,104 @@ + + + + + StreamBrowser + + + Stream Browser + + + + + StreamBrowserFactory + + + Stream Browser Plugin + + + + + About Stream Browser Plugin + + + + + Qmmp Stream Browser Plugin + + + + + This plugin allows to add stream from IceCast stream directory + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Yazan: Ilya Kotov <forkotov02@hotmail.ru> + + + + StreamWindow + + + Stream Browser + + + + + Favorites + + + + + IceCast + + + + + Add + + + + + Update + + + + + Name + + + + + Genre + + + + + Bitrate + + + + + Format + + + + + Done + + + + + + Error + + + + + Receiving + Alınıyor + + + diff --git a/src/plugins/General/streambrowser/translations/streambrowser_plugin_uk_UA.ts b/src/plugins/General/streambrowser/translations/streambrowser_plugin_uk_UA.ts new file mode 100644 index 000000000..754f8e7e0 --- /dev/null +++ b/src/plugins/General/streambrowser/translations/streambrowser_plugin_uk_UA.ts @@ -0,0 +1,104 @@ + + + + + StreamBrowser + + + Stream Browser + + + + + StreamBrowserFactory + + + Stream Browser Plugin + + + + + About Stream Browser Plugin + + + + + Qmmp Stream Browser Plugin + + + + + This plugin allows to add stream from IceCast stream directory + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + Розробник: Ілля Котов <forkotov02@hotmail.ru> + + + + StreamWindow + + + Stream Browser + + + + + Favorites + + + + + IceCast + + + + + Add + + + + + Update + + + + + Name + + + + + Genre + + + + + Bitrate + + + + + Format + + + + + Done + Готово + + + + + Error + Помилка + + + + Receiving + Отримання + + + diff --git a/src/plugins/General/streambrowser/translations/streambrowser_plugin_zh_CN.ts b/src/plugins/General/streambrowser/translations/streambrowser_plugin_zh_CN.ts new file mode 100644 index 000000000..43336e056 --- /dev/null +++ b/src/plugins/General/streambrowser/translations/streambrowser_plugin_zh_CN.ts @@ -0,0 +1,104 @@ + + + + + StreamBrowser + + + Stream Browser + + + + + StreamBrowserFactory + + + Stream Browser Plugin + + + + + About Stream Browser Plugin + + + + + Qmmp Stream Browser Plugin + + + + + This plugin allows to add stream from IceCast stream directory + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + 作者:Ilya Kotov <forkotov02@hotmail.ru> + + + + StreamWindow + + + Stream Browser + + + + + Favorites + + + + + IceCast + + + + + Add + + + + + Update + + + + + Name + + + + + Genre + + + + + Bitrate + + + + + Format + + + + + Done + 完成 + + + + + Error + 错误 + + + + Receiving + 接受 + + + diff --git a/src/plugins/General/streambrowser/translations/streambrowser_plugin_zh_TW.ts b/src/plugins/General/streambrowser/translations/streambrowser_plugin_zh_TW.ts new file mode 100644 index 000000000..ae5df051f --- /dev/null +++ b/src/plugins/General/streambrowser/translations/streambrowser_plugin_zh_TW.ts @@ -0,0 +1,104 @@ + + + + + StreamBrowser + + + Stream Browser + + + + + StreamBrowserFactory + + + Stream Browser Plugin + + + + + About Stream Browser Plugin + + + + + Qmmp Stream Browser Plugin + + + + + This plugin allows to add stream from IceCast stream directory + + + + + Written by: Ilya Kotov <forkotov02@hotmail.ru> + 作者:Ilya Kotov <forkotov02@hotmail.ru> + + + + StreamWindow + + + Stream Browser + + + + + Favorites + + + + + IceCast + + + + + Add + + + + + Update + + + + + Name + + + + + Genre + + + + + Bitrate + + + + + Format + + + + + Done + 完成 + + + + + Error + 錯誤 + + + + Receiving + 接受 + + + diff --git a/src/plugins/General/streambrowser/translations/translations.qrc b/src/plugins/General/streambrowser/translations/translations.qrc new file mode 100644 index 000000000..246594c5e --- /dev/null +++ b/src/plugins/General/streambrowser/translations/translations.qrc @@ -0,0 +1,18 @@ + + + + streambrowser_plugin_it.qm + streambrowser_plugin_ru.qm + streambrowser_plugin_uk_UA.qm + streambrowser_plugin_zh_CN.qm + streambrowser_plugin_zh_TW.qm + streambrowser_plugin_cs.qm + streambrowser_plugin_pl.qm + streambrowser_plugin_de.qm + streambrowser_plugin_tr.qm + streambrowser_plugin_lt.qm + streambrowser_plugin_nl.qm + streambrowser_plugin_ja.qm + streambrowser_plugin_es.qm + + -- cgit v1.2.3-13-gbd6f