Compare commits

...
Author SHA1 Message Date
Jonah Brüchert 50c2607a75 Windows fixes 2023-10-22 19:07:43 +02:00
6 changed files with 9 additions and 8 deletions

No files matched your search

@@ -15,7 +15,7 @@
class QDBusPendingCallWatcher;
class DBusExtendedPendingCallWatcher;
class QT_DBUS_EXTENDED_EXPORT DBusExtendedAbstractInterface: public QDBusAbstractInterface
class DBusExtendedAbstractInterface: public QDBusAbstractInterface
{
Q_OBJECT
+1 -1
View File
@@ -12,7 +12,7 @@
#include <QtCore/QObject>
#include <QtCore/QString>
class MPRIS_QT_EXPORT Mpris : public QObject
class Mpris : public QObject
{
Q_OBJECT
+1 -1
View File
@@ -25,7 +25,7 @@
class MprisRootInterface;
class MprisPlayerInterface;
class QDBusPendingCallWatcher;
class MPRIS_QT_EXPORT MprisController : public QObject
class MprisController : public QObject
{
Q_OBJECT
+1 -1
View File
@@ -24,7 +24,7 @@
#include <QtCore/QVariant>
class QSignalMapper;
class MPRIS_QT_EXPORT MprisManager : public QObject
class MprisManager : public QObject
{
Q_OBJECT
+1 -1
View File
@@ -17,7 +17,7 @@
class MprisRootAdaptor;
class MprisPlayerAdaptor;
class MPRIS_QT_EXPORT MprisPlayer : public QObject,
class MprisPlayer : public QObject,
protected QDBusContext
{
Q_OBJECT
+4 -3
View File
@@ -20,7 +20,11 @@ void pyPrintPretty(py::handle obj) {
py::print(json.attr("dumps")(obj, "indent"_a=py::int_(4)));
}
#if Q_OS_WINDOWS
#define UNEXPORT __attribute__ ((visibility("hidden")))
#else
#define UNEXPORT
#endif
struct UNEXPORT YTMusicPrivate {
py::scoped_interpreter guard {};
@@ -36,9 +40,6 @@ struct UNEXPORT YTMusicPrivate {
ytmusicapi_module = py::module::import("ytmusicapi");
ytmusic = ytmusicapi_module.attr("YTMusic")(auth, user, requests_session, proxies, language);
// Some of the called python code randomly fails if the encoding is not utf8
setenv("LC_ALL", "en_US.utf8", true);
auto oldVersion = ytmusicapi_module.attr("__dict__").contains("_version");
if (oldVersion) {
std::cerr << "Running with outdated and untested version of ytmusicapi." << std::endl;