Skip to content

Commit

Permalink
Add facebook domains
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro committed Nov 1, 2024
1 parent e156f50 commit 97a6c44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion config-utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ QIcon ConfigUtils::getPlatformIconFromEndpoint(QString endpoint)
return QIcon(":/aitum/media/twitter.png");
} else if (endpoint.contains(QString::fromUtf8("livepush.trovo.live"))) { // trovo
return QIcon(":/aitum/media/trovo.png");
} else if (endpoint.contains(QString::fromUtf8(".facebook.com"))) { // facebook
} else if (endpoint.contains(QString::fromUtf8(".facebook.com")) ||
endpoint.contains(QString::fromUtf8(".fbcdn.net"))) { // facebook
return QIcon(":/aitum/media/facebook.png");
} else { // unknown
return QIcon(":/aitum/media/unknown.png");
Expand Down
3 changes: 2 additions & 1 deletion output-dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ OutputDialog::OutputDialog(QDialog *parent, QString name, QString server, QStrin
layout->addWidget(WizardInfoTwitter(true));
} else if (outputServer.contains(QString::fromUtf8("livepush.trovo.live"))) { // trovo
layout->addWidget(WizardInfoTrovo(true));
} else if (outputServer.contains(QString::fromUtf8(".facebook.com"))) { // facebook
} else if (outputServer.contains(QString::fromUtf8(".fbcdn.net")) ||
outputServer.contains(QString::fromUtf8(".facebook.com"))) { // facebook
layout->addWidget(WizardInfoFacebook(true));
} else { // unknown
layout->addWidget(WizardInfoUnknown(true));
Expand Down

0 comments on commit 97a6c44

Please sign in to comment.