Commit Graph

15 Commits

Author SHA1 Message Date
39e1fb017c Made code indentation to comply with PEP8 2021-06-16 16:18:41 -05:00
ed5b66d033 Fixed audio playback from URL 2020-05-29 10:28:10 -05:00
ef689d04fc Initial Python 3 compatible code 2019-06-06 11:52:23 -05:00
Jose Manuel Delicado
2fb88924fd URL expansion and audio playback should work well together now. When calling get method, stream parameter is set to True, so the body is not downloaded. We work with response headers, the only thing we need 2017-12-12 16:32:12 +01:00
Jose Manuel Delicado
6ba1fe9eac If an URL shortener does not redirect using head method, call get with allow_redirects set to False instead when expanding. Fixes #179 2017-12-11 21:07:57 +01:00
Jose Manuel Delicado
f69e4283cd Updated all URL shorteners to use requests library. Useful for proxy servers 2017-10-04 17:24:44 +02:00
Jose Manuel Delicado
11703f50fe Handle special case for Dropbox links when expanding URLS 2017-09-22 17:30:09 +02:00
Jose Manuel Delicado
11ca3a2190 URL shortener now performs step by step expansion, so you possibly will have to expand an URL multiple times to reach the final destination 2017-09-22 17:18:38 +02:00
Jose Manuel Delicado
a1381008d7 Use head instead of get for URL expansion 2017-09-18 10:38:20 +02:00
da06c568c5 Fixed issue with url shorteners. Should help to fix #159 2017-09-17 23:28:31 -05:00
Jose Manuel Delicado
ff05c9cb23 Now the URLS are expanded using requests. It means proxy support for URL shortener, and follow all redirections to get the final URL 2017-08-12 21:32:56 +02:00
Jose Manuel Delicado
f18a03d4a1 acortame.py: if we try to expand an URL not shortened by the service, use generic URL unshortener in the base class 2017-08-12 21:07:02 +02:00
Jose Manuel Delicado
24756e73d3 acortame.py: use requests instead of urllib, so we can shorten and unshorten URLS through proxy servers 2017-08-12 21:03:52 +02:00
Jose Manuel Delicado
feb16d9773 Added compatibility with acorta.me URL shortener and set it as default 2017-08-12 12:54:18 +02:00
1af4a8b291 Putting all the code from the current master branch of TWBlue 2014-10-27 16:29:04 -06:00