Skip to content

Commit

Permalink
update README and bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Radu-Raicea committed Apr 14, 2018
1 parent e192b9e commit 7230da4
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# music2storage
Downloads music from Youtube and stores them in Google Drive
Downloads music from a music service and stores it in a cloud or local storage.

Currently the only music service is Youtube and the only storage is Google Drive. Soundcloud and Dropbox are planned to be added soon.

Example usage:
```
from music2storage import Music2Storage
m2s = Music2Storage()
m2s.connect_drive()
m2s.start_workers(1)
m2s.add_to_queue('https://www.youtube.com/watch?v=DhHGDOgjie4')
```
2 changes: 1 addition & 1 deletion music2storage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def start_workers(self, workers_per_task):
:param int workers_per_task: Number of workers to create for each task in the pipeline
"""

if not workers:
if not self.workers:
for _ in range(workers_per_task):
self.workers.append(Worker(self._download, self.queues['download'], self.queues['convert'], self.stopper))
self.workers.append(Worker(self._convert, self.queues['convert'], self.queues['upload'], self.stopper))
Expand Down
2 changes: 1 addition & 1 deletion music2storage/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def run(self):
continue

try:
result = self.func(item, service=None)
result = self.func(item)
except TypeError:
continue
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def readme():
return f.read()

setup(name='music2storage',
version='0.1.2',
version='0.1.3',
description='Downloads music from a service and stores it in a cloud or local storage.',
long_description='Currently the only music service is Youtube and the only storage is Google Drive. Soundcloud and Dropbox are planned to be added soon.',
url='https://github.com/Music-Moo/music2storage',
Expand Down

0 comments on commit 7230da4

Please sign in to comment.