1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 20:25:41 +01:00
Commit Graph

53 Commits

Author SHA1 Message Date
Johan Andersson
fa590117de fetcher: handle errors from parsing playlists 2016-10-16 19:35:38 +02:00
Johan Andersson
f8eb0b8a45 fetcher: dont crash if we cant read the playlists
fixes #446
2016-09-09 22:56:05 +02:00
Johan Andersson
bdf7a181ea hls: if the file start with / add hostname to it. 2016-09-04 20:43:37 +02:00
Johan Andersson
3ea58c0461 fetcher: dont print newline when its silent 2016-05-01 13:12:19 +02:00
Olof Johansson
5393dc1929 Fix various pylint warnings
None of these were any real problems, but easier to spot real issues if pylint
is a bit quieter. Apart from the pylint overrides being sprinkled over the code
base, this commit also fixes occurences of the following issues:

 - logging-not-lazy
 - logging-format-interpolation
 - unused-import
 - unused-variable
2016-04-03 19:06:45 +02:00
Johan Andersson
2d43702828 fetcher: set a variable if the stream is finished. 2016-03-22 22:28:41 +01:00
Johan Andersson
6d57453278 hls._get_full_url: dont append query string to the url 2016-03-16 18:56:52 +01:00
Johan Andersson
4e88d27cbc hls, hds: dont try to parse bad data
fixes: #342
2016-02-07 10:27:01 +01:00
Johan Andersson
c78960d2b8 hlsparse: this should be HLS and not HDS 2015-11-15 18:21:05 +04:00
Johan Andersson
31575abc51 hls: parsem3u dont crash when EXT-X- is one 2015-10-29 22:15:14 +01:00
Johan Andersson
739565cd27 hls, hds, http: its should be “and” and not “or” 2015-10-25 19:24:14 +01:00
Johan Andersson
626bef92d5 hls: support for silent 2015-10-25 18:23:28 +01:00
Johan Andersson
c7373854f9 HLS: handle 403 error when the playlist is geoblocked 2015-10-04 17:41:11 +02:00
Johan Andersson
c6d9a5732d hls: handle cookies 2015-10-04 14:36:06 +02:00
Johan Andersson
9011705274 hls: have the same interface as hds 2015-10-04 14:33:54 +02:00
Johan Andersson
dc2cc0294c pip8. expected 2 lines found 1 2015-09-15 20:10:32 +02:00
Johan Andersson
dc76094369 hls: remove unused imports 2015-08-31 20:35:37 +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
84ee181f5b adding request support.
still need some more work
2015-08-30 00:06:20 +02:00
Johan Andersson
21cd9efe93 output: no need to get the filename when we already have it in options 2014-12-30 21:18:01 +01:00
Johan Andersson
178dea24fd hls: refactor some code 2014-12-20 21:07:55 +01:00
Johan Andersson
72ec064cc3 hls: handle error when getting key 2014-12-20 21:04:37 +01:00
Johan Andersson
67b3c8bb54 Rewrite http request handling. 2014-12-08 23:07:02 +01:00
Johan Andersson
ab4a7ee704 hls: start on 1 instead of 0
this fixes #127
2014-09-02 19:54:06 +02:00
Johan Andersson
8eec519577 output: make pylint happier. 2014-08-21 22:10:16 +02:00
Johan Andersson
686f5f615a refactor output to its own function
Almost the same code for all the fetchers.
2014-08-20 20:27:45 +02:00
Johan Andersson
3f6bd29a13 fetchers: fix a crash on stdout python3 2014-08-12 17:14:12 +02:00
Johan Andersson
8fd7639b1a Space after # 2014-07-28 16:01:27 +02:00
Olof Johansson
a8e63f4e60 hls: avoid unused variable warning (pylint) 2014-07-22 10:12:51 +02:00
Johan Andersson
e811bd2513 HLS: 1000 is the new thing 2014-07-10 18:55:59 +02:00
Johan Andersson
cdf9216694 hlsparse: get the full url to playlists 2014-06-18 21:02:03 +02:00
Johan Andersson
e87c236c51 option to choose which download method is preferred. 2014-06-02 21:27:51 +02:00
Johan Andersson
663e69eca6 hls: Unused import select_quality 2014-06-02 21:27:51 +02:00
Johan Andersson
9bbf861e1b hls: complain when the file exists 2014-06-02 21:27:50 +02:00
Johan Andersson
4265d1222b hls: we select quality before we go here. 2014-06-02 21:27:50 +02:00
Johan Andersson
8ef2e2454a hls: use bandwidth instead of resolution now. 2014-06-02 21:27:50 +02:00
Johan Andersson
188e47517c services: parse hls playlist first. 2014-06-02 21:27:50 +02:00
Johan Andersson
28a918fa7b HLS: export resolution. 2014-06-02 21:27:49 +02:00
Johan Andersson
330d7dd925 fetcher: convert to VideoRetriever 2014-06-02 21:27:48 +02:00
Olof Johansson
79f1ea04be hls: don't output progressbar if --silent 2014-05-03 17:58:10 +02:00
Johan Andersson
b72211b6f9 hls: move live check to the beginning of the function 2014-05-01 22:11:54 +02:00
Johan Andersson
ad7cdb4265 hls: a way to skip the first playlist with bandwidth info 2014-05-01 22:11:54 +02:00
Olof Johansson
b9107b20b6 hls: Error on live streams
This can be overriden using the --force flag, but the output may
be a bit disappointing --- only the current state of the HLS
playlist is downloaded, and no reload is attempted.
2014-02-11 18:46:53 +01:00
Olof Johansson
38b3c7820b hls: automatically detect baseurl 2014-02-08 17:40:25 +01:00
Johan Andersson
54ac6ccd3c hls: dont search for bandwidth at a fixed position.
On svtplay they added subtitle info in the playlist.
Beacuse of that the script crashed when we tried to access it
2013-10-14 20:18:09 +02:00
Johan Andersson
08280809ad hls: simplify encrypted part 2013-09-03 19:10:07 +02:00
Olof Johansson
b5c9339b2c hls: support keys over https as well as http 2013-08-29 20:46:02 +02:00
Johan Andersson
f7760ee640 Adding missing r prefixes to regex string 2013-05-05 12:57:42 +02:00
Olof Johansson
bd1ae14e53 Isolate py3/2.7 conditional imports to own modules 2013-04-21 13:45:43 +02:00
Olof Johansson
2d2cead9bc hls: catch KeyError exception by name 2013-04-21 13:45:43 +02:00