Johan Andersson
3f04ae2a56
swap place on py2 and py3 checks
2016-01-27 19:49:38 +01:00
Johan Andersson
f4b32cb1df
Merge pull request #326 from olof/filenamify_improvements
...
filenamify: disallow shell metachars + improvements
2016-01-10 20:36:07 +01:00
Olof Johansson
7803472713
utils: specify utf-8 encoding in editor modelines
2016-01-10 15:03:45 +01:00
Olof Johansson
f4005505d9
filenamify: Simplify and add unittests
2016-01-10 15:03:45 +01:00
Olof Johansson
9689dc78b0
filenamify: Make title regexp stricter
...
The - character is a range operator when used in character classes
(e.g. [0-9]). In our case, we want it to match a literal - (which it
coindicentally does, since it's within the range [ -.]. But we don't
want it to match other characters within this range.
2016-01-10 14:33:22 +01:00
Johan Andersson
9dcf203923
option to select which type of streams you prefer
...
fixes #321
2016-01-03 16:15:27 +01:00
Johan Andersson
eb7bd48d5a
utils.http: support for custom headers
...
fixes : #209
2015-12-26 13:38:36 +01:00
Johan Andersson
ff0ce41b72
utils: update the user-agent
2015-12-26 13:35:55 +01:00
Johan Andersson
ef74148003
Option to not verify ssl certificate
2015-12-26 12:14:14 +01:00
Olof Johansson
270a64c6af
Fix docstring after the filenamify changes ( f3aba4e59
)
...
This caused the test suite to fail because of doctest.
2015-10-25 19:49:03 +01:00
Johan Andersson
c453f7c48b
filenamify: remove “ and ‘
...
fix #289
2015-10-25 01:29:04 +02:00
Johan Andersson
43dd5f4b2d
http.request: dont send headers twice
2015-10-24 21:18:23 +02:00
Johan Andersson
f3aba4e598
filenamify: replace with dot instead of dash
2015-10-19 10:37:15 +02:00
Johan Andersson
64b2ac0240
utils.request: send chrome user-agent instead of the default one
2015-10-04 14:33:08 +02:00
Johan Andersson
dc2cc0294c
pip8. expected 2 lines found 1
2015-09-15 20:10:32 +02:00
Johan Andersson
29d00920ad
utils: show an error message if requests is not found
2015-09-13 22:05:17 +02:00
Johan Andersson
80a55e2615
utils: unused import
2015-09-13 22:04:47 +02:00
Johan Andersson
1057f800b0
request: only show what request we are getting.
2015-09-07 20:13:36 +02:00
Johan Andersson
06472b5012
utils: remove unused imports
2015-08-31 20:35:23 +02:00
Johan Andersson
ea70ec30bf
urllib: remove unused imports
2015-08-31 20:35:05 +02:00
Johan Andersson
331de0a70f
replace self.http.get with our own function with debug info
2015-08-31 19:45:15 +02:00
Johan Andersson
a1e987348d
download_thumbernail: use request instead
2015-08-30 12:04:49 +02:00
Johan Andersson
f416a17572
ensure_unicode: remove extra space
2015-08-30 00:08:24 +02:00
Johan Andersson
84ee181f5b
adding request support.
...
still need some more work
2015-08-30 00:06:20 +02:00
Johan Andersson
679f40cf35
io: use StringIO instead of BytesIO
2015-04-28 22:58:02 +02:00
Anders Waldenborg
101354ed7e
Add urljoin to svtplay_dl.utils.urllib
2015-03-07 10:42:48 +01:00
Johan Andersson
8f89b00c5e
unused imports
2015-01-25 14:41:29 +01:00
Johan Andersson
6a374ffa06
Move hdcore check to utils/get_http_data
2015-01-18 18:01:41 +01:00
Johan Andersson
b09b4c17f5
main: --list-quality option
2015-01-05 22:40:40 +01:00
Johan Andersson
d152e02d06
filenamify: dont remove dot
2014-12-28 13:57:11 +01:00
Johan Andersson
d7d8297811
pylint fixes
2014-12-26 02:04:29 +01:00
Johan Andersson
e273fd0abc
get_http_data: send postdata in the argument for Request
2014-12-15 12:33:49 +01:00
Johan Andersson
67b3c8bb54
Rewrite http request handling.
2014-12-08 23:07:02 +01:00
Johan Andersson
e1e56773cb
get_http_data: remove try-except-clause
2014-11-25 19:03:23 +01:00
Johan Andersson
1ce469e4f0
select_quality: in some cases we don’t know quality and return 0.
...
because of the 0 we then fail and show and error message when we shouldn’t.
this fixes #133
2014-09-28 23:32:57 +02:00
Olof Johansson
ad98867700
utils: ignore pylint import-error warning
...
This is a python3 fallback.
2014-07-22 10:19:10 +02:00
Johan Andersson
a52fbe6985
select_quality: move preferred option to get_one_media
2014-07-13 16:03:03 +02:00
Johan Andersson
d9b945bf9e
select_quality: print the fetcher name after bitrate.
2014-07-13 15:12:06 +02:00
Johan Andersson
4b9b40c9f4
output: better progress width handling
2014-06-26 22:55:54 +02:00
Johan Andersson
e87c236c51
option to choose which download method is preferred.
2014-06-02 21:27:51 +02:00
Johan Andersson
2eb9af443a
select_qualtiy: it wants ints.
2014-06-02 21:27:50 +02:00
Johan Andersson
a857f1d906
get_one_media: select quality
2014-06-02 21:27:50 +02:00
Johan Andersson
4e69ebdf39
utils: forgot to remove the subtiles from the old file
2014-06-02 21:27:49 +02:00
Johan Andersson
3dc633df12
subtitle: When we only see the name without extension, add .srt to it.
2014-03-21 21:01:00 +01:00
Johan Andersson
2cece32246
subtitle_sami: this fixes #74
2014-03-11 16:05:32 +01:00
Johan Andersson
81f1f49301
subtitle_json: fixing #73
2014-03-11 16:04:38 +01:00
Olof Johansson
e8dc4781db
urllib: export quote (url encoding)
2014-02-08 17:10:58 +01:00
Johan Andersson
7010adc6e6
utils: use FIREFOX_UA in check_redirect
2014-01-25 23:53:09 +01:00
Anders Waldenborg
b1871b3834
Add --thumbnail
...
Names thumbnails as $basename.tbn (Hi xbmc!)
2014-01-25 22:57:50 +01:00
Anders Waldenborg
dcf4c1bd23
Add doctests for new functions in utils
...
The print call is there to make it py2/3 compatible (py2 adds u'' where py3 just adds '')
2014-01-25 22:57:49 +01:00