You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I often copy links from browser or webpage, and use X=xclip -o; echo Downloading "$X"; youtube-dl -l "$X", or something like that. This make it possible, that if I copy a space before or after a URL, it will be not matched against regular expression, or when passed to be downloaded as webpage. This should fix it:
diff --git a/youtube-dl b/youtube-dl
index 5224611..b466c15 100755
--- a/youtube-dl+++ b/youtube-dl@@ -4563,6 +4563,7 @@ def _real_main():
except IOError:
sys.exit(u'ERROR: batch file could not be read')
all_urls = batchurls + args
+ all_urls = map(lambda url: url.strip(), all_urls)
# General configuration
cookie_processor = urllib2.HTTPCookieProcessor(jar)
Thanks.
The text was updated successfully, but these errors were encountered:
I often copy links from browser or webpage, and use X=
xclip -o
; echo Downloading "$X"; youtube-dl -l "$X", or something like that. This make it possible, that if I copy a space before or after a URL, it will be not matched against regular expression, or when passed to be downloaded as webpage. This should fix it:Thanks.
The text was updated successfully, but these errors were encountered: