fix urllib imports

This commit is contained in:
matthias@quintern.xyz 2024-05-04 16:00:00 +02:00
parent 28ae4c71b0
commit 9adf866141
2 changed files with 4 additions and 4 deletions

View File

@ -1,14 +1,14 @@
# Maintainer: Matthias Quintern <matthias(dot)quintern(at)posteo(dot)de> # Maintainer: Matthias Quintern <matthias(dot)quintern(at)posteo(dot)de>
pkgname=nicole pkgname=nicole
pkgver=2.1.0 pkgver=2.1.0
pkgrel=1 pkgrel=2
pkgdesc="Write lyrics from genius or azlyrics.com to a mp3-tag" pkgdesc="Write lyrics from genius or azlyrics.com to a mp3-tag"
arch=('any') arch=('any')
url="https:/github.com/MatthiasQuintern/nicole" url="https:/github.com/MatthiasQuintern/nicole"
license=('GPL3') license=('GPL3')
depends=('python-mutagen' 'python-beautifulsoup4') depends=('python-mutagen' 'python-beautifulsoup4')
source=(file://${PWD}/nicole/nicole.py _nicole.compdef.zsh nicole.1.man) source=(file://${PWD}/nicole/nicole.py _nicole.compdef.zsh nicole.1.man)
md5sums=('1cfc6bca38b8e1b8c28694226eebb31e' md5sums=('4000cc89931a680d6e8531cd0a3fcc0a'
'a0a390f36de74a366065ab65bfd1d8de' 'a0a390f36de74a366065ab65bfd1d8de'
'4ad29357b608c88eebc49546a50e489d') '4ad29357b608c88eebc49546a50e489d')

View File

@ -1,11 +1,11 @@
#!/bin/python3 #!/usr/bin/env python3
# Copyright © 2024 Matthias Quintern. # Copyright © 2024 Matthias Quintern.
# This software comes with no warranty. # This software comes with no warranty.
# This software is licensed under the GPL3 # This software is licensed under the GPL3
from mutagen import easyid3, id3, flac from mutagen import easyid3, id3, flac
import urllib import urllib.parse, urllib.request, urllib.error
import re import re
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
from difflib import SequenceMatcher from difflib import SequenceMatcher