diff -Nru ncmpc-0.45/debian/changelog ncmpc-0.46/debian/changelog --- ncmpc-0.45/debian/changelog 2021-11-06 11:25:39.000000000 +0000 +++ ncmpc-0.46/debian/changelog 2021-11-27 14:39:16.000000000 +0000 @@ -1,3 +1,12 @@ +ncmpc (0.46-1) unstable; urgency=medium + + * Revert "Depends on python3:any for ncmpc-lyrics" + * Remove libboost-dev build dependency + * Update build dependency for libpcre + * Disable explicitly playlist_editor build option + + -- Geoffroy Youri Berret Sat, 27 Nov 2021 15:39:16 +0100 + ncmpc (0.45-2) unstable; urgency=medium * Declare compliance with Debian Policy 4.6.0 diff -Nru ncmpc-0.45/debian/control ncmpc-0.46/debian/control --- ncmpc-0.45/debian/control 2021-11-06 09:40:18.000000000 +0000 +++ ncmpc-0.46/debian/control 2021-11-27 14:39:16.000000000 +0000 @@ -6,11 +6,10 @@ Build-Depends: debhelper-compat (= 13), meson (>= 0.47), libncursesw5-dev, - libboost-dev, libmpdclient-dev, liblircclient-dev, pkg-config, - libpcre++-dev, + libpcre2-dev, # for doc python3-sphinx Standards-Version: 4.6.0 @@ -41,7 +40,7 @@ Package: ncmpc-lyrics Architecture: all -Depends: ncmpc, python3:any, python3-unidecode, ${misc:Depends} +Depends: ncmpc, python3, python3-unidecode, ${misc:Depends} Description: ncurses-based audio player (lyrics plugins) ncmpc is a text-mode client for MPD, the Music Player Daemon. Its goal is to provide a keyboard oriented and consistent interface to MPD, without wasting diff -Nru ncmpc-0.45/debian/rules ncmpc-0.46/debian/rules --- ncmpc-0.45/debian/rules 2021-11-06 11:25:39.000000000 +0000 +++ ncmpc-0.46/debian/rules 2021-11-27 14:39:16.000000000 +0000 @@ -27,6 +27,7 @@ -Dmultibyte=true \ -Dnls=enabled \ -Doutputs_screen=true \ + -Dplaylist_editor=false \ -Dregex=enabled \ -Dsearch_screen=true \ -Dsong_screen=true diff -Nru ncmpc-0.45/doc/conf.py ncmpc-0.46/doc/conf.py --- ncmpc-0.45/doc/conf.py 2021-02-12 09:53:25.000000000 +0000 +++ ncmpc-0.46/doc/conf.py 2021-11-26 15:32:38.000000000 +0000 @@ -38,7 +38,7 @@ # built documents. # # The short X.Y version. -version = '0.45' +version = '0.46' # The full version, including alpha/beta/rc tags. release = version diff -Nru ncmpc-0.45/doc/meson.build ncmpc-0.46/doc/meson.build --- ncmpc-0.45/doc/meson.build 2021-02-12 09:53:25.000000000 +0000 +++ ncmpc-0.46/doc/meson.build 2021-11-26 15:32:38.000000000 +0000 @@ -24,7 +24,8 @@ output: 'upload', build_always_stale: true, command: [ - 'rsync', '-vpruz', '--delete', '@INPUT@', + find_program('rsync', required: false, disabler: true) + , '-vpruz', '--delete', '@INPUT@', 'www.musicpd.org:/var/www/mpd/doc/ncmpc/', '--chmod=a+rX', ], diff -Nru ncmpc-0.45/.github/workflows/build.yml ncmpc-0.46/.github/workflows/build.yml --- ncmpc-0.45/.github/workflows/build.yml 1970-01-01 00:00:00.000000000 +0000 +++ ncmpc-0.46/.github/workflows/build.yml 2021-11-26 15:32:38.000000000 +0000 @@ -0,0 +1,80 @@ +--- +on: + workflow_dispatch: + push: + paths-ignore: + - 'doc/**' + - 'lyrics/**' + - 'po/**' + branches: + - master + pull_request: + paths-ignore: + - 'doc/**' + - 'lyrics/**' + - 'po/**' + branches: + - master + +jobs: + build-linux: + runs-on: ubuntu-latest + steps: + - id: checkout + uses: actions/checkout@v2 + + - id: cache-ccache + uses: hendrikmuhs/ccache-action@v1 + with: + key: linux + + - name: Install dependencies + run: | + sudo apt install -y --no-install-recommends \ + meson \ + libncursesw5-dev \ + libncurses5-dev \ + libpcre2-dev \ + libmpdclient-dev + + - name: Full Build + uses: BSFishy/meson-build@v1.0.3 + with: + action: test + directory: output/full + setup-options: -Ddocumentation=disabled -Dlyrics_screen=true -Dchat_screen=true + + - name: Mini Build + uses: BSFishy/meson-build@v1.0.3 + with: + action: test + directory: output/mini + setup-options: -Ddocumentation=disabled -Dbuildtype=minsize -Db_ndebug=true -Db_lto=true -Dauto_features=disabled -Dcurses=ncurses -Dcolors=false -Dmultibyte=false -Dtcp=false -Dasync_connect=false -Dmini=true + + build-macos: + runs-on: macos-latest + steps: + - id: checkout + uses: actions/checkout@v2 + + - id: cache-ccache + uses: hendrikmuhs/ccache-action@v1 + with: + key: macos + + - uses: actions/setup-python@v1 + + - name: Install dependencies + run: | + brew install \ + meson ninja \ + ncurses \ + pcre2 \ + libmpdclient + + - name: Meson Build + uses: BSFishy/meson-build@v1.0.3 + with: + action: test + directory: output + setup-options: -Ddocumentation=disabled -Dlyrics_screen=true -Dchat_screen=true diff -Nru ncmpc-0.45/lyrics/20-azlyrics.py ncmpc-0.46/lyrics/20-azlyrics.py --- ncmpc-0.45/lyrics/20-azlyrics.py 2021-02-12 09:53:25.000000000 +0000 +++ ncmpc-0.46/lyrics/20-azlyrics.py 2021-11-26 15:32:38.000000000 +0000 @@ -52,26 +52,38 @@ def html_to_text(s): return html.unescape(html_elements_to_text(s)) -artist = normalize_parameter(sys.argv[1]) +artists = normalize_parameter(sys.argv[1]) title = normalize_parameter(sys.argv[2]) -artist = re.sub("[^A-Za-z0-9]+", "", artist) +artists = [ + artist.removeprefix('the ') + for artist in artists.split(',') +] +artists = [ + re.sub("[^A-Za-z0-9]+", "", artist) + for artist in artists +] +title = re.sub('\(.*\)', '', title) title = re.sub("[^A-Za-z0-9]+", "", title) -url = "http://azlyrics.com/lyrics/" + artist + "/" + title + ".html" +for artist in artists: + url = "http://azlyrics.com/lyrics/" + artist + "/" + title + ".html" -try: - r = urllib.request.urlopen(url) - response = r.read().decode() - start = response.find("that. -->") - end = response.find("") + end = response.find("