diff --git a/src/controller/posts.py b/src/controller/posts.py index 6549bcc..2abaf31 100644 --- a/src/controller/posts.py +++ b/src/controller/posts.py @@ -132,7 +132,7 @@ class postController(object): if i["type"] == "photo": if self.load_images == False: self.load_images = True self.images.append(i) - attachments.append(extract_attachment(i)) + attachments.append(utils.add_attachment(i)) self.attachments.append(i) # Links in text are not treated like normal attachments, so we'll have to catch and add those to the list without title # We can't get a title because title is provided by the VK API and it will not work for links as simple text. diff --git a/src/sound.py b/src/sound.py index 4a4b2aa..2e68777 100644 --- a/src/sound.py +++ b/src/sound.py @@ -9,6 +9,7 @@ import sound_lib import output from mysc.repeating_timer import RepeatingTimer from mysc.thread_utils import call_threaded +from sound_lib import output, input import glob class soundSystem(object): @@ -32,8 +33,8 @@ class soundSystem(object): self.config = soundConfig # Set the output and input default devices. try: - self.output = sound_lib.output.Output() - self.input = sound_lib.input.Input() + self.output = output.Output() + self.input = input.Input() except: pass # Try to use the selected device from the configuration. It can fail if the machine does not has a mic.