Skip to content

Commit ab314d9

Browse files
committed
misc small fixes
fix missing import in playlist export.
1 parent dde5344 commit ab314d9

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

troi/filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def outputs():
237237
return [Recording]
238238

239239
def read(self, input):
240-
recordings = inputs[0]
240+
recordings = input[0]
241241
output = []
242242
for rec in recordings:
243243
if rec.name is not None and (rec.artist and rec.artist.name is not None) and rec.mbid is not None:

troi/http_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import requests
22
from time import time, sleep
33
from requests.adapters import HTTPAdapter
4-
from requests.packages.urllib3.util.retry import Retry
4+
from urllib3.util.retry import Retry
55
from urllib.parse import urlparse
66

77
# Index keep track of rate limits of the various services

troi/playlist.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import logging
22
from collections import defaultdict
33
import json
4-
from time import sleep
54

65

76
import spotipy
87
from troi.tools.utils import AppleMusicAPI
9-
from troi.http_request import http_get
8+
from troi.http_request import http_get, http_post
109
from troi import Recording, Playlist, PipelineError, Element, Artist, ArtistCredit, Release
1110
from troi.operations import is_homogeneous
1211
from troi.print_recording import PrintRecordingList

0 commit comments

Comments
 (0)