summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ampache/ampache.py2
-rw-r--r--src/main.py17
2 files changed, 18 insertions, 1 deletions
diff --git a/src/ampache/ampache.py b/src/ampache/ampache.py
index 64939d9..e74029d 100644
--- a/src/ampache/ampache.py
+++ b/src/ampache/ampache.py
@@ -160,7 +160,7 @@ class AmpacheClient:
}
data = self.request(params, headers)
- with open(destination, 'wb') as song:
+ with open(destination, 'wb') as song:
song.write(data.content)
def renew_token(self):
diff --git a/src/main.py b/src/main.py
new file mode 100644
index 0000000..118434b
--- /dev/null
+++ b/src/main.py
@@ -0,0 +1,17 @@
+import ampache
+import pymumble_py3 as pymumble
+
+def main():
+ example_bot = pymumble.Mumble('192.168.15.18', 'ampache', password='cultoblandonianoEXTREME', certfile='../ampache.pem', keyfile='../ampachekey.pem',
+ reconnect=True, stereo=True)
+ example_bot.set_application_string('ampache-client')
+ example_bot.start()
+ example_bot.is_ready()
+ example_bot.set_loop_rate(.01)
+
+ while True:
+ continue
+
+
+if __name__ == '__main__':
+ main()