Skip to content

Commit

Permalink
fixes typo in listener_only var
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymoulin committed Oct 4, 2021
1 parent b9f0723 commit 5392b0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions youtube_music_uploader/uploader_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def upload(
oauth: str = os.environ['HOME'] + '/oauth',
remove: bool = False,
oneshot: bool = False,
listerner_only: bool = False,
listener_only: bool = False,
deduplicate_api: str = None,
) -> None:
global last_snapshot
Expand Down Expand Up @@ -142,7 +142,7 @@ def upload(
observer = Observer()
observer.schedule(event_handler, directory, recursive=True)
observer.start()
if not listerner_only:
if not listener_only:
files = [file for file in glob.glob(glob.escape(directory) + '/**/*', recursive=True)]
for file_path in files:
upload_file(api, file_path, logger, remove=remove, deduplicate_api=deduplicate)
Expand Down Expand Up @@ -209,7 +209,7 @@ def main():
oauth=args.oauth,
remove=args.remove,
oneshot=args.oneshot,
listerner_only=args.listener_only,
listener_only=args.listener_only,
deduplicate_api=args.deduplicate_api,
)

Expand Down

0 comments on commit 5392b0f

Please sign in to comment.