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

214 Commits

Author SHA1 Message Date
dalgr
ec483a7045 Fix for the problem cused by 'Crypto.Random' 2018-03-11 10:19:29 +01:00
dalgr
f818993bcd Fixes: 'Another ViaFree issue'
...
2018-03-10 22:16:16 +01:00
Johan Andersson
4b64e1bb9f hlsparse: sometimes we thought that subtitles was audio track
fixes #853
2018-03-09 23:20:52 +01:00
Johan Andersson
0eaf0ec8f8 don't hide import errors 2018-03-09 22:53:33 +01:00
Johan Andersson
35691d85cc hls: we should use .ts and not .mp4 2018-03-06 21:49:43 +01:00
dalgr
4c62d87087 Modify after review, issue 846 2018-03-06 21:04:48 +01:00
dalgr
f06c09e9c3 Fix issue 846, DASH crash on a video on svtplay 2018-03-06 21:04:48 +01:00
dalgr
8b3a5dacbe hls AES use avilable IV or 'Random.new()' from 'Crypto' 2018-03-04 19:48:17 +01:00
dalgr
70fafc7f90 Improve parsing of 'mediaPresentationDuration', for dash 2018-02-25 18:27:19 +01:00
dalgr
b800322f06 Remove usage of 'dateutil.parser' 2018-02-25 18:27:19 +01:00
dalgr
bad41cb1ed Fix support for svt melodifestivalen 2018-02-25 18:27:19 +01:00
dalgr
a82f5fed40 Improvements to dash pasing, avoid empty lists
Quick fix for added MPD Live support
2018-02-25 18:27:19 +01:00
Johan Andersson
497771a478 hls: support for extracting subtitles
we need this for dplay
2018-02-21 21:28:44 -05:00
dalgr
ccf22ec692 Determine segments if URI attribute is incuded
Fix bug in '__str__'
2018-02-12 21:40:27 +01:00
dalgr
0813dfbb70 Alternet way of detecting segments for hls 2018-02-12 21:40:27 +01:00
Johan Andersson
c4f3c8d6f2 fetcher: we need to send a custom header to fetch key in HLS 2018-02-12 00:08:09 +01:00
dalgr
7aaa68b267 Compare URI when appending a 'm3u8.media_segment' list 2018-02-10 14:54:38 +01:00
Johan Andersson
6ed19abb62 hls: we need to add slash at the end of srcurl for urljoin 2018-02-10 00:38:52 +01:00
Johan Andersson
f017d5cf2c hls.get_full_url: use urljoin instead of format string 2018-02-10 00:16:04 +01:00
dalgr
e79251eb7e Fix support for hls segments streams 2018-02-04 23:38:11 +01:00
dalgr
da5ec62241 Improve preformance of hls parser, skip checking all posible videos 2018-02-04 20:40:25 +01:00
Johan Andersson
7b6ceb4737 Flake8 fixes 2018-01-30 20:17:33 +01:00
dalgr
c27e098593 Use max_duriation in hls and wait for tv4 video during commercials. 2018-01-23 19:01:40 +01:00
dalgr
4f7f3aaf7b Change to use international time for tv4 live 2018-01-23 19:01:40 +01:00
dalgr
938bb81a1b Change hds to display all url when using '--get_url', '-g' 2018-01-21 21:12:14 +01:00
dalgr
f73f5d0b81 fix hls live download for tv4,sjuan,tv12 2018-01-15 22:16:07 +01:00
dalgr
31e5546e26 Add support of downloading a 'media_segment' m3u8 file 2018-01-14 22:29:20 +01:00
Johan Andersson
699412dc09 hls._get_tuple_attribute: in some cases there is a space in beginning of the name.
I saw this on some dplay live streams
2018-01-09 14:37:32 +01:00
dalgr
cace17260a Add capture_time to hls fetcher 2018-01-08 20:15:54 +01:00
dalgr
939f277f86 Add support for live svtplay using hls 2018-01-08 20:15:54 +01:00
dalgr
786fc6a027 simplify m3u media_segment by adding tag 'URI' 2018-01-07 01:53:00 +01:00
dalgr
c28e35b1cb Add tag 'URI' and simplify m3u json 2018-01-07 01:53:00 +01:00
dalgr
73bdf87b38 Fix bug in m3u8 parser, add a test for 'parse_m3u8.master_playlist' 2018-01-07 01:53:00 +01:00
dalgr
1379ac9c85 Continue with hls, 'EXT-X-MEDIA' 2018-01-07 01:53:00 +01:00
dalgr
ac6cca8919 Fix bug with key/decryptor and new m3u parser 2018-01-07 01:53:00 +01:00
dalgr
4207ccef71 continue improvements of m3u parser
update with more tags
2018-01-07 01:53:00 +01:00
dalgr
a875fcb5b6 start improvment of m3u parser 2018-01-07 01:53:00 +01:00
Johan Andersson
2fa12b5fe1 hls: in some cases we want to use different cookies for the encryption. 2018-01-04 00:49:41 +01:00
Johan Andersson
8716c5e4b8 fetcher: in some cases we want to have different cookies for the key 2018-01-04 00:49:41 +01:00
Johan Andersson
fc4c659ae9 output: make bit more generic
Remove the output "-". it have been a bit broken for a while.
2017-11-24 23:11:48 +01:00
Johan Andersson
2c2446b30b hls: sometimes they have the key as a filename without url 2017-10-22 20:59:17 +02:00
Johan Andersson
59d2513dee fetcher: change str formating from '%s' to '.format' 2017-10-09 22:35:33 +02:00
dalgr
bc3141a8c7 Avoid 'EXT-X-BYTERANGE', fix for 'hls.py'
Fix support for vidme in 'dash.py'
2017-10-09 20:38:56 +02:00
Johan Andersson
73306eef4d dashparse: dont try to parse 0 length mpd files.
Akamai sent a zero length playlist for svtplay
fixes #701
2017-10-04 23:26:47 +02:00
dalgr
e8a9157f20 add check 'is not None' to avoid FutureWarning 2017-09-19 21:41:17 +02:00
Johan Andersson
44703b47e8 dashparse: we don't need to "/ 1000" one more time 2017-09-18 14:46:57 +02:00
Johan Andersson
8e5c7ddd30 dash: fix a warning 2017-09-17 21:03:10 +02:00
Johan Andersson
d1b6ba2ee1 dash: rewrote the parsing of the .mpd files. 2017-09-16 21:38:14 +02:00
Johan Andersson
f4611b5512 hlsparse: need to send cookies when we grab hlsfiles 2017-09-16 18:26:07 +02:00
Johan Andersson
3e39a62737 hls: try to read the file playlist 2017-02-18 23:51:26 +01:00
Johan Andersson
3d8a516d1c dash: don't crash if we get a total files.
fixes #559
2017-02-12 11:08:22 +01:00
Johan Andersson
d20fa3d959 parsem3u: don't crash if we cant unpack extinf
fixes: #557
2017-02-12 08:53:59 +01:00
Johan Andersson
41b826cee0 dash: dont use the the same init file for every video.
fixes: #545
2017-01-31 23:40:40 +01:00
Johan Andersson
3bd5f498c6 dash: don’t overwrite the init file 2016-11-05 18:51:21 +01:00
Johan Andersson
c038c67af3 dash: in some cases the SegmentTemplate is inside of Representation class. 2016-11-01 01:49:49 +01:00
Johan Andersson
5109c38dc6 hls: don’t crash when we can’t find bandwidth key
fixes #473
2016-10-16 19:50:30 +02:00
Johan Andersson
fa590117de fetcher: handle errors from parsing playlists 2016-10-16 19:35:38 +02:00
Johan Andersson
9dc52589b9 dash: support for segmented files
fixes #448
2016-09-26 00:42:42 +02:00
Johan Andersson
74ff9359dd dashparse: don’t crash when we can’t find BaseURL 2016-09-17 19:43:03 +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
cd4506be8e hds: some cases we need to encode the playlist as str for py2 2016-08-17 00:43:24 +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
Olof Johansson
556d85e31f dash: complete the progress bar after file is downloaded
The progress bar wasn't updated after the downloaded completed,
so the final progress bar would look something like this:

   [99/100][===============================.] ETA: 0:00:00

This can be interpreted as the file didn't download completely.

Reported-by: rooth
2016-04-02 17:35:10 +02:00
Johan Andersson
2941cb31eb include the dash.py file 2016-03-26 23:08:22 +01:00
Johan Andersson
e523141a04 support for dash streams 2016-03-26 21:38:31 +01:00
Johan Andersson
2d43702828 fetcher: set a variable if the stream is finished. 2016-03-22 22:28:41 +01:00
Johan Andersson
ccc502f4a1 fetcher_http: update to use progressbar instead of progress 2016-03-20 00:30:43 +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
0f340b194e hds: remove some left over debug code.. 2016-02-07 10:31:28 +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
3f04ae2a56 swap place on py2 and py3 checks 2016-01-27 19:49:38 +01:00
Johan Andersson
99a0a1169a hdsparse: we should use bootstrapinfoid instead of 0 2016-01-17 00:36:15 +01:00
Johan Andersson
fc58956e9a fetcher: better output when printing the class 2016-01-03 02:43:23 +01:00
Johan Andersson
ef74148003 Option to not verify ssl certificate 2015-12-26 12:14:14 +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
6b240e2f24 hds: support for silent 2015-10-25 18:23:39 +01:00
Johan Andersson
626bef92d5 hls: support for silent 2015-10-25 18:23:28 +01:00
Johan Andersson
78d962d05e http: support for silent 2015-10-25 18:23:16 +01:00
Johan Andersson
c7373854f9 HLS: handle 403 error when the playlist is geoblocked 2015-10-04 17:41:11 +02:00
Johan Andersson
2eef43843d HDS: handle 403 error when the playlist is geoblocked 2015-10-04 17:40:40 +02:00
Johan Andersson
b9bbedc2e7 hds: yield ServiceError when we see DRM 2015-10-04 17:39:43 +02:00
Johan Andersson
39f7d4ba2e hls: handle cookies 2015-10-04 14:36:21 +02:00
Johan Andersson
c6d9a5732d hls: handle cookies 2015-10-04 14:36:06 +02:00
Johan Andersson
0d5a05be64 hdsparse: work as the same way as hlsparse 2015-10-04 14:35:35 +02:00
Johan Andersson
b899072236 hds: we want to get the data inside of the parse function 2015-10-04 14:35:00 +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
9394f03251 http: remove unused imports 2015-08-30 14:42:29 +02:00
Johan Andersson
a0f0b192e2 http: use requests 2015-08-30 14:41:59 +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
d7d8297811 pylint fixes 2014-12-26 02:04:29 +01:00
Johan Andersson
91370d6a77 http: unused import 2014-12-22 10:14:02 +01:00
Johan Andersson
178dea24fd hls: refactor some code 2014-12-20 21:07:55 +01:00