diff --git a/README.md b/README.md index 81076ca..625ff6b 100644 --- a/README.md +++ b/README.md @@ -5,20 +5,20 @@ youda.py ## How to setup ## - download this script to your computer - - install youtube-dl - on a Mac: brew install youtube-dl + - install youtube-dl
+ on a Mac: brew install youtube-dl
on any OS: sudo pip install --upgrade youtube_dl - - install a context-menu extension in your browser + - install a context-menu extension in your browser
e.g. Context Menus for Chrome https://goo.gl/8hgwuB - - add a custom action for links, which sends the URL to - http://localhost:8012/q=%s + - add a custom action for links, which sends the URL to
+ http://localhost:8012/q=%s
where "%s" is the variable name for the selected URL ## How to use ## - - start this script in a shell window: + - start this script in a shell window:
youda.py 8009 ~/Downloads/youtube - - in your browser, right-click in a YouTube link and + - in your browser, right-click in a YouTube link and
select custom context menu item you've added - this script will catch the URL and call youtube-dl with it - do not abort the script until it finishes \ No newline at end of file diff --git a/youda.py b/youda.py index f664ae6..209958e 100755 --- a/youda.py +++ b/youda.py @@ -21,19 +21,19 @@ def help(self): print(""" How to setup: - download this script to your computer - - install youtube-dl
- on a Mac: brew install youtube-dl
+ - install youtube-dl + on a Mac: brew install youtube-dl on any OS: sudo pip install --upgrade youtube_dl - - install a context-menu extension in your browser
- e.g. Context Menus for Chrome https://goo.gl/8hgwuB
+ - install a context-menu extension in your browser + e.g. Context Menus for Chrome https://goo.gl/8hgwuB - add a custom action for links, which sends the URL to - http://localhost:8012/q=%s
+ http://localhost:8012/q=%s where "%s" is the variable name for the selected URL How to use: - - start this script in a shell window:
+ - start this script in a shell window: youda.py 8009 ~/Downloads/youtube - - in your browser, right-click in a YouTube link and
+ - in your browser, right-click in a YouTube link and select custom context menu item you've added - this script will catch the URL and call youtube-dl with it - do not abort the script until it finishes