Johan Andersson
3aef9a796e
black fixes
2019-09-06 22:31:52 +02:00
Johan Andersson
9678370dce
Add a bunch of subtitle function unittests
2019-09-06 22:09:07 +02:00
Johan Andersson
375f7d8946
Add support for pytest
2019-09-06 22:09:07 +02:00
Johan Andersson
76a699d25a
pyupgrade fixes
2019-09-06 22:09:07 +02:00
Johan Andersson
7f0cf6eb82
pre-commit: reorder imports
2019-09-06 22:09:07 +02:00
Johan Andersson
e9b16fda77
pre-commit: pyupgrade
2019-09-06 22:09:07 +02:00
Johan Andersson
e105855fb7
pre-commit: black fixes
2019-09-06 22:09:07 +02:00
Johan Andersson
38fd2fdb51
svtplay: fix a crash with season and episode info
...
fixes : #1136
2019-09-06 22:06:33 +02:00
Johan Andersson
5a819afa2f
svtplay: they changed the website.
...
fixes : #1134
2019-09-06 17:26:39 +02:00
toran4
d1904b2747
Set get_url if get_only_episode_url is set
2019-09-01 22:57:42 +02:00
toran4
e3a88d1a7a
removed tabs on empty line
2019-09-01 22:57:42 +02:00
toran4
325ecd71d4
Added option to list only episode urls
2019-09-01 22:57:42 +02:00
dalgr
838b3ecc23
Live download not working from SVTBARN, fix #1121 , #1122
2019-08-31 14:57:24 +02:00
iwconfig
b64dbf3c3e
merge: Map video and audio tracks only once
...
When dealing with multiple subtitles, the singular video and audio tracks is added with each subtitle. This of course results in a multiplied file size which we don't want.
2019-08-22 20:47:39 +02:00
Harald Gustafsson
f06d3a85c2
Bug fixes for NFO file. Some misunderstand of Kodi tags and happened to swap episode and show plots.
...
fixes : #991
2019-08-22 20:44:03 +02:00
Johan Andersson
7e245444b7
nfo: title and showtitle was swapped
...
fixes : #1125
2019-08-22 19:19:22 +02:00
Johan Andersson
26b0ae19be
parsertoconfig: set the wrong value to force_nfo
...
fixes : #1126
2019-08-22 18:48:59 +02:00
Johan Andersson
6a922a86db
barnkanalen: dont crash on show page
2019-08-22 18:10:09 +02:00
Johan Andersson
93088a76cc
subtitle: dont read another byte if bom
...
fixes : #1124
2019-08-22 07:57:40 +02:00
Johan Andersson
f429cfc634
Remove unused import
2019-08-20 15:56:49 +02:00
Johan Andersson
3dc2cf5079
subtitle: encode the text to utf-8
...
this will be the same on windows and *nix
fixes : #1119
2019-08-20 15:49:38 +02:00
Johan Andersson
a84b89bafd
Rewrote big parts of the _dashparser
2019-07-13 14:31:13 +02:00
Johan Andersson
d33186e54e
wrstsegments: fix sync issues
...
Fixes : #1063
2019-04-13 17:45:29 +02:00
Johan Andersson
be21f7d695
Tv4play: support for the new site
...
fixes : #1058
2019-04-08 23:24:07 +02:00
Johan Andersson
60c043da62
wrstsegments: fix so we handle newlines better
...
Fixes : #1050
Fixes : #1038
2019-04-08 23:21:59 +02:00
Johan Andersson
7649c2dad5
Remove newline and the end of the file
2019-03-25 23:33:31 +01:00
Johan Andersson
7fb5f02032
dr: they have started to use encrypted url’s
...
Fixes : #1056
Fixes : #1047
2019-03-24 21:06:23 +01:00
Johan Andersson
c4bf81fa9e
hls: move cryptography to top imports.
2019-03-24 21:04:41 +01:00
Johan Andersson
05c322a52a
hls: don’t finalize after we decrypt the data.
...
In cases where we have several keys in a stream we can run finalize on the data.
2019-03-23 02:36:01 +01:00
Johan Andersson
ecaced7b5c
dashparse: use == compare ints..
2019-03-23 02:02:11 +01:00
Johan Andersson
feb503e013
daskparse: search for contentType on adaptationset instead of mimype
...
Svtplay stopped using mime type on adaptionset.
Fixes : #1054
2019-03-23 01:20:56 +01:00
Johan Andersson
5b6779edf2
Replace pycryptodome with cryptography.
...
This will make it easier to support older distros. For example ubuntu 16.04 and Debian stable (9)
2019-03-23 01:00:44 +01:00
Johan Andersson
525d33a516
Cosmetic changes from flake8
2019-03-23 00:57:19 +01:00
Johan Andersson
dcbf6a8a0e
sr: they have updated the site a little.
...
Fixes #1033
2019-01-09 21:35:12 +01:00
Johan Andersson
f47e729c01
fetcher.http: if we can detect its mp3, use that as extension.
2019-01-09 21:34:21 +01:00
Johan Andersson
806fd55d3b
svt: support for subtitles on the page.
...
fixes #1026
2019-01-06 21:55:48 +01:00
Johan Andersson
a4d4769457
service: don’t crash if configfile is not set
...
Fixes #1015
2019-01-06 20:21:45 +01:00
Jan
9f2e0ef806
Viaplay: Fix video-id extraction
2019-01-02 20:59:05 +01:00
iwconfig
256ca145b2
flake8 fix
2018-12-12 00:20:17 +01:00
iwconfig
1d1574a019
Added option to only download nfo
2018-12-12 00:20:17 +01:00
Johan Andersson
79f77cb785
get_media: check for all_episode from the service config
...
Fixes : #1009
2018-12-11 01:03:12 +01:00
Johan Andersson
72143b7172
output.findexpisode: don’t crash if we don’t have an id
...
fixes : #1000
2018-11-18 12:54:37 +01:00
Johan Andersson
36116c7a3b
Remove old logging
2018-11-18 12:47:19 +01:00
Johan Andersson
a665f98836
expressen: fixed an issue we cant find the id
...
fixes : #1003
2018-11-18 12:36:18 +01:00
Johan Andersson
1c302d4a18
flake8 fixes for eurosport
2018-11-14 00:46:42 +01:00
Johan Andersson
951b8d7b7c
Eurosportplayer: fix for their new site.
...
fixes : #989
2018-11-14 00:42:52 +01:00
Johan Andersson
a65a32267b
eurosport: add support for more subdomains.
2018-11-13 19:54:39 +01:00
Johan Andersson
5f21f27f76
service. readd the service to the list of services.
2018-11-13 19:52:20 +01:00
Johan Andersson
74f68a535b
fetcher.rtmp: RIP. Who use flash in 2018 anyway.
...
Removing old RTMP and related code.
qbrick is not used anyway.
2018-11-12 19:05:41 +01:00
Johan Andersson
f910e66efb
hbo: this is not working anyway.
2018-11-12 18:51:13 +01:00
Johan Andersson
d72c3dd558
bambuser: old service. removing
2018-11-12 18:49:29 +01:00
Johan Andersson
772670b6c9
parser.readconfig: handle permission denied while reading config
2018-11-04 22:04:50 +01:00
Johan Andersson
884ad99f9f
parser.readconfig: don’t crash on empty file
...
fixes : #992
2018-11-04 22:01:24 +01:00
Johan Andersson
e0403a9ac0
viafree: remove unused import
2018-11-02 18:17:38 +01:00
Johan Andersson
d5a1ec1197
subtitle.sami: in some cases they have extra xml code in Text element
...
fixes : #990
2018-11-02 00:38:39 +01:00
Johan Andersson
ff42f884a5
viafree: remove some old code for rtmp
...
fixes : #950
2018-11-02 00:37:05 +01:00
Johan Andersson
ca295d461d
flake8: new version detecting more stuff
2018-10-28 23:16:00 +01:00
Johan Andersson
bd73466265
fetcher.http: rename options to config
2018-10-28 22:36:22 +01:00
Harald Gustafsson
61c76824a9
Added some checks in the NFO writing to not throw exception if some metadata is None. Also skips NFO if not even the title is available.
2018-10-28 22:34:49 +01:00
Harald Gustafsson
c86c111931
Barnkanal have started missing season number for some shows, now defaults to "01" if episode number exist.
2018-10-28 22:34:49 +01:00
Harald Gustafsson
171bd25084
SVT changed thumbnail path, fix for using the new path (and still old until we know it is completely gone).
2018-10-28 22:34:49 +01:00
Johan Andersson
4fbf861985
subtitle.wrst: add translation of names to hex
...
fixes : #963
2018-10-28 20:47:41 +01:00
Johan Andersson
647d119ce8
tv4play: better message if the video is not available
...
fixes : #981
2018-10-28 16:37:58 +01:00
Johan Andersson
0596ee743b
riksdagen: add support without subdomain.
...
fixes : #976
2018-10-28 16:29:17 +01:00
Johan Andersson
1e72958dc4
subtitle.sami: handle characters in squeeze number.
...
Fixes : #987
2018-10-28 14:17:27 +01:00
Johan Andersson
41cee01ab3
cmore: new site, new update
2018-10-13 13:55:25 +02:00
Johan Andersson
a72d8e4e3c
hls.download: when we see key url as skd:// abort
2018-10-13 13:53:10 +02:00
Johan Andersson
8595586053
get_multiple_media: fix a crash when outputting to folder
2018-10-13 13:52:10 +02:00
Johan Andersson
7ac0b5fc65
get_media: support for raw mpd files
2018-10-07 19:54:43 +02:00
Johan Andersson
f0efb1b685
tests.dash: add some basic tests for _dashparse
2018-10-07 19:53:09 +02:00
Johan Andersson
5ac273dc47
dash.parse_dates: add a new time of date format..
2018-10-06 23:17:45 +02:00
Johan Andersson
72591c20f0
dashparse: split the function into two
2018-10-06 23:17:19 +02:00
Johan Andersson
f183c3014e
service.test: add some opengraph_get test cases
2018-10-05 23:46:52 +02:00
Johan Andersson
2b49c2259b
service.test: add one more handler test case
2018-10-05 23:45:09 +02:00
Johan Andersson
b5aed11c17
tests._formatname: add some test on different format test configurations
2018-10-05 23:28:05 +02:00
Johan Andersson
7c2d86375e
utils.output: dot and dash is optional
2018-10-05 23:28:05 +02:00
Johan Andersson
22d387717e
service.tests: more service tests.
2018-10-05 23:28:05 +02:00
Johan Andersson
1499a006f7
get_one_media: fix a crash in older versions of py3
...
fixes #969
2018-10-01 22:33:27 +02:00
Johan Andersson
10e1413eb6
get_media: use logging instead of log
2018-10-01 22:07:01 +02:00
Kristoffer Hallqvist
0c1ccf9c51
Added leading space in line comment
2018-10-01 22:02:39 +02:00
Kristoffer Hallqvist
1d716d5963
Ignores unexpected empty lines in subtitle format
2018-10-01 22:02:39 +02:00
Olof Johansson
8c19f96e46
output: Adapt test suite to new location of module
...
The output module was moved from svtplay_dl.output to
svtplay_dl.utils.output some time ago.
2018-09-30 19:00:13 +02:00
Olof Johansson
bbf10ee077
hls: Break out get_full_url tests to new test suite (http)
...
The get_full_url was moved some time ago from the hls module to the
svtplay_dl.utils.http module.
2018-09-30 19:00:13 +02:00
Olof Johansson
228d34c500
filenamify: Make the test suite import module from right location
2018-09-30 19:00:13 +02:00
Olof Johansson
5f087f0efa
protocol_prio: Make the test suite import module from right location
...
The tests are still failing, but not from ImportError anymore.
2018-09-30 19:00:13 +02:00
Johan Andersson
559e950e68
getmedia: in some cases after_case is None
...
fixed : #974
2018-09-24 00:27:24 +02:00
Johan Andersson
e292e39a59
tv4play: fixed a crash if someone tried to download a geoblock file
...
fixed : #972
2018-09-23 21:32:02 +02:00
Johan Andersson
ad75ef77f0
tv4play: fix so all episodes work again
2018-09-23 20:05:36 +02:00
Johan Andersson
f90267b9f9
main: fix so --cmore-operatorlist work again
...
fixes : #955
2018-09-23 19:43:04 +02:00
Harald Gustafsson
fd0171d257
New option to only download videos that are published on or after a certain date. Relies on the new metadata extraction. When metadata is missing defaults to download. Useful for channels that don't publish episodes in order e.g. barnkanalen.
2018-09-05 21:43:52 +02:00
Harald Gustafsson
073f26e618
Added broadcast/publishing datetime to metadata extraction and NFO file creation.
2018-09-05 21:43:52 +02:00
Harald Gustafsson
4388e57112
Move the new metadata based thumbnail download into a reusable class instead of directly in Svtplay (requires that the service extract thumbnail urls during parsing of the video info into the self.output variable and the keys 'showthumbnailurl' and 'episodethumbnailurl'). Change OpenGraphThumbMixin to use the new download_thumbnails which makes correct filenames. Removed the old download_thumbnail.
2018-09-05 21:43:52 +02:00
Harald Gustafsson
fc71a8d8e4
flake8 fixes.
2018-09-05 21:43:52 +02:00
Harald Gustafsson
c15d7607eb
Create NFO files with the extracted metadata. TVshows get a tvshow.nfo file as well.
2018-09-05 21:43:52 +02:00
Harald Gustafsson
184f79a377
Option to automatically create a subfolder for tvshows, named as the show title. When not a series will use a subfolder titled movies.
2018-09-05 21:43:52 +02:00
Harald Gustafsson
bf0e38a6f9
Working thumbnail download. Used by svtplay and barnkanalen, downloads both episode and show thumbnails.
2018-09-05 21:43:52 +02:00
Harald Gustafsson
dbdf7dc851
Get extra metadata, like thumbnails and descriptions. Currently implemented for svtplay and barnkanalen.
2018-09-05 21:43:52 +02:00
Harald Gustafsson
71b40f975a
Fix bug that get_thumbnail could never be called, due to overwrite of the stream variable.
2018-09-05 21:43:52 +02:00
Jakob Schlyter
57e51c8bb1
parse date periods with hours and seconds only
2018-09-05 21:37:38 +02:00
Harald Gustafsson
7736af04b5
Fix find all episodes for tv4play, some dictionary keys sometimes missing.
2018-09-05 21:37:08 +02:00
Gustav Ahlberg
dd76a21fbe
use vars
2018-09-05 21:36:27 +02:00
Gustav Ahlberg
8cc2d5625e
more cleanup
2018-09-05 21:36:27 +02:00
Gustav Ahlberg
471a3a8711
small cleanup
2018-09-05 21:36:27 +02:00
Gustav Ahlberg
47655df815
service for koket to download lessons
2018-09-05 21:36:27 +02:00
Johan Andersson
a7aa860f61
viafree: fix a warning with multiple spaces after ','
2018-09-05 16:45:50 +02:00
Johan Andersson
7bd1d3a1f3
viafree: fix for downloading a specific season
...
fixes #944
2018-09-05 16:40:56 +02:00
Johan Andersson
e7bc0c1abe
viafree: set episode name when its a text
...
fixes #941
2018-09-05 16:40:56 +02:00
Johan Andersson
a6e2bae955
utils.stream: remove some debug prints
2018-09-05 16:40:56 +02:00
Harald Gustafsson
8297d6614f
Fix missed option to config change in barnkanalen service.
2018-07-22 23:02:43 +02:00
Johan Andersson
d693e16596
get_multiple_media: this should be config
2018-07-16 21:21:18 +02:00
Johan Andersson
c97ec9030e
subtitle.remux: remove copyts
...
copyts made that videos started at 10s and made subtitles be wrong.
2018-07-12 00:53:55 +02:00
Johan Andersson
3ad8c509f9
subtitle: wrstsegment is ten second off
2018-07-12 00:52:19 +02:00
Johan Andersson
6a324ed319
subtitle: missing whitespace around arithmetic operator
2018-07-10 23:00:44 +02:00
qnorsten
6813862727
Fix timecodes for segmented subtitles
2018-07-10 22:55:01 +02:00
Johan Andersson
1b0385a102
Remove unused module
2018-07-10 22:28:44 +02:00
Johan Andersson
1275421e08
remove certifi hack
2018-07-10 21:33:30 +02:00
Johan Andersson
446cdd89bc
better why to get the version
2018-07-10 21:32:54 +02:00
Johan Andersson
9b839dfaf4
subtitle.wrst: tv4play split their wrst into several .m3u8 files
...
it have some dupe codes. that we need to fix in the future....
2018-07-05 01:26:43 +02:00
Johan Andersson
e377ee7386
output: --force should work on subtitles too
2018-07-05 01:26:43 +02:00
Johan Andersson
a0ab26a939
utilis.http: move get_full_url from hls to http
2018-07-05 01:26:43 +02:00
Johan Andersson
d61e5793e6
use which from stdlib instead our own version
2018-07-05 01:26:43 +02:00
Johan Andersson
7aba2589ec
_checktracks: support for language in the stream
2018-06-24 21:55:18 +02:00
Johan Andersson
21b3ec0ffa
tv4play: add support for the new site
...
fixes : #918 #916 #914
2018-06-24 16:15:55 +02:00
Johan Andersson
8b54c05ca8
getmedia: use logging instead of log
2018-06-24 16:14:57 +02:00
Johan Andersson
7668ed7a68
generic: change to config
2018-06-24 16:10:41 +02:00
Johan Andersson
43b67dfa86
appveyor: ship cacert.pem when built with nuitka
2018-06-17 17:03:46 +02:00
Johan Andersson
e3939a4bbe
viafree: we should check if this is a sport page or not
2018-06-03 20:49:45 +02:00
Johan Andersson
138995925e
_formatname: check if we have season in output
2018-06-03 18:03:09 +02:00
Johan Andersson
18b00ae673
viafree: support for downloading video from the program page.
2018-06-03 18:00:01 +02:00
Johan Andersson
585ea7b0d6
viafree: unused import
2018-06-03 17:59:36 +02:00
Johan Andersson
70bffe6f5e
viafree._autoname: In some cases we dont have episode info.
2018-06-03 15:50:34 +02:00
Johan Andersson
2a94b927d0
_formatname: in some cases we dont have the episode and only season.
...
we want to have like "name.s01.new.stuff.service.id.ext"
its better than "name.new.stuff.service.id.ext"
2018-06-03 15:48:48 +02:00
Johan Andersson
fbffce1c12
hlsparse: return dict instead of nothing
2018-06-03 15:20:46 +02:00
Johan Andersson
fa3b16bfcd
get_one_media: use logging instead of log.
2018-06-03 12:49:49 +02:00
Johan Andersson
668bbceac5
aftonbladet: update so it works with the site again.
2018-06-03 12:49:25 +02:00
Johan Andersson
a411750a67
nrk: output missing for subtitle
2018-06-03 01:39:19 +02:00
Johan Andersson
12cbe91d7b
dbtv.no: thet use youtube now for their videos
2018-06-03 01:35:19 +02:00
Johan Andersson
aa39a52f15
dr: missing output
2018-06-03 01:18:15 +02:00
Johan Andersson
a261094731
öppetarkiv: this need to have output set
2018-06-03 00:24:44 +02:00
Johan Andersson
66b45cd4b1
öppetarkiv: unused import
2018-06-03 00:17:05 +02:00
Johan Andersson
00814e690d
öppetarkiv: no need to check if streams are empty or not
2018-06-03 00:13:45 +02:00
Johan Andersson
512f8a0979
öppetarkiv: missing output value
2018-06-03 00:13:18 +02:00
Johan Andersson
1677349a42
öppetarkiv: we only send one argument to outputfilename
2018-06-03 00:12:45 +02:00
Johan Andersson
276b55dc8c
get_one_media: we get the config nowadays
2018-06-03 00:12:15 +02:00
Johan Andersson
12021ee355
get_one_media: dont try to run exclude on exceptions
2018-05-31 01:30:25 +02:00
Johan Andersson
89104b830e
viafree: support for the new page
...
fixes #893
2018-05-31 01:30:25 +02:00
Johan Andersson
9619936f2a
flake8 fixes
2018-05-27 16:10:22 +02:00
Johan Andersson
4fc53137d1
dplay: use logging instead of log
2018-05-27 16:05:54 +02:00
Johan Andersson
25831bd1a9
twitch: this should be episodename
2018-05-27 16:04:39 +02:00
Johan Andersson
f754197713
dplay: support for several subtitle languages
...
In some cases we dont want to download everything.
by default we will download the language as the .tld
2018-05-27 16:04:13 +02:00