-
-
Notifications
You must be signed in to change notification settings - Fork 303
macOS/TagFetcher: improve Opus matching reliability (AcoustID POST + MusicBrainz fallback + safer fingerprinting) #2002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
1311792
4b4ed52
5aa49f4
b0a7aa6
27ac9ab
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,6 +45,7 @@ fi | |
|
|
||
| mkdir -p "${bundledir}/Contents/PlugIns/gio-modules" || exit 1 | ||
| mkdir -p "${bundledir}/Contents/PlugIns/gstreamer" || exit 1 | ||
| mkdir -p "${bundledir}/Contents/Frameworks" || exit 1 | ||
|
|
||
| if [ -e "${GIO_EXTRA_MODULES}/libgiognutls.so" ]; then | ||
| cp -v -f "${GIO_EXTRA_MODULES}/libgiognutls.so" "${bundledir}/Contents/PlugIns/gio-modules/" || exit 1 | ||
|
|
@@ -91,6 +92,8 @@ libgstid3demux | |
| libgstid3tag | ||
| libgstisomp4 | ||
| libgstlame | ||
| # Needed for WebM/Matroska containers that often wrap Opus streams. | ||
| libgstmatroska | ||
| libgstmpegpsdemux | ||
| libgstmpegpsmux | ||
| libgstmpegtsdemux | ||
|
|
@@ -138,12 +141,20 @@ for gst_plugin in $gst_plugins; do | |
| fi | ||
| done | ||
|
|
||
| # libgstmatroska depends on libgstriff, which is not always pulled automatically. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then we need to investigate why, this seems like a workaround, isn't libgstriff-1.0.0.dylib linked? |
||
| gst_library_path=$(dirname "${GST_PLUGIN_PATH}") | ||
| if [ -e "${gst_library_path}/libgstriff-1.0.0.dylib" ]; then | ||
| cp -v -f "${gst_library_path}/libgstriff-1.0.0.dylib" "${bundledir}/Contents/Frameworks/" || exit 1 | ||
| install_name_tool -id "@rpath/libgstriff-1.0.0.dylib" "${bundledir}/Contents/Frameworks/libgstriff-1.0.0.dylib" | ||
| else | ||
| echo "Warning: Missing ${gst_library_path}/libgstriff-1.0.0.dylib." | ||
| fi | ||
|
|
||
| # libsoup is dynamically loaded by gstreamer, so it needs to be copied. | ||
| if [ "${LIBSOUP_LIBRARY_PATH}" = "" ]; then | ||
| echo "Warning: Set the LIBSOUP_LIBRARY_PATH environment variable for copying libsoup." | ||
| else | ||
| if [ -e "${LIBSOUP_LIBRARY_PATH}" ]; then | ||
| mkdir -p "${bundledir}/Contents/Frameworks" || exit 1 | ||
| cp -v -f "${LIBSOUP_LIBRARY_PATH}" "${bundledir}/Contents/Frameworks/" || exit 1 | ||
| install_name_tool -id "@rpath/$(basename ${LIBSOUP_LIBRARY_PATH})" "${bundledir}/Contents/Frameworks/$(basename ${LIBSOUP_LIBRARY_PATH})" | ||
| else | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,7 +51,7 @@ class TrackSelectionDialog : public QDialog { | |
|
|
||
| public Q_SLOTS: | ||
| void FetchTagProgress(const Song &original_song, const QString &progress); | ||
| void FetchTagFinished(const Song &original_song, const SongList &songs_guessed); | ||
| void FetchTagFinished(const Song &original_song, const SongList &songs_guessed, const QString &error = QString()); | ||
|
|
||
| // QDialog | ||
| void accept() override; | ||
|
|
@@ -78,6 +78,8 @@ class TrackSelectionDialog : public QDialog { | |
| Song original_song_; | ||
| bool pending_; | ||
| QString progress_string_; | ||
| // Carries technical diagnostics returned by TagFetcher for the error page. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't think we need too many comments like this, since no other variables are commented. |
||
| QString error_string_; | ||
| SongList results_; | ||
| int selected_result_; | ||
| }; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Matroska isn't currently built, it needs to be enabled in https://github.com/strawberrymusicplayer/strawberry-macos-dependencies/
how did you test this?