summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2022-06-12 15:40:02 -0500
committerHombreLaser <sebastian-440@live.com>2022-06-12 15:40:02 -0500
commit13c803dedb9634479a7e46574f360bd3517eef50 (patch)
tree6a4434ac8c61cfa007af5bad7f45ac8e6c7c77c1
parentb9254f5b9baf35107cae0c91cf9d979fbbfa14aa (diff)
Añadido archivo main
-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()