mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
Fix imports for python3
This commit is contained in:
BIN
core/__pycache__/__init__.cpython-35.pyc
Normal file
BIN
core/__pycache__/__init__.cpython-35.pyc
Normal file
Binary file not shown.
BIN
core/__pycache__/metadata.cpython-35.pyc
Normal file
BIN
core/__pycache__/metadata.cpython-35.pyc
Normal file
Binary file not shown.
BIN
core/__pycache__/misc.cpython-35.pyc
Normal file
BIN
core/__pycache__/misc.cpython-35.pyc
Normal file
Binary file not shown.
@@ -1,8 +1,11 @@
|
|||||||
import urllib2
|
|
||||||
from mutagen.easyid3 import EasyID3
|
from mutagen.easyid3 import EasyID3
|
||||||
from mutagen.id3 import ID3, APIC
|
from mutagen.id3 import ID3, APIC
|
||||||
from mutagen.mp4 import MP4, MP4Cover
|
from mutagen.mp4 import MP4, MP4Cover
|
||||||
|
|
||||||
|
try:
|
||||||
|
import urllib2
|
||||||
|
except ImportError:
|
||||||
|
import urllib.request as urllib2
|
||||||
|
|
||||||
def compare(file, metadata):
|
def compare(file, metadata):
|
||||||
try:
|
try:
|
||||||
|
|||||||
@@ -8,12 +8,16 @@ from titlecase import titlecase
|
|||||||
from slugify import slugify
|
from slugify import slugify
|
||||||
import spotipy
|
import spotipy
|
||||||
import spotipy.oauth2 as oauth2
|
import spotipy.oauth2 as oauth2
|
||||||
import urllib2
|
|
||||||
import pafy
|
import pafy
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
try:
|
||||||
|
import urllib2
|
||||||
|
except ImportError:
|
||||||
|
import urllib.request as urllib2
|
||||||
|
|
||||||
def generate_songname(raw_song):
|
def generate_songname(raw_song):
|
||||||
if misc.is_spotify(raw_song):
|
if misc.is_spotify(raw_song):
|
||||||
tags = generate_metadata(raw_song)
|
tags = generate_metadata(raw_song)
|
||||||
|
|||||||
Reference in New Issue
Block a user