1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00
Commit Graph

1436 Commits

Author SHA1 Message Date
Johan Andersson
50ef5821f4 flake8 add some space for the operator 2018-05-13 12:09:27 +02:00
Johan Andersson
07b84c1f2e flake8 no need for extra space 2018-05-13 12:09:27 +02:00
Johan Andersson
5339bdc265 flake8 over-indented for visual indent 2018-05-13 12:09:27 +02:00
Johan Andersson
8f126c3d49 flake8 add new line end of file 2018-05-13 12:09:27 +02:00
Johan Andersson
22e3c8e5ac urljoin in hls 2018-05-13 12:09:27 +02:00
Johan Andersson
5d1f86d8fc flake8 fixes 2018-05-13 12:09:27 +02:00
Johan Andersson
8af26fb5c7 unused imports 2018-05-13 12:09:27 +02:00
Johan Andersson
903a4ae71d No need for utils.io 2018-05-13 12:09:27 +02:00
Johan Andersson
7e351530e9 No need for utils.urllib anymore 2018-05-13 12:09:27 +02:00
Johan Andersson
86a8ea52e9 use logging? 2018-05-13 12:09:27 +02:00
Johan Andersson
7137278213 Do the merge and check some options in main 2018-05-13 12:09:27 +02:00
Johan Andersson
a6c4de8d9d flake fix 2018-05-13 12:09:27 +02:00
Johan Andersson
b82831df03 Move services to its own file 2018-05-13 12:09:27 +02:00
Johan Andersson
d496955cb4 Move Options to parser? 2018-05-13 12:09:27 +02:00
Johan Andersson
03c8b68bb6 Move get_* to its own file 2018-05-13 12:09:27 +02:00
Johan Andersson
3da6728ae3 move mergeparseroption to parser.py 2018-05-13 12:08:11 +02:00
Johan Andersson
c135ed3593 move parser to its own file 2018-05-13 12:08:11 +02:00
Johan Andersson
8109b592a6 pep8 fixes 2018-05-13 12:08:11 +02:00
Johan Andersson
e5fff7a15f get_one_media: remove some stdout code 2018-05-13 12:08:11 +02:00
Johan Andersson
2283d3e593 postprocess: fix indentation 2018-05-13 12:08:11 +02:00
Johan Andersson
2c4e3b5843 main: no need for usage 2018-05-13 12:08:11 +02:00
Johan Andersson
022eda0c56 postprocess: rewrite some subfixes checks 2018-05-13 12:08:11 +02:00
Johan Andersson
ddce6ae2aa use argparse instead of optionparser 2018-05-13 12:08:11 +02:00
Johan Andersson
b8c1163852 remove a bunch of is_py. time for py3. 2018-05-13 12:08:11 +02:00
iwconfig
bdf33167d3 check subtitle length before random.sample()
Pass random.sample() the total number of sentences in the subtitle if less than 8.
i.e. max 8 sentences.

fixes #659
2018-05-06 20:02:07 +02:00
dalgr
6ee5cbbc80 Make '_autoname' in 'Tv4play' safer by adding value checks and try/except 2018-05-06 19:03:50 +02:00
dalgr
a5ad609a6c Add a new service npo, for 'npo.nl' 2018-05-06 15:36:04 +02:00
dalgr
f474fb9b0c Fix for issue #888, viafree not working 2018-05-06 15:35:23 +02:00
dalgr
346b40dfbf Add better parsing of dates in dash fetcher 2018-03-30 22:52:20 +02:00
dalgr
e77b5e12cd Adjust 'end_time_stamp' for tv4 live, to avid fetching before the stream is publlished 2018-03-30 22:52:20 +02:00
dalgr
8b25a606ee Remove 'window.svt.nyh.reduxStat', for svt.se 2018-03-20 06:56:39 +01:00
dalgr
0bf050df22 Fix support of Clips on svt.se 2018-03-20 06:56:39 +01:00
dalgr
77f0c47be9 Add support for hls fetching from vimeo 2018-03-19 20:55:10 +01:00
dalgr
ca2de62e6f Fix bug with vimeo 2018-03-19 20:55:10 +01:00
dalgr
db0cf86866 Cleanup code for silent, 'File (%s) already exists.' 2018-03-13 22:04:31 +01:00
Johan Andersson
62a59549e9 New version 1.9.11 2018-03-11 23:40:02 +01:00
Johan Andersson
b9d6d5b50c output need some parenthesis in silent. 2018-03-11 21:22:23 +01:00
dalgr
f7bac8754b Avoid printing 'File (%s) already exists.' when running in silent mode. 2018-03-11 19:33:05 +01:00
dalgr
ec483a7045 Fix for the problem cused by 'Crypto.Random' 2018-03-11 10:19:29 +01:00
dalgr
6dc0595765 Improve the name of the outputed file 2018-03-10 22:16:16 +01:00
dalgr
f818993bcd Fixes: 'Another ViaFree issue'
...
2018-03-10 22:16:16 +01:00
Johan Andersson
fbb511981e select_quality: this should be get and not pop 2018-03-10 10:09:26 +01:00
Johan Andersson
aff4a0716a select_quality: Sometimes cookies is not present in the stream
fixes: #858
2018-03-10 09:56:32 +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
Olof Johansson
b18a166898 postprocess: Give up on failure, not success when muxing
This, I suspect, accidental inversion of the error case led to files not
being cleaned up properly.

Fixes #856, reported by @pulsatorius
2018-03-09 22:36:30 +01:00
Johan Andersson
281a8ba48c New version 1.9.10 2018-03-08 01:02:42 +01:00
Johan Andersson
735ba0197c get_one_media: dont try to remux the already muxed files 2018-03-06 21:49:43 +01:00
Johan Andersson
3818ee1ee9 postprocess.merge: when we merge .ts to .mp4 we need to have bsf:a
fixes: #825
2018-03-06 21:49:43 +01:00
Johan Andersson
35691d85cc hls: we should use .ts and not .mp4 2018-03-06 21:49:43 +01:00
Johan Andersson
4282992719 viafree: they changed from using StartPageStore to ApplicationStore
fixes: #845
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
Johan Andersson
58f4c7fdcb dplay: download the video on the program page
fixes: #824
2018-03-04 15:06:54 +01:00
dalgr
0d216719b8 Fix issue 829, compare with slug when avilabel 2018-03-04 12:35:05 +01:00
Johan Andersson
3de9396f7d remove some debug prints.. 2018-03-04 11:41:22 +01:00
Johan Andersson
24213562ad postprocess: try to detect the bad audio track and skip it
this will only work for files with one audio track.
i have never seen file with several
fixes #814
2018-03-04 11:41:22 +01:00
Peter Janson
e9ce045838 Fixing filename creation for dplay
Encoding of show name failed. Fixed that!

fixes: #826
2018-03-04 11:28:21 +01:00
dalgr
848dc12a3a Fix for issue 833, not abble to download hds streams 2018-03-04 11:26:30 +01:00
dalgr
33756e99c4 remove service vidme 2018-03-04 11:24:58 +01:00
Johan Andersson
f1befe0638 dplay: remove debug print for cookies 2018-02-26 10:02:05 +01:00
Johan Andersson
92398d8036 New version 1.9.9 2018-02-26 00:38:54 +01:00
Johan Andersson
61ff824fd6 dplay: fix url for .no and .dk
fixes: #823
2018-02-26 00:37:17 +01:00
Johan Andersson
706e8921d0 New version 1.9.8 2018-02-25 21:34:21 +01:00
Johan Andersson
28bbfc6eab dplay: show an error message if its a bad url 2018-02-25 21:25:03 +01:00
Johan Andersson
f8877bb970 dplay: add support for detecting channels
live stream won't work because the audio and video is in different files.
this can be fixed later.
2018-02-25 21:25:03 +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
650d2896e2 dplay: add name of the episode in the filename
fixes: #819
2018-02-25 00:09:08 +01:00
Johan Andersson
149c637ce8 dplay: support for exclude
fixes: #818
2018-02-24 20:59:23 +01:00
Johan Andersson
a3406c8c53 cmore: add support for .dk/fi/no
fixes: #815
2018-02-24 17:39:26 +01:00
Johan Andersson
bdc646b885 cmore: fix login issue with the new site
fixes: #804
2018-02-24 17:07:14 +01:00
Johan Andersson
6d3c57a667 svtplay: use parse_qs instead of regex to parse the query 2018-02-21 23:04:20 -05:00
Johan Andersson
3a1735144c svtplay: dont crash if we cant find the show using -A
fixes: #802
2018-02-21 22:50:31 -05:00
Johan Andersson
b47ce3ba26 viafree: fix -A so it works again
fixes 805
2018-02-21 22:44:19 -05:00
Johan Andersson
2fb54e368b svtplay: in -A and --all-last sort the list if we have episodeNumber
fixes #800
2018-02-21 22:12:52 -05:00
Johan Andersson
68553d9870 get_one_media: we should only show this error message when we cant find ffmpeg/avconv
fixes 813
2018-02-21 21:38:07 -05:00
Johan Andersson
f42a50ca5f dplay: support for the new design of the page
fixes #777
2018-02-21 21:30:36 -05:00
Johan Andersson
083188f8ac subtitle: we need to tell requests to use utf8 for encoding 2018-02-21 21:29:21 -05:00
Johan Andersson
497771a478 hls: support for extracting subtitles
we need this for dplay
2018-02-21 21:28:44 -05:00
PO Lenhoff
8401f2f72b hls are now always muxed 2018-02-18 19:03:36 +01:00
dalgr
ccf22ec692 Determine segments if URI attribute is incuded
Fix bug in '__str__'
2018-02-12 21:40:27 +01:00
dalgr
10f0807b9a fix bug in raw service 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
0b920aebe0 eurosportplayer: new site 2018-02-12 00:55:51 +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
70c94e4131 Adds two fallback options for tv4 autonaming 2018-02-11 21:18:28 +01:00
dalgr
e721c45acd Remove unused 'extention' in raw service 2018-02-11 21:17:37 +01:00
dalgr
fb07e84fa6 Add support of downloading mpd files to service raw 2018-02-11 21:17:37 +01:00
dalgr
7aaa68b267 Compare URI when appending a 'm3u8.media_segment' list 2018-02-10 14:54:38 +01:00
dalgr
9b631e595a Fix service Nickelodeon.se 2018-02-10 14:54:14 +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
530aef4ed6 Change title formating from custom to 'utils.filenamify' 2018-01-28 21:21:02 +01:00