1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 12:28:31 +01:00

Remove few Ubuntu One things remaining

This commit is contained in:
Arnaud Bienner 2014-09-14 21:43:13 +02:00
parent 3e17a0adb5
commit bfaf127ed7
3 changed files with 1 additions and 13 deletions

View File

@ -340,7 +340,6 @@
<file>providers/soundcloud.png</file> <file>providers/soundcloud.png</file>
<file>providers/subsonic-32.png</file> <file>providers/subsonic-32.png</file>
<file>providers/subsonic.png</file> <file>providers/subsonic.png</file>
<file>providers/ubuntuone.png</file>
<file>providers/wikipedia.png</file> <file>providers/wikipedia.png</file>
<file>rainbowdash.png</file> <file>rainbowdash.png</file>
<file>sample.mood</file> <file>sample.mood</file>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -841,7 +841,7 @@ void GstEnginePipeline::SourceSetupCallback(GstURIDecodeBin* bin,
instance->url().host().contains("grooveshark")) { instance->url().host().contains("grooveshark")) {
// Grooveshark streaming servers will answer with a 400 error 'Bad request' // Grooveshark streaming servers will answer with a 400 error 'Bad request'
// if we don't specify 'Range' field in HTTP header. // if we don't specify 'Range' field in HTTP header.
// Maybe it could be usefull in some other cases, but for now, I prefer to // Maybe it could be useful in some other cases, but for now, I prefer to
// keep this grooveshark specific. // keep this grooveshark specific.
GstStructure* headers; GstStructure* headers;
headers = gst_structure_new("extra-headers", "Range", G_TYPE_STRING, headers = gst_structure_new("extra-headers", "Range", G_TYPE_STRING,
@ -850,17 +850,6 @@ void GstEnginePipeline::SourceSetupCallback(GstURIDecodeBin* bin,
gst_structure_free(headers); gst_structure_free(headers);
} }
if (g_object_class_find_property(G_OBJECT_GET_CLASS(element),
"extra-headers") &&
instance->url().host().contains("files.one.ubuntu.com")) {
GstStructure* headers;
headers =
gst_structure_new("extra-headers", "Authorization", G_TYPE_STRING,
instance->url().fragment().toAscii().data(), nullptr);
g_object_set(element, "extra-headers", headers, nullptr);
gst_structure_free(headers);
}
if (g_object_class_find_property(G_OBJECT_GET_CLASS(element), "user-agent")) { if (g_object_class_find_property(G_OBJECT_GET_CLASS(element), "user-agent")) {
QString user_agent = QString user_agent =
QString("%1 %2").arg(QCoreApplication::applicationName(), QString("%1 %2").arg(QCoreApplication::applicationName(),