mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 03:45:56 +01:00
Support loading a spotify URL from the command line.
This commit is contained in:
parent
bb5eaabadb
commit
e9ace3a2cb
@ -220,7 +220,7 @@ bool CommandlineOptions::Parse() {
|
||||
// Get any filenames or URLs following the arguments
|
||||
for (int i=optind ; i<argc_ ; ++i) {
|
||||
QString value = QFile::decodeName(argv_[i]);
|
||||
if (value.contains("://"))
|
||||
if (value.contains(":"))
|
||||
urls_ << value;
|
||||
else
|
||||
urls_ << QUrl::fromLocalFile(QFileInfo(value).canonicalFilePath());
|
||||
|
@ -65,7 +65,7 @@ SongLoader::SongLoader(LibraryBackendInterface* library, QObject *parent)
|
||||
{
|
||||
if (sRawUriSchemes.isEmpty()) {
|
||||
sRawUriSchemes << "udp" << "mms" << "mmsh" << "mmst" << "mmsu" << "rtsp"
|
||||
<< "rtspu" << "rtspt" << "rtsph";
|
||||
<< "rtspu" << "rtspt" << "rtsph" << "spotify";
|
||||
}
|
||||
|
||||
timeout_timer_->setSingleShot(true);
|
||||
|
Loading…
Reference in New Issue
Block a user